[R] Error with R CMD check - Packages required but not available:

Reena Bansal Reena.Bansal at moorecap.com
Wed Feb 3 16:41:47 CET 2010


Yes, R_LIBS have been set to include the library where myPackage1 is
installed.

When I start R and do library(myPackage1) it loads just fine so it is
definitely installed. 
But somehow it is not able to do the same when I do R CMD check
myPackage2. 

-----Original Message-----
From: Uwe Ligges [mailto:ligges at statistik.tu-dortmund.de] 
Sent: Wednesday, February 03, 2010 09:55 AM
To: Reena Bansal
Cc: r-help at r-project.org
Subject: Re: [R] Error with R CMD check - Packages required but not
available:



On 02.02.2010 22:52, Reena Bansal wrote:
> Apologies in advance if this is not the right email to post this 
> question.
>
> I successfully created my first R package myPackage1.
> Now I want to create another R package myPackage2 which requires 
> functions from myPackage1.
>
> However when I try R CMD check myPackage2 I get the following error



Have you set the environment variable R_LIBS to include the library
which myPackage1 has been installed into previously?

Best,
Uwe Ligges


> * checking for working pdflatex ... OK
> * using log directory '.../myPackage/myPackage2.Rcheck'
> * using R version 2.9.2 (2009-08-24)
> * using session charset: UTF-8
> * checking for file 'myPackage2/DESCRIPTION' ... OK
> * checking extension type ... Package
> * this is package 'myPackage2' version '1.0'
> * checking package dependencies ... ERROR Packages required but not 
> available:
>    myPackage1



More information about the R-help mailing list