jefferis / nabor

R package wrapping libnabo: fast K Nearest Neighbor search for low dimensions
https://github.com/ethz-asl/libnabo
Other
22 stars 0 forks source link

loading of package fails #8

Closed eduardszoecs closed 7 years ago

eduardszoecs commented 7 years ago

I cannot load the package:

R> library('nabor')
Error in .doLoadActions(where, attach) : 
  error in load action .__A__.1 for package nabor: loadModule(module, NULL, env = where, loadNow = TRUE): Unable to load module "class_WKNNF": cannot allocate vector of size 1043074.4 Gb
Error: package or namespace load failed for ‘nabor’

Reinstallation does not help. Any ideas?

jefferis commented 7 years ago

Very strange. Have you started a clean session and installed the current development version from GitHub? And the same from CRAN? If still no luck maybe post devtools::session_info().

Sent from my iPhone

On 24 Aug 2017, at 12:19, Eduard Szöcs notifications@github.com wrote:

I cannot load the package:

R> library('nabor') Error in .doLoadActions(where, attach) : error in load action .A.1 for package nabor: loadModule(module, NULL, env = where, loadNow = TRUE): Unable to load module "class_WKNNF": cannot allocate vector of size 1043074.4 Gb Error: package or namespace load failed for ‘nabor’ Reinstallation does not help. Any ideas?

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub, or mute the thread.

eduardszoecs commented 7 years ago
> library('nabor')
Error in .doLoadActions(where, attach) :
  error in load action .__A__.1 for package nabor: loadModule(module, NULL, env = where, loadNow = TRUE): Unable to load module "class_WKNNF": cannot allocate vector of size 1045614.5 Gb
Error: package or namespace load failed for ‘nabor’
> devtools::session_info()
Session info ------------------------------------------------------------------
 setting  value
 version  R version 3.1.2 (2014-10-31)
 system   x86_64, linux-gnu
 ui       unknown
 language (EN)
 collate  en_US.UTF-8
 tz       <NA>
 date     2017-08-24

Packages ----------------------------------------------------------------------
 package    * version date       source
 base       * 3.1.2   2015-02-10 local
 datasets   * 3.1.2   2015-02-10 local
 devtools     1.13.0  2017-05-08 CRAN (R 3.1.2)
 digest       0.6.12  2017-01-27 CRAN (R 3.1.2)
 graphics   * 3.1.2   2015-02-10 local
 grDevices  * 3.1.2   2015-02-10 local
 memoise      1.0.0   2016-01-29 CRAN (R 3.1.2)
 methods    * 3.1.2   2015-02-10 local
 Rcpp         0.12.12 2017-07-15 cran (@0.12.12)
 rstudioapi   0.6     2016-06-27 CRAN (R 3.1.2)
 stats      * 3.1.2   2015-02-10 local
 utils      * 3.1.2   2015-02-10 local
 withr        1.0.2   2016-06-20 CRAN (R 3.1.2)
jefferis commented 7 years ago

Hi Eduard,

My best guess is that your R is rather old and it is possible that there is some incompatibility that I have not realised based on recent Rcpp. I strongly recommend trying the current R.

Best,

Greg.

On 24 Aug 2017, at 14:15, Eduard Szöcs notifications@github.com wrote:

library('nabor') Error in .doLoadActions(where, attach) : error in load action .A.1 for package nabor: loadModule(module, NULL, env = where, loadNow = TRUE): Unable to load module "class_WKNNF": cannot allocate vector of size 1045614.5 Gb Error: package or namespace load failed for ‘nabor’ devtools::session_info() Session info ------------------------------------------------------------------ setting value version R version 3.1.2 (2014-10-31) system x86_64, linux-gnu ui unknown language (EN) collate en_US.UTF-8 tz date 2017-08-24

Packages ---------------------------------------------------------------------- package version date source base 3.1.2 2015-02-10 local datasets 3.1.2 2015-02-10 local devtools 1.13.0 2017-05-08 CRAN (R 3.1.2) digest 0.6.12 2017-01-27 CRAN (R 3.1.2) graphics 3.1.2 2015-02-10 local grDevices 3.1.2 2015-02-10 local memoise 1.0.0 2016-01-29 CRAN (R 3.1.2) methods 3.1.2 2015-02-10 local Rcpp 0.12.12 2017-07-15 cran (@0.12.12) rstudioapi 0.6 2016-06-27 CRAN (R 3.1.2) stats 3.1.2 2015-02-10 local utils 3.1.2 2015-02-10 local withr 1.0.2 2016-06-20 CRAN (R 3.1.2) — You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/jefferis/nabor/issues/8#issuecomment-324631304, or mute the thread https://github.com/notifications/unsubscribe-auth/AABc09-C5wvzhTnoR8EHqsHrRKuMW2bMks5sbXdjgaJpZM4PBPeG.

-- Gregory Jefferis, PhD Division of Neurobiology MRC Laboratory of Molecular Biology Francis Crick Avenue Cambridge Biomedical Campus Cambridge, CB2 OQH, UK

http://www2.mrc-lmb.cam.ac.uk/group-leaders/h-to-m/g-jefferis http://jefferislab.org http://flybrain.stanford.edu

eduardszoecs commented 7 years ago

Thanks for your efforts! You where correct: it was a corrupted/ outdated Rcpp version.