kiwiroy / RLinuxModules

R package that makes linux environment modules available from R
Other
1 stars 1 forks source link

RLinuxModules is not compatible with R > 4.1.0 #7

Open eburgueno opened 2 years ago

eburgueno commented 2 years ago

RLinuxModules wants to add bindings to the base environment which is no longer supported since R 4.1.0

  • The base environment and its namespace are now locked (so one can no longer add bindings to these or remove from these).

This breaks installing RLinuxModules, which is a blocker for deploying new versions of R in powerPlant:

[hraegb@aklpps13 ~]$ source /software/powerPlant/etc/powerPlant.sh
[hraegb@aklpps13 ~]$ ml load R
Loading R/4.1.2-foss-2021b
  Loading requirement: GCCcore/11.2.0 zlib/1.2.11-GCCcore-11.2.0 binutils/2.37-GCCcore-11.2.0 GCC/11.2.0 numactl/2.0.14-GCCcore-11.2.0 XZ/5.2.5-GCCcore-11.2.0 libxml2/2.9.10-GCCcore-11.2.0 libpciaccess/0.16-GCCcore-11.2.0
    hwloc/2.5.0-GCCcore-11.2.0 OpenSSL/1.1 libevent/2.1.12-GCCcore-11.2.0 UCX/1.11.2-GCCcore-11.2.0 libfabric/1.13.2-GCCcore-11.2.0 PMIx/4.1.0-GCCcore-11.2.0 OpenMPI/4.1.1-GCC-11.2.0 OpenBLAS/0.3.18-GCC-11.2.0 FlexiBLAS/3.0.4-GCC-11.2.0
    gompi/2021b FFTW/3.3.10-gompi-2021b ScaLAPACK/2.1.0-gompi-2021b-fb foss/2021b bzip2/1.0.8-GCCcore-11.2.0 expat/2.4.1-GCCcore-11.2.0 libpng/1.6.37-GCCcore-11.2.0 Brotli/1.0.9-GCCcore-11.2.0 freetype/2.11.0-GCCcore-11.2.0
    ncurses/6.2-GCCcore-11.2.0 util-linux/2.37-GCCcore-11.2.0 fontconfig/2.13.94-GCCcore-11.2.0 xorg-macros/1.19.3-GCCcore-11.2.0 X11/20210802-GCCcore-11.2.0 gzip/1.10-GCCcore-11.2.0 lz4/1.9.3-GCCcore-11.2.0 zstd/1.5.0-GCCcore-11.2.0
    libdrm/2.4.107-GCCcore-11.2.0 libglvnd/1.3.3-GCCcore-11.2.0 libunwind/1.5.0-GCCcore-11.2.0 LLVM/12.0.1-GCCcore-11.2.0 Mesa/21.1.7-GCCcore-11.2.0 libGLU/9.0.2-GCCcore-11.2.0 pixman/0.40.0-GCCcore-11.2.0 libffi/3.4.2-GCCcore-11.2.0
    gettext/0.21-GCCcore-11.2.0 PCRE/8.45-GCCcore-11.2.0 GLib/2.69.1-GCCcore-11.2.0 cairo/1.16.0-GCCcore-11.2.0 libreadline/8.1-GCCcore-11.2.0 Tcl/8.6.11-GCCcore-11.2.0 SQLite/3.36-GCCcore-11.2.0 PCRE2/10.37-GCCcore-11.2.0
    NASM/2.15.05-GCCcore-11.2.0 libjpeg-turbo/2.0.6-GCCcore-11.2.0 jbigkit/2.1-GCCcore-11.2.0 LibTIFF/4.3.0-GCCcore-11.2.0 Java/11.0.2 Tk/8.6.11-GCCcore-11.2.0 cURL/7.78.0-GCCcore-11.2.0 GMP/6.2.1-GCCcore-11.2.0 NLopt/2.7.0-GCCcore-11.2.0
    libogg/1.3.5-GCCcore-11.2.0 FLAC/1.3.3-GCCcore-11.2.0 libvorbis/1.3.7-GCCcore-11.2.0 libsndfile/1.0.31-GCCcore-11.2.0 ICU/69.1-GCCcore-11.2.0 Szip/2.1.1-GCCcore-11.2.0 HDF5/1.12.1-gompi-2021b UDUNITS/2.2.28-GCCcore-11.2.0
    GSL/2.7-GCC-11.2.0 Ghostscript/9.54.0-GCCcore-11.2.0 JasPer/2.0.33-GCCcore-11.2.0 LittleCMS/2.12-GCCcore-11.2.0 ImageMagick/7.1.0-4-GCCcore-11.2.0 GLPK/5.0-GCCcore-11.2.0 nodejs/14.17.6-GCCcore-11.2.0 Python/3.9.6-GCCcore-11.2.0
    netCDF/4.8.1-gompi-2021b GEOS/3.9.1-GCC-11.2.0 PROJ/8.1.0-GCCcore-11.2.0 libgeotiff/1.7.0-GCCcore-11.2.0 pybind11/2.7.1-GCCcore-11.2.0 SciPy-bundle/2021.10-foss-2021b libtirpc/1.3.2-GCCcore-11.2.0 HDF/4.2.15-GCCcore-11.2.0
    GDAL/3.3.2-foss-2021b MPFR/4.1.0-GCCcore-11.2.0 libgit2/1.1.1-GCCcore-11.2.0
[hraegb@aklpps13 ~]$ R
(...)
> remotes::install_github("kiwiroy/RLinuxModules")
Downloading GitHub repo kiwiroy/RLinuxModules@HEAD
✔  checking for file ‘/tmp/RtmphkfZ93/remotes468876a2522d/kiwiroy-RLinuxModules-d158522/DESCRIPTION’ ...
─  preparing ‘RLinuxModules’:
✔  checking DESCRIPTION meta-information ...
─  checking for LF line-endings in source and make files and shell scripts
─  checking for empty or unneeded directories
   Omitted ‘LazyData’ from DESCRIPTION
─  building ‘RLinuxModules_0.4.tar.gz’

Installing package into '/home/hraegb/R/x86_64-pc-linux-gnu-library/4.1'
(as 'lib' is unspecified)
* installing *source* package 'RLinuxModules' ...
** using staged installation
** R
** byte-compile and prepare package for lazy loading
Error: cannot add binding of 'modversion' to the base environment
Execution halted
ERROR: lazy loading failed for package 'RLinuxModules'
* removing '/home/hraegb/R/x86_64-pc-linux-gnu-library/4.1/RLinuxModules'
Warning message:
In i.p(...) :
  installation of package '/tmp/RtmphkfZ93/file468834db10fe/RLinuxModules_0.4.tar.gz' had non-zero exit status