[R-pkg-devel] R CMD check for a package which depends on not installed other package

Rainer M Krug Rainer at krugs.de
Wed Aug 26 12:23:58 CEST 2015


Hi

I am working on two packages, where one (EnergyBalance) contains
general functions and the second package (EnergyBalancePaper) contains
the data and the analysis of this specific day=ta using the general
functions ion the package EnergyBalance.

Now I am trying to clean the packages and I am running

--8<---------------cut here---------------start------------->8---
R CMD build ./PACKAGE && R CMD check PACKAGE_0.0.1.tar.gz
--8<---------------cut here---------------end--------------->8---

where everything works fine for EnergyBalance, but EnergyBalancePaper
depends on EnergyBalance, and I get obviously the following error:

,----
| Package required but not available: ‘EnergyBalance’
`----

As they are both still under heavy development, I do not want to install
them in my main library of R.

Is there a way of telling R to use ./../library as a library as well in
the command, or should I define a .Rprofile in the current diractory?

What is the best approach in such a situation?

Thanks,

Rainer

-- 
Rainer M. Krug, PhD (Conservation Ecology, SUN), MSc (Conservation Biology, UCT), Dipl. Phys. (Germany)

Centre of Excellence for Invasion Biology
Stellenbosch University
South Africa

Tel :       +33 - (0)9 53 10 27 44
Cell:       +33 - (0)6 85 62 59 98
Fax :       +33 - (0)9 58 10 27 44

Fax (D):    +49 - (0)3 21 21 25 22 44

email:      Rainer at krugs.de

Skype:      RMkrug

PGP: 0x0F52F982
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 480 bytes
Desc: not available
URL: <https://stat.ethz.ch/pipermail/r-package-devel/attachments/20150826/459383de/attachment.bin>


More information about the R-package-devel mailing list