Cannot install proprietary R library

不问归期 提交于 2020-01-03 04:46:29

问题


I have developed my own R library (called HAM)

When I use the install() command from the library roxygen2, the result looks as shown below:

* installing *source* package 'HAM' ...
** R
** preparing package for lazy loading
Warnung: package 'car' was built under R version 3.1.2
Warnung: package 'gmm' was built under R version 3.1.2
Warnung: package 'MASS' was built under R version 3.1.2
Warnung: package 'fAssets' was built under R version 3.1.2
Warnung: package 'timeDate' was built under R version 3.1.2
Warnung: package 'timeSeries' was built under R version 3.1.2
Warnung: package 'fBasics' was built under R version 3.1.2
Warnung: package 'fPortfolio' was built under R version 3.1.2
Warnung: package 'quantmod' was built under R version 3.1.2
** help
*** installing help indices
** building package indices
** testing if installed package can be loaded
*** arch - i386
Warnung: package 'car' was built under R version 3.1.2
Warnung: package 'gmm' was built under R version 3.1.2
Error occurred during initialization of VM
Unable to load native library: Can't find dependent libraries
*** arch - x64
Warnung: package 'car' was built under R version 3.1.2
Warnung: package 'gmm' was built under R version 3.1.2
Warnung: package 'MASS' was built under R version 3.1.2
Warnung: package 'fAssets' was built under R version 3.1.2
Warnung: package 'timeDate' was built under R version 3.1.2
Warnung: package 'timeSeries' was built under R version 3.1.2
Warnung: package 'fBasics' was built under R version 3.1.2
Warnung: package 'fPortfolio' was built under R version 3.1.2
Warnung: package 'quantmod' was built under R version 3.1.2
ERROR: loading failed for 'i386'
* removing 'C:/Program Files/R/R-3.1.1/library/HAM'
Error: Command failed (1)

My session info is

R version 3.1.1 (2014-07-10)
Platform: x86_64-w64-mingw32/x64 (64-bit)

locale:
[1] LC_COLLATE=German_Switzerland.1252  LC_CTYPE=German_Switzerland.1252    LC_MONETARY=German_Switzerland.1252
[4] LC_NUMERIC=C                        LC_TIME=German_Switzerland.1252    

attached base packages:
[1] stats     graphics  grDevices utils     datasets  methods   base     

other attached packages:
 [1] roxygen2_4.1.0    devtools_1.6.1    xlsx_0.5.7        xlsxjars_0.6.1    gmm_1.5-0         urca_1.2-8       
 [7] tseries_0.10-32   strucchange_1.5-0 sandwich_2.3-2    car_2.0-22        lmtest_0.9-33     openxlsx_2.3.2   
[13] xts_0.9-7         zoo_1.7-11        tis_1.27          lubridate_1.3.3   Rbbg_0.4-155      rJava_0.9-6      

loaded via a namespace (and not attached):
 [1] digest_0.6.8    grid_3.1.1      lattice_0.20-29 MASS_7.3-37     memoise_0.2.1   nnet_7.3-8      plyr_1.8.1     
 [8] quadprog_1.5-5  Rcpp_0.11.3     stringr_0.6.2   tools_3.1.1  

What is the problem? All relevant libraries are installed on my PC, so there should not be an error message claiming that a dependent library is missing.

来源:https://stackoverflow.com/questions/28146968/cannot-install-proprietary-r-library

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!