Install R package from binary within EasyBuild RPackage easyblock

Viewed 13

I want to install several R packages within EasyBuild Bundle:

Example of .eb file:

easyblock = 'Bundle'
name = 'Rpackages'

homepage = 'Some homepage'
description = 'Some description'

toolchain = {'name': 'foss', 'version': '2021b'}

dependencies = [
    ('R', '4.2.1')
]

exts_default_options = {
'source_urls': [
    'https://cran.r-project.org/src/contrib/Archive/%(name)s',
    'https://cran.r-project.org/src/contrib/',
    'https://cran.freestatistics.org/src/contrib',
],

'source_tmpl': '%(name)s_%(version)s.tar.gz',
}

exts_defaultclass = 'RPackage'
exts_list = [
    'Package1',
    'Package2',
]

moduleclass = 'devel'

In this case, all R packages will be installed from the source code.

Does anyone know if it is possible to set up installing it from the binary in order to reduce building time?

Thank you in advance!

0 Answers
Related