Hi, I've got a library I'm trying to build, and am having an error on R CMD check... The source is fine, and the script runs OK, but during the script test execution it downloads a library from an online repository, which goes fine and it says that installation was successful... However, after it installs the library OK, it then cannot find it (despite it being installed properly in the R installation even before I ran R CMD check)...it is looking in the working directory's .Rcheck folder, and halts because it cannot find it there... I'm not sure at all what I'm sup'd to do...?? Is there a way for me to tell R CMD check to only look for installed libraries in another place? I'm sorry if this is vague, but I'm pretty thoroughly confused here... This is Mac OS X 10.3...but I am trying to build a source library that will be cross-platform (there is only R code / no C code or anything fancy...sourcing my scripts from this library works on mac and win2k pro)... Thanks in advance, Ken
Maybe you forgot to list the name of dependent package in 'Depends' section of 'DESCRIPTION' file. I think that would have effect you describe. See http://cran.r-project.org/doc/manuals/R-exts.html#The-DESCRIPTION-file for details. Jarek -----Original Message----- From: r-help-bounces at stat.math.ethz.ch [mailto:r-help-bounces at stat.math.ethz.ch] Sent: Monday, October 03, 2005 2:05 PM To: r-help at stat.math.ethz.ch Subject: [R] Library error when using R CMD check Hi, I've got a library I'm trying to build, and am having an error on R CMD check... The source is fine, and the script runs OK, but during the script test execution it downloads a library from an online repository, which goes fine and it says that installation was successful... However, after it installs the library OK, it then cannot find it (despite it being installed properly in the R installation even before I ran R CMD check)...it is looking in the working directory's .Rcheck folder, and halts because it cannot find it there... I'm not sure at all what I'm sup'd to do...?? Is there a way for me to tell R CMD check to only look for installed libraries in another place? I'm sorry if this is vague, but I'm pretty thoroughly confused here... This is Mac OS X 10.3...but I am trying to build a source library that will be cross-platform (there is only R code / no C code or anything fancy...sourcing my scripts from this library works on mac and win2k pro)... Thanks in advance, Ken ______________________________________________ R-help at stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html
On Mon, 3 Oct 2005, Ken Termiso wrote:> I've got a library I'm trying to build, and am having an error on R CMD > check... > > The source is fine, and the script runs OK, but during the script test > execution it downloads a library from an online repository, which goes fine > and it says that installation was successful... > > However, after it installs the library OK, it then cannot find it (despite > it being installed properly in the R installation even before I ran R CMD > check)...it is looking in the working directory's .Rcheck folder, and halts > because it cannot find it there... > > I'm not sure at all what I'm sup'd to do...?? Is there a way for me to tell > R CMD check to only look for installed libraries in another place?This help any? $ R_LIBS=<colon separated pathname list> $ env R_LIBS=$R_LIBS R CMD check <pkgname> Note that the first line would normally corespond to the entry of the same name in your <~/.Renviron> file. In the case of Mac OS X, it should normally be: R_LIBS=~/Library/R/library ---------------------------------------------------------- SIGSIG -- signature too long (core dumped)