On Tue, 19 Feb 2008, john seers (IFR) wrote: > > > Hello R experts > > I am just learning how to build a package so this is probably a basic > question. I have read the manual( well, to be more truthful, am reading) > the manual, and I have searched the archives to the best of my ability.
You could have searched for R_LIBS in the manual (see below). > I am on Windows. > > When running the command "R CMD check packagename" I get this type of > error: > > * checking package dependencies ... ERROR > Packages required but not available: > chron > > I think this is because I install my packages in "mylibrary" and use > "R_LIBS=C:/PROGRA~1/R/mylibrary" in my Renviron.site file. If I move the > package to the R main library it fixes the problem. But rather defeats > the intention behind having a separate mylibrary. > > Can anybody tell me how to solve this? That is keep my installed > packages in mylibrary but get the package check/build to work? I guess > Depends: has a search path but I cannot find it or how to alter it. Can > anybody point me to some documentation? Set the environment variable R_LIBS in your commands windows/shell. As the manual says: @quotation Note @code{R CMD check} and @code{R CMD build} run @R{} with @option{--vanilla}, so none of the user's startup files are read. If you need @env{R_LIBS} set (to find packages in a non-standard library) you will need to set it in the environment. @end quotation > > Thanks very much for any help. > > > Regards > > > John Seers > > > > > > >> sessionInfo() > R version 2.6.2 (2008-02-08) > i386-pc-mingw32 > > locale: > LC_COLLATE=English_United Kingdom.1252;LC_CTYPE=English_United > Kingdom.1252;LC_MONETARY=English_United > Kingdom.1252;LC_NUMERIC=C;LC_TIME=English_United Kingdom.1252 > > attached base packages: > [1] stats graphics grDevices datasets utils methods base > > > other attached packages: > [1] chron_2.3-20 limma_2.12.0 RWinEdt_1.7-9 >> > > > > > > > --- > > ______________________________________________ > 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. > -- Brian D. Ripley, [EMAIL PROTECTED] Professor of Applied Statistics, http://www.stats.ox.ac.uk/~ripley/ University of Oxford, Tel: +44 1865 272861 (self) 1 South Parks Road, +44 1865 272866 (PA) Oxford OX1 3TG, UK Fax: +44 1865 272595 ______________________________________________ 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.