Hello, I'm having some trouble trying to set the .libPaths() on Windows 7, R-2.15.0 and R-2.15.1. The environment variables R_LIBS and R_LIBS_USER are set according to the help page for .libPaths() and the Rprofile.site file has the default setting, as shown below. R-2.14.1 recognizes the lib paths but not R-2.15. Is this a bug or am I doing something wrong? (I've also tried with R-2.12.0 and R-2.13.0 and it works as documented but I only show here the output for R-2.14.1, R-2.15.0 and R-2.15.1) First, the Windows settings. Microsoft Windows [Vers?o 6.1.7601] Copyright (c) 2009 Microsoft Corporation. Todos os direitos reservados. C:\Users\Rui>echo %R_LIBS% C:/PROGRA~1/R/win-library; C:\Users\Rui>echo %R_LIBS_USER% C:/PROGRA~1/R/win-library;C:/PROGRA~1/R/win-library/%v; Then, file Rprofile.site . # set libPath to win-library .libPaths(new="C:PROGRA~1/R/win-library") .libPaths(new=paste("C:PROGRA~1/R/win-library", paste(R.version$major,as.integer(R.version$minor),sep='.'), sep="/")) Finally, three R sessions. #--------- R-2.14.1 > .libPaths() [1] "C:/Program Files/R/win-library" "C:/Program Files/R/win-library/2.14" [3] "C:/Program Files/R/R-2.14.1/library" > > sessionInfo() R version 2.14.1 (2011-12-22) Platform: i386-pc-mingw32/i386 (32-bit) locale: [1] LC_COLLATE=Portuguese_Portugal.1252 LC_CTYPE=Portuguese_Portugal.1252 [3] LC_MONETARY=Portuguese_Portugal.1252 LC_NUMERIC=C [5] LC_TIME=Portuguese_Portugal.1252 attached base packages: [1] stats graphics grDevices utils datasets methods base #--------- R-2.15.0 > .libPaths() [1] "C:/Program Files/R/R-2.15.0/library" > > sessionInfo() R version 2.15.0 (2012-03-30) Platform: i386-pc-mingw32/i386 (32-bit) locale: [1] LC_COLLATE=Portuguese_Portugal.1252 LC_CTYPE=Portuguese_Portugal.1252 [3] LC_MONETARY=Portuguese_Portugal.1252 LC_NUMERIC=C [5] LC_TIME=Portuguese_Portugal.1252 attached base packages: [1] stats graphics grDevices utils datasets methods base #--------- R-2.15.1 > .libPaths() [1] "C:/Program Files/R/R-2.15.1/library" > > sessionInfo() R version 2.15.1 (2012-06-22) Platform: i386-pc-mingw32/i386 (32-bit) locale: [1] LC_COLLATE=Portuguese_Portugal.1252 LC_CTYPE=Portuguese_Portugal.1252 [3] LC_MONETARY=Portuguese_Portugal.1252 LC_NUMERIC=C [5] LC_TIME=Portuguese_Portugal.1252 attached base packages: [1] stats graphics grDevices utils datasets methods base loaded via a namespace (and not attached): [1] fortunes_1.5-0 Rui Barradas
On 12-08-06 6:09 AM, Rui Barradas wrote:> Hello, > > I'm having some trouble trying to set the .libPaths() on Windows 7, > R-2.15.0 and R-2.15.1. The environment variables R_LIBS and R_LIBS_USER > are set according to the help page for .libPaths() and the Rprofile.site > file has the default setting, as shown below. R-2.14.1 recognizes the > lib paths but not R-2.15. Is this a bug or am I doing something wrong?There's at least one typo below, but besides that, it's hard to tell. Do the directories you're trying to set exist? More inline.> (I've also tried with R-2.12.0 and R-2.13.0 and it works as documented > but I only show here the output for R-2.14.1, R-2.15.0 and R-2.15.1) > > First, the Windows settings. > > Microsoft Windows [Vers?o 6.1.7601] > Copyright (c) 2009 Microsoft Corporation. Todos os direitos reservados. > > C:\Users\Rui>echo %R_LIBS% > C:/PROGRA~1/R/win-library;I don't think the terminal semicolon is needed, though it shouldn't cause a problem.> > C:\Users\Rui>echo %R_LIBS_USER% > C:/PROGRA~1/R/win-library;C:/PROGRA~1/R/win-library/%v;Does C:/PROGRA~1/R/win-library exist? Does C:/PROGRA~1/R/win-library/2.5 exist? Does normalizePath("C:/PROGRA~1/R/win-library", winslash="/") give a directory that exists?> > Then, file Rprofile.site . > > # set libPath to win-library > .libPaths(new="C:PROGRA~1/R/win-library") > .libPaths(new=paste("C:PROGRA~1/R/win-library", > paste(R.version$major,as.integer(R.version$minor),sep='.'), sep="/"))These lines have the typo: it should be C:/PROGRA~1, not C:PROGRA~1.> > Finally, three R sessions. > > #--------- R-2.14.1 > > > .libPaths() > [1] "C:/Program Files/R/win-library" "C:/Program > Files/R/win-library/2.14" > [3] "C:/Program Files/R/R-2.14.1/library" > > > > sessionInfo() > R version 2.14.1 (2011-12-22) > Platform: i386-pc-mingw32/i386 (32-bit) > > locale: > [1] LC_COLLATE=Portuguese_Portugal.1252 LC_CTYPE=Portuguese_Portugal.1252 > [3] LC_MONETARY=Portuguese_Portugal.1252 LC_NUMERIC=C > [5] LC_TIME=Portuguese_Portugal.1252 > > attached base packages: > [1] stats graphics grDevices utils datasets methods base > > #--------- R-2.15.0 > > > .libPaths() > [1] "C:/Program Files/R/R-2.15.0/library" > > > > sessionInfo() > R version 2.15.0 (2012-03-30) > Platform: i386-pc-mingw32/i386 (32-bit) > > locale: > [1] LC_COLLATE=Portuguese_Portugal.1252 LC_CTYPE=Portuguese_Portugal.1252 > [3] LC_MONETARY=Portuguese_Portugal.1252 LC_NUMERIC=C > [5] LC_TIME=Portuguese_Portugal.1252 > > attached base packages: > [1] stats graphics grDevices utils datasets methods base > > #--------- R-2.15.1 > > > .libPaths() > [1] "C:/Program Files/R/R-2.15.1/library" > > > > sessionInfo() > R version 2.15.1 (2012-06-22) > Platform: i386-pc-mingw32/i386 (32-bit) > > locale: > [1] LC_COLLATE=Portuguese_Portugal.1252 LC_CTYPE=Portuguese_Portugal.1252 > [3] LC_MONETARY=Portuguese_Portugal.1252 LC_NUMERIC=C > [5] LC_TIME=Portuguese_Portugal.1252 > > attached base packages: > [1] stats graphics grDevices utils datasets methods base > > loaded via a namespace (and not attached): > [1] fortunes_1.5-0 > > > Rui Barradas > > ______________________________________________ > R-devel at r-project.org mailing list > https://stat.ethz.ch/mailman/listinfo/r-devel >
... and note additionally, as per section 1.5.3, "Windows External Software" of the "Writing R Extensions" manual: "Note that CRAN does not accept submissions of precompiled binaries due to security concerns,and does not allow binary executables in source packages." -- Cheers, Bert On Mon, Aug 6, 2012 at 6:39 AM, Uwe Ligges <ligges at statistik.tu-dortmund.de> wrote:> > > On 06.08.2012 15:09, David L Lorenz wrote: >> >> Hi, >> A question has come up within a user group about the possibility of >> viruses or other malicious code being embedded within any package served >> from CRAN. How much checking is done to guard against this? > > > Of course, CRAN cannot guarantee that packages are free of malicious code, > otherwise manual inspection of the code of almost 4000 packages with dozens > of updates and new submissions a day would be necessary. > > CRAN does some checks on the precompiled binaries for viruses, but again > cannot give guarantees. Please use the normal precautions with downloaded > executables. > > > Best, > Uwe Ligges > > > >> I do not >> expect any kind of response about picking up R code from any other source, >> like gitHub. Thanks. > > > >> Dave >> [[alternative HTML version deleted]] >> >> ______________________________________________ >> R-devel at r-project.org mailing list >> https://stat.ethz.ch/mailman/listinfo/r-devel >> > > ______________________________________________ > R-devel at r-project.org mailing list > https://stat.ethz.ch/mailman/listinfo/r-devel-- Bert Gunter Genentech Nonclinical Biostatistics Internal Contact Info: Phone: 467-7374 Website: http://pharmadevelopment.roche.com/index/pdb/pdb-functional-groups/pdb-biostatistics/pdb-ncb-home.htm