Troubleshooting
Problem
Installed the following R Package as a ADMIN. Package installation has been successful with the following comments from DSX.
Installing package into ‘/user-home/_global_/R’
(as ‘lib’ is unspecified).
However, while trying to reference these libraries with in R Code, we are getting an error. ( e.g: Cario package)
Warning: Error in : .onLoad failed in loadNamespace() for 'Cairo', details:
call: dyn.load(file, DLLpath = DLLpath, ...)
error: unable to load shared object '/user-home/_global_/R/Cairo/libs/Cairo.so':
libjpeg.so.8: cannot open shared object file: No such file or directory
Steps followed to install R PKG
- Login to DSX as a ADMIN
- Open a notebook and set the kernel to be R3.4.3 with DSX Spark 2.2.1
- install.packages("Cairo")
Symptom
Warning: Error in : .onLoad failed in loadNamespace() for 'Cairo', details:
call: dyn.load(file, DLLpath = DLLpath, ...)
error: unable to load shared object '/user-home/_global_/R/Cairo/libs/Cairo.so':
libjpeg.so.8: cannot open shared object file: No such file or directory
Cause
need to install the library from Rstudio not the notebook
Environment
DSXHi 1.2.0.3 on Linux
Resolving The Problem
Install R Packages using the "install.packages()" command in RStudio rather than R Notebook
Was this topic helpful?
Document Information
Modified date:
20 September 2018
UID
ibm10732307