SBista
SBista

Reputation: 7704

.onLoad failed in loadNamespace() for 'rClr'

I am trying to build a package which has the namespace files as follows:

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

importFrom(rClr, clrLoadAssembly)

rClr is installed in my system. I build my package using devtools::build and it successfully builds.

When I install the package using the following command install.packages("C:/Package/Utils_0.1.0.tar.gz", repos = NULL, type = "source")

I get the following error:

* 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

Loading fails for i386 but I have x64 system.

Upvotes: 0

Views: 255

Answers (0)

Related Questions