Hi Ken, all,

(Kenneth Hoste, Thu, Jun 18, 2015 at 04:32:27PM +0200:)
> 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.

Could this be worked around by having EB save the list of installed R
packages + versions (like `pip freeze`) upon first install, then re-use
the saved list if available.

Something along these lines (pseudo-code):

        package_list_file = easyconfig_file_name.replace('.eb', '.pkglist.csv')
        if not exists(package_list_file):
           # 1. install packages by name, let R choose version
           # 2. dump list of installed packages to file: (pkgname, version)
        else:
           # 1. read in the pkglist.csv file
           # 2. use R's install_version() to install the exact same pkg and 
version

Ciao,
R

--
Riccardo Murri
http://www.s3it.uzh.ch/about/team/#Riccardo.Murri

S3IT: Services and Support for Science IT
University of Zurich
Winterthurerstrasse 190, CH-8057 Zürich (Switzerland)

Tel: +41 44 635 4222
Fax: +41 44 635 6888

Reply via email to