.onLoad在loadNamespace()中失败,用于' rClr'

时间:2017-04-05 10:09:18

标签: r rclr

我正在尝试构建一个包含名称空间文件的包,如下所示:

exportPattern("^[[:alpha:]]+")

importFrom(rClr, clrLoadAssembly)

rClr已安装在我的系统中。 我使用devtools::build构建我的包,并且它已成功构建。

使用以下命令install.packages("C:/Package/Utils_0.1.0.tar.gz", repos = NULL, type = "source")

安装软件包时

我收到以下错误:

* installing *source* package 'Utils' ...
** R
** inst
** preparing package for lazy loading
** help
*** installing help indices
** building package indices
** testing if installed package can be loaded
*** arch - i386
Error : .onLoad failed in loadNamespace() for 'rClr', details:
  call: fun(libname, pkgname)
  error: 'msvcr120.dll' was not found on this Windows system.
You are probably missing the Visual C++ Redistributable for Visual Studio 2013.
Check instructions at https://r2clr.codeplex.com/wikipage?title=Installing%20R%20packages&referringTitle=Documentation
Error: loading failed
Execution halted
*** arch - x64
ERROR: loading failed for 'i386'
* removing 'C:/Users/S.Bista/Documents/R/R-3.3.2/library/Utils'
* restoring previous 'C:/Users/S.Bista/Documents/R/R-3.3.2/library/Utils'
Warning in install.packages :
  running command '"C:/Users/S~1.BIS/DOCUME~1/R/R-33~1.2/bin/x64/R" CMD INSTALL -l "C:\Users\S.Bista\Documents\R\R-3.3.2\library" "C:/Package/Utils_0.1.0.tar.gz"' had status 1
Warning in install.packages :
  installation of package ‘C:/Package/Utils_0.1.0.tar.gz’ had non-zero exit status

i386的加载失败,但我有x64系统。

0 个答案:

没有答案