Skip to content

Commit

Permalink
Conform to CRAN expectations
Browse files Browse the repository at this point in the history
  • Loading branch information
cyianor committed Sep 8, 2022
1 parent 545de94 commit 04c0001
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 6 deletions.
3 changes: 2 additions & 1 deletion .Rbuildignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
^\.clang-format$
^LICENSE\.md$
^.vscode$
^.vscode$
^math$
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,5 @@
config.log
config.status
*.tar.gz
*.Rcheck
*.Rcheck
.DS_Store
4 changes: 2 additions & 2 deletions DESCRIPTION
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,12 @@ Description: A generalization of principal component analysis for integrative
analysis. The method finds principal components that describe single matrices
or that are common to several matrices. The solutions are sparse. Rank of
solutions is automatically selected using cross validation. The method is
described in Kallus, Johansson, Nelander and Jörnsten (2019)
<arXiv:1911.04927>.
described in Kallus et al. (2019) <arXiv:1911.04927>.
Depends: R (>= 3.3.0)
Imports: digest (>= 0.6.0), Rcpp (>= 1.0.8)
LinkingTo: Rcpp, RcppEigen, RcppGSL
SystemRequirements: C++11
Biarch: true
NeedsCompilation: yes
License: GPL (>= 3)
Encoding: UTF-8
Expand Down
4 changes: 4 additions & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# mmpca 2.0.2 (2022-09-03)

* Package has been cleaned up to be published on CRAN again
* Removed all legacy C code and use Rcpp fully
6 changes: 4 additions & 2 deletions tests/test.R
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,12 @@ test_lambda_selection <- function() {
X[[3]] <- v[[3]][, 1:2] %*% t(v[[4]][, 3:4])
X[[4]] <- v[[1]][, c(1, 3)] %*% t(v[[5]][, 1:2])
X[[1]][matrix(runif(8 * 8), 8, 8) < 0.2] <- NA
mmpca::mmpca(X, inds, 3, parallel = FALSE, trace = 3)
mmpca::mmpca(X, inds, 3, parallel = TRUE)
# only checking for errors, not checking the result
return(TRUE)
}
options(mc.cores = 2)
opt <- options(mc.cores = 2)
set.seed(1)
test_lambda_selection()
# Reset options
options(opt)

0 comments on commit 04c0001

Please sign in to comment.