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

Jeff Newmiller jdnewmil at dcn.davis.CA.us
Mon Sep 29 04:09:16 CEST 2014


1) This question belongs on R-devel. Please read the Posting Guide.

2) I am almost certain that unless you have built your R software using Visual Studio 2012, you will be unable to use a package built with that tool with your R software. Read the instructions regarding Rtools on CRAN regarding building packages for R on Windows.
---------------------------------------------------------------------------
Jeff Newmiller                        The     .....       .....  Go Live...
DCN:<jdnewmil at dcn.davis.ca.us>        Basics: ##.#.       ##.#.  Live Go...
                                      Live:   OO#.. Dead: OO#..  Playing
Research Engineer (Solar/Batteries            O.O#.       #.O#.  with
/Software/Embedded Controllers)               .OO#.       .OO#.  rocks...1k
--------------------------------------------------------------------------- 
Sent from my phone. Please excuse my brevity.

On September 28, 2014 4:15:33 PM PDT, David K Parker <davparker at gmail.com> wrote:
>> 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]]
>
>______________________________________________
>R-help at r-project.org mailing list
>https://stat.ethz.ch/mailman/listinfo/r-help
>PLEASE do read the posting guide
>http://www.R-project.org/posting-guide.html
>and provide commented, minimal, self-contained, reproducible code.



More information about the R-help mailing list