From ccberry at ucsd.edu  Thu Jul  9 20:31:21 2015
From: ccberry at ucsd.edu (Charles C. Berry)
Date: Thu, 9 Jul 2015 11:31:21 -0700
Subject: [Rd] R CMD build failure
In-Reply-To: <2f3a88$105o53@ironport10.mayo.edu>
References: <2f3a88$105o53@ironport10.mayo.edu>
Message-ID: <alpine.OSX.2.11.1507091127110.1648@charles-berrys-macbook.local>

On Thu, 9 Jul 2015, Therneau, Terry M., Ph.D. wrote:

> I have a local library 'dart' that imports "httr".

[snip `R CMD build' can't find dart]

>
> Any ideas?  There is no mention in the Writing R Extentions manual that it 
> ignores the 
> Rprofile file.

Terry,

>From WRE:

1.3 Checking and building packages

...

Note: R CMD check and R CMD build run R processes with --vanilla in which 
none of the user?s startup files are read. If you need R_LIBS set (to find 
packages in a non-standard library) you can set it in the environment: 
also you can use the check and build environment files (as specified by 
the environment variables R_CHECK_ENVIRON and R_BUILD_ENVIRON; if unset, 
files33 ~/.R/check.Renviron and ~/.R/build.Renviron are used) to set 
environment variables when using these utilities.

And from ?Startup


The command-line option --vanilla implies --no-site-file, --no-init-file, 
--no-environ and (except for R CMD) --no-restore


HTH,

Chuck


[Rd] R CMD build failure
Charles C. Berry