Re: [Rd] R CMD check - "there is no package called"

From: Simon Urbanek <simon.urbanek_at_r-project.org>
Date: Sun, 25 Jul 2010 20:00:34 -0400

On Jul 24, 2010, at 9:02 AM, John Hendrickx wrote:

> I'm trying to update my "perturb" package to get rid of some small warning
> messages. The examples in "perturb" use the "Duncan" dataset from the "car"
> package and I have "car" installed in R. But when I run "R CMD check", I get an
> error message
>
>

>> require("car")

> Loading required package: car
> Warning in library(package, lib.loc = lib.loc, character.only = TRUE,
> logical.return = TRUE, :
> there is no package called 'car'
>> data(Duncan)

> Warning in data(Duncan) : data set 'Duncan' not found
>
> This is very strange, the example works fine if I just run it in R. This is the
> example from the perturb.rd file:
>
> \examples{
> require("car")
> data(Duncan)
> attach(Duncan)
> m1<-lm(prestige~income+education)
> ...
>
> I'm using R 2.11.1 under Ubuntu 10.04. Perhaps the problem is related to the
> packages being installed in my home directory. I've create an ~/.Renviron file
> with
>
> R_LIBS_USER="/home/john/lib/R/library"
>
> I've also tried creating an environment variable "export
> R_LIBRARY_DIR=/home/john/lib/R/library/" before running R CMD check.

The correct name is R_LIBS

Cheers,
Simon

> That made
> no difference. Can anyone point me in the right direction? Do I have to install
> packages in R_HOME?
>
>
>
>
> [[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 Received on Mon 26 Jul 2010 - 00:02:57 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Thu 29 Jul 2010 - 12:10:21 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-devel. Please read the posting guide before posting to the list.

list of date sections of archive