On Sat, 18 Jul 2020, José Abílio Matos wrote:
On Saturday, 18 July 2020 21.22.17 WEST Max Pyziur wrote:
Greetings,
I've installed some R libraries that are not available as rpm packages,
specifically matlib and a few others.
Recently, R was ported to version 4.0.x and these libraries are not
callable. When I remove them and try to install them all sorts of
dependencies are either removed or become problematic.
Any advice?
Much thanks,
Max Pyziur
What are the errors you are seeing?
As an example:
install.packages('matlib')
Installing package into ‘/usr/lib64/R/library’ (as ‘lib’ is unspecified) --- Please select a CRAN mirror for use in this session --- also installing the dependencies ‘crosstalk’, ‘rgl’
trying URL 'https://packages.othr.de/cran/src/contrib/crosstalk_1.1.0.1.tar.gz' Content type 'text/plain' length 673125 bytes (657 KB) ================================================== downloaded 657 KB
trying URL 'https://packages.othr.de/cran/src/contrib/rgl_0.100.54.tar.gz' Content type 'text/plain' length 2952743 bytes (2.8 MB) ================================================== downloaded 2.8 MB
trying URL 'https://packages.othr.de/cran/src/contrib/matlib_0.9.3.tar.gz' Content type 'text/plain' length 220211 bytes (215 KB) ================================================== downloaded 215 KB
* installing *source* package ‘crosstalk’ ... ** package ‘crosstalk’ successfully unpacked and MD5 sums checked ** using staged installation ** R ** inst ** byte-compile and prepare package for lazy loading Error: package ‘R6’ was installed before R 4.0.0: please re-install it Execution halted ERROR: lazy loading failed for package ‘crosstalk’ * removing ‘/usr/lib64/R/library/crosstalk’ ERROR: dependency ‘crosstalk’ is not available for package ‘rgl’ * removing ‘/usr/lib64/R/library/rgl’ ERROR: dependency ‘rgl’ is not available for package ‘matlib’ * removing ‘/usr/lib64/R/library/matlib’
The downloaded source packages are in ‘/tmp/Rtmpnvhegn/downloaded_packages’ Updating HTML index of packages in '.Library' Making 'packages.html' ... done Warning messages: 1: In install.packages("matlib") : installation of package ‘crosstalk’ had non-zero exit status 2: In install.packages("matlib") : installation of package ‘rgl’ had non-zero exit status 3: In install.packages("matlib") : installation of package ‘matlib’ had non-zero exit status
R6 is available as a F32 RPM; however, it comes back w the above error message, fyi.
All packages need to be rebuilt for R 4.0 be it installed from rpms or otherwise. That is a requirement from R 4.0 and not from our installation.
FWIW you can also install packages from cran as rpms using:
Thanks; I'll check this out.
Max
Regards,
--
José Matos