Hi Niel,

On 18/06/15 15:57, Niek de Klein wrote:
Hi mailinglist,

I'm probably missing something here and unnecessarily complicating
things. I am trying to get R installed with just a few packages we
use. One of the packages, ggplot2, has a lot of dependencies. So when
I try to install R with one of the existing EasyBuild files and have
ggplot2 as the dependency it will throw an error due to the
dependencies of ggplot2 not being installed, and I have to add the
dependencies to the .eb file. And then add the dependencies of the
dependencies to the .eb file, etc etc.

When installing libraries from within R you can simply give the option
"dependency=True" and it will automagically install all dependencies
for you. Is there an option like that when installing R and some R
libraries?

For now, no, there's no way to let EB/R automagically install the required dependencies.

We deliberately do not enable 'dependency=True', to ensure we can reproduce the exact same installation later; if you let R automagically resolve dependencies and let it pick the most recent version at that time for the dependencies, you can't do an exact reproduced install.

That does move the burden to the person writing the easyconfig file though, that's true, and if you create an easyconfig for R with lots of extensions included, it's pretty painful...

I'm willing to accept a PR that allows to enable automagic resolution of R libraries by setting `dependency=True` somewhere in https://github.com/hpcugent/easybuild-easyblocks/blob/master/easybuild/easyblocks/generic/rpackage.py, but it should remained disabled by default, in my view.


regards,

Kenneth

Reply via email to