Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

do.olda stopped working #11

Closed
nspyrison opened this issue Jul 14, 2021 · 2 comments
Closed

do.olda stopped working #11

nspyrison opened this issue Jul 14, 2021 · 2 comments

Comments

@nspyrison
Copy link

library("Rdimtools")
#> ** ------------------------------------------------------- **
#> ** Rdimtools
#> **  - Dimension Reduction and Estimation Toolbox
#> **
#> ** Version    : 1.0.8       (2021)
#> ** Maintainer : Kisung You  (kisungyou@outlook.com)
#> ** Website    : https://kisungyou.com/Rdimtools/
#> **
#> ** Please share any bugs or suggestions to the maintainer.
#> ** ------------------------------------------------------- **

# use iris data
data(iris)
set.seed(100)
subid = sample(1:150, 50)
X     = as.matrix(iris[subid,1:4])
label = as.factor(iris[subid,5])

## compare with LDA
out1 = do.lda(X, label)
out2 = do.olda(X, label)
#> Error: $ operator is invalid for atomic vectors

Created on 2021-07-14 by the reprex package (v2.0.0)

@nspyrison
Copy link
Author

also do.pca(), looks like a Rcpp issue/change?

R> out1 <- do.pca(X, ndim=2, cor=FALSE)
Error in dt_pca(X, myndim, mycor) :
function 'Rcpp_precious_remove' not provided by package 'Rcpp'
R> out2 <- do.pca(X, ndim=2, cor=TRUE) ## Hangs the RStudio session

@nspyrison
Copy link
Author

Reverting the past several version of Rcpp dfidn't help.
After some trouble, installing latest Rcpp works.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant