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

Error in irlba: object 'C_IRLB' not found #36

Open
vdebuen opened this issue Jun 19, 2018 · 9 comments
Open

Error in irlba: object 'C_IRLB' not found #36

vdebuen opened this issue Jun 19, 2018 · 9 comments

Comments

@vdebuen
Copy link

vdebuen commented Jun 19, 2018

Hi

First of all, thank you for this great package!

With version 2.1.2 of package irlba I get the expected result for the attached sparse matrix

> packageVersion('irlba')
[1] '2.1.2'
> Xh <- readRDS('test_fail_irlba_C_IRLB_not_found.rds')
> SVD <- irlba(Xh,20)
> str(SVD)
List of 5
 $ d    : num [1:20] 9.6 8.65 8.53 7.25 6.92 ...
 $ u    : num [1:82, 1:20] 0.01995 0.01768 -0.00259 -0.03284 -0.12891 ...
 $ v    : num [1:90, 1:20] -0.0976 -0.1344 -0.1261 -0.1774 -0.0851 ...
 $ iter : int 6
 $ mprod: int 84

But with 2.3.3 it doesn't return anything and shows an intractable error message for me.

> packageVersion('irlba')
[1] '2.3.3'
> Xh <- readRDS('test_fail_irlba_C_IRLB_not_found.rds')
> SVD <- irlba(Xh,20)
Error in irlba(Xh, 20) : object 'C_IRLB' not found
> str(SVD)
Error in str(SVD) : object 'SVD' not found

Thanks in advance and best regards.
Víctor de Buen

test_fail_irlba_C_IRLB_not_found.zip

@bwlewis
Copy link
Owner

bwlewis commented Jun 19, 2018

Thanks, investigating now.

@bwlewis
Copy link
Owner

bwlewis commented Jun 19, 2018

I get:

library(irlba)
packageVersion('irlba')
## [1] ‘2.3.3’

Xh <- readRDS('test_fail_irlba_C_IRLB_not_found.rds')
SVD <- irlba(Xh,20)
str(SVD)

## List of 5
##  $ d    : num [1:20] 9.6 8.65 8.53 7.25 6.92 ...
##  $ u    : num [1:82, 1:20] -0.01995 -0.01768 0.00259 0.03284 0.12891 ...
##  $ v    : num [1:90, 1:20] 0.0976 0.1344 0.1261 0.1774 0.0851 ...
##  $ iter : int 5
##  $ mprod: int 86

Can you report your R.version output? Also, do things work for you with the current stable version on CRAN (2.3.2) -- I highly recommend sticking with the CRAN version instead of GitHub if possible.

@vdebuen
Copy link
Author

vdebuen commented Jun 20, 2018

Thank you for your quick response.

> R.Version()
$platform
[1] "x86_64-w64-mingw32"

$arch
[1] "x86_64"

$os
[1] "mingw32"

$system
[1] "x86_64, mingw32"

$status
[1] ""

$major
[1] "3"

$minor
[1] "4.4"

$year
[1] "2018"

$month
[1] "03"

$day
[1] "15"

$`svn rev`
[1] "74408"

$language
[1] "R"

$version.string
[1] "R version 3.4.4 (2018-03-15)"

$nickname
[1] "Someone to Lean On"

I wanted to try out the new version to calculate the smallest eigenvalues as well.

I'm going to try different versions of R on other linux machines I have access to.

@vdebuen
Copy link
Author

vdebuen commented Jun 20, 2018

It works fine in all combinations of linux 64 - R Version - irlba version which I've checked:

  • With Linux-64 R version 3.3.2 (2016-10-31), irlba 2.3.3 works fine
  • With Linux-64 R version 3.4.2 (2017-09-28), irlba 2.2.1 works fine
  • With Linux-64 R version 3.4.2 (2017-09-28), irlba 2.3.3 works fine
  • With Linux-64 R version 3.4.3 (2017-11-30), irlba 2.3.1 works fine
  • With Linux-64 R version 3.4.3 (2017-11-30), irlba 2.3.3 works fine

@bwlewis
Copy link
Owner

bwlewis commented Jun 20, 2018 via email

@vdebuen
Copy link
Author

vdebuen commented Jun 21, 2018

Sorry but I don't view the "smallest" argument in CRAN version

> packageVersion('irlba')
 [1] ‘2.1.2’
> args('irlba')
 function (A, nv = 5, nu, maxit = 1000, work = nv + 7, reorth = TRUE, 
     tol = 0.00001, v = NULL, right_only = FALSE, verbose = FALSE, 
     scale, center, du, ds, dv, shift, mult, fastpath = TRUE) 

I forgot to mention that I have Microsoft R Open installed in Windows.

@bwlewis
Copy link
Owner

bwlewis commented Jun 21, 2018 via email

@bwlewis
Copy link
Owner

bwlewis commented Nov 20, 2018

Any update on this? Were you able to get things to work?

FYI a new release is pending, will be on CRAN soon...

@vdebuen
Copy link
Author

vdebuen commented Nov 20, 2018

Finally I updated R and all the packages and everything worked again without problems.
When the new version is ready I will try it without a doubt.
Thank you very much for your help and interest.

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

2 participants