Raffaello Vardavas
2013-Jun-13 17:26 UTC
[R] Installing package(s) into ... (as ‘lib’ is unspecified)
Dear All, this may be a trivial problem. A collaborator has created an R package for internal use (not available on CRAN). This installs and works fine on my Mac but fails to install on windows. When I install the packagein windows by browing and pointing to the .zip file I get the following error:> install.packages("C:/Users/rvardava/RiskPerceptionNetworks/Tools/nirm/nirm.tags/nirm_0.6.5.zip", repos = NULL)Installing package(s) into ‘C:/Program Files/R/R-2.15.3/library’ (as ‘lib’ is unspecified)> install.packages("C:/Users/rvardava/RiskPerceptionNetworks/Tools/nirm/nirm.tags/nirm_0.6.4.zip", repos = NULL)Installing package(s) into ‘C:/Program Files/R/R-2.15.3/library’ (as ‘lib’ is unspecified) However if I install a package from CRAN (e.g. deSolve) the same warning appears initially - but it continues and installs the package with no problems:> install.packages("deSolve")Installing package(s) into ‘C:/Program Files/R/R-2.15.3/library’ (as ‘lib’ is unspecified) trying URL 'http://cran.stat.ucla.edu/bin/windows/contrib/2.15/deSolve_1.10-6.zip' Content type 'application/zip' length 2659517 bytes (2.5 Mb) opened URL downloaded 2.5 Mb package ‘deSolve’ successfully unpacked and MD5 sums checked The downloaded binary packages are in C:\Users\rvardava\AppData\Local\Temp\RtmpO8Ul1g\downloaded_packages Please help. Thanks. Raff [[alternative HTML version deleted]]
Greg Snow
2013-Jun-13 17:34 UTC
[R] Installing package(s) into ... (as ‘lib’ is unspecified)
What evidence do you have that the package did not install? The only differences in the output that you show is that in the second case you get extra output about downloading the package which does not apply in the first case since you did not need to download the package. On Thu, Jun 13, 2013 at 11:26 AM, Raffaello Vardavas <r_vardavas@hotmail.com> wrote:> Dear All, > > this may be a trivial problem. A collaborator has created an R package for > internal use (not available on CRAN). This installs and works fine on my > Mac but fails to install on windows. > > > > When I install the packagein windows by browing and pointing to the .zip > file I get the following error: > > > > > > install.packages("C:/Users/rvardava/RiskPerceptionNetworks/Tools/nirm/nirm.tags/nirm_0.6.5.zip", > repos = NULL) > Installing package(s) into ‘C:/Program Files/R/R-2.15.3/library’ > (as ‘lib’ is unspecified) > > > install.packages("C:/Users/rvardava/RiskPerceptionNetworks/Tools/nirm/nirm.tags/nirm_0.6.4.zip", > repos = NULL) > Installing package(s) into ‘C:/Program Files/R/R-2.15.3/library’ > (as ‘lib’ is unspecified) > > > > However if I install a package from CRAN (e.g. deSolve) the same warning > appears initially - but it continues and installs the package with no > problems: > > > > install.packages("deSolve") > Installing package(s) into ‘C:/Program Files/R/R-2.15.3/library’ > (as ‘lib’ is unspecified) > trying URL ' > http://cran.stat.ucla.edu/bin/windows/contrib/2.15/deSolve_1.10-6.zip' > Content type 'application/zip' length 2659517 bytes (2.5 Mb) > opened URL > downloaded 2.5 Mb > > package ‘deSolve’ successfully unpacked and MD5 sums checked > > The downloaded binary packages are in > C:\Users\rvardava\AppData\Local\Temp\RtmpO8Ul1g\downloaded_packages > > > > Please help. > > > > Thanks. > > Raff > > [[alternative HTML version deleted]] > > > ______________________________________________ > R-help@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. > >-- Gregory (Greg) L. Snow Ph.D. 538280@gmail.com [[alternative HTML version deleted]]
Duncan Murdoch
2013-Jun-13 17:35 UTC
[R] Installing package(s) into ... (as ‘lib’ is unspecified)
On 13/06/2013 1:26 PM, Raffaello Vardavas wrote:> Dear All, > > this may be a trivial problem. A collaborator has created an R package for internal use (not available on CRAN). This installs and works fine on my Mac but fails to install on windows. > > > > When I install the packagein windows by browing and pointing to the .zip file I get the following error: > > > > > install.packages("C:/Users/rvardava/RiskPerceptionNetworks/Tools/nirm/nirm.tags/nirm_0.6.5.zip", repos = NULL) > Installing package(s) into ?C:/Program Files/R/R-2.15.3/library? > (as ?lib? is unspecified) > > install.packages("C:/Users/rvardava/RiskPerceptionNetworks/Tools/nirm/nirm.tags/nirm_0.6.4.zip", repos = NULL) > Installing package(s) into ?C:/Program Files/R/R-2.15.3/library? > (as ?lib? is unspecified)Those are not errors, they are just notes to let you know where it was installed.> > > However if I install a package from CRAN (e.g. deSolve) the same warning appears initially - but it continues and installs the package with no problems: > > > > install.packages("deSolve") > Installing package(s) into ?C:/Program Files/R/R-2.15.3/library? > (as ?lib? is unspecified) > trying URL 'http://cran.stat.ucla.edu/bin/windows/contrib/2.15/deSolve_1.10-6.zip' > Content type 'application/zip' length 2659517 bytes (2.5 Mb) > opened URL > downloaded 2.5 Mb > > package ?deSolve? successfully unpacked and MD5 sums checked > > The downloaded binary packages are in > C:\Users\rvardava\AppData\Local\Temp\RtmpO8Ul1g\downloaded_packagesYou haven't shown us any error, but if the package doesn't work, it might be because it wasn't built properly. A .zip file that works on a Mac is unlikely to also work on Windows: Windows uses the .zip extension for *binary* installs. Duncan Murdoch