Skip to content
Prev 440 / 12125 Next

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

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