[R] How do I install a Windows package built from source?

David K Parker davparker at gmail.com
Mon Sep 29 01:15:33 CEST 2014


> Hello,
>
> I'm trying to connect to a MongoDB through the rmongodb package. Here is
> my system info:
>
> R version 3.1.1 (2014-07-10)
> Platform: x86_64-w64-mingw32/x64 (64-bit)
>
> I can install the rmongodb package but it won't load, see below:
> > install.packages("rmongodb")
> Installing package into ‘C:/Users/David/Documents/R/win-library/3.1’
> (as ‘lib’ is unspecified)
> trying URL '
> http://cran.revolutionanalytics.com/bin/windows/contrib/3.1/rmongodb_1.6.5.zip
> '
> Content type 'application/zip' length 1155000 bytes (1.1 Mb)
> opened URL
> downloaded 1.1 Mb
>
> package ‘rmongodb’ successfully unpacked and MD5 sums checked
>
> The downloaded binary packages are in
> C:\Users\David\AppData\Local\Temp\RtmpqSKJi9\downloaded_packages
> > library("rmongodb")
> Error in get(".packageName", where) : lazy-load database 'P' is corrupt
> In addition: Warning message:
> In get(".packageName", where) : internal error -3 in R_decompress1
> Error: package or namespace load failed for ‘rmongodb’
>
> So, next I remove it, then try installing with devtools as shown here:
> library(devtools)
> install_github("rmongodb", "mongosoup")
>
> but that just flat out fails to install. So now I've downloaded the source
> and have successfully built the package with Visual Studio 2012 but I'm not
> sure how to load it into R.
> Here is the directory listing:
>
> ls  "Documents/visual studio 2012/Projects/rmongodb/Debug/rmongodb"
>
> App.xaml          Common         resources.pri              rmongodb.exe
>  rmongodb.ilk  rmongodb.pdb
> AppxManifest.xml  MainPage.xaml  rmongodb.build.appxrecipe  rmongodb.exp
>  rmongodb.lib  rmongodb.winmd
>
> Any help would be greatly appreciated,
> Thank you,
> David Parker
>

	[[alternative HTML version deleted]]



More information about the R-help mailing list