R/Docker load failed for ‘networkD3’ in dyn.load - r

Im deploying a shiny app using a docker/rockerverse image.
Install.packages(networkD3) is giving the below error.
I have tried installing with dependencies = TRUE.
Has anyone any suggestions?
Error: package or namespace load failed for ‘networkD3’ in dyn.load(file, DLLpath = DLLpath, ...):
unable to load shared object '/usr/local/lib/R/site-library/igraph/libs/igraph.so':
libglpk.so.40: cannot open shared object file: No such file or directory
Execution halted

Related

Unable to load library tesseract in R

library(tesseract) # for OCR
Results in error:
Error: package or namespace load failed for ‘tesseract’ in dyn.load(file, DLLpath = DLLpath, ...):
unable to load shared object '/dhlib/tesseract/libs/tesseract.so':
libtesseract.so.4: cannot open shared object file: No such file or directory
In addition: Warning message:
package ‘tesseract’ was built under R version 4.0.5
Any ideas on how to solve this?

cannot open shared object file: No such file or directory R

I got a problem opening library(Seurat) in R server using supercomputer. The problem is :
Error: package or namespace load failed for ‘Seurat’ in dyn.load(file, DLLpath = DLLpath, ...):
unable to load shared object '/home/user/R/4.0.4/igraph/libs/igraph.so':
libglpk.so.40: cannot open shared object file: No such file or directory
but I was allowed to install.package without problem
Thanks in advance!

Unable to attach igraph or highcharter in Rstudio (libglpk.so.40: cannot open shared object file: No such file or directory)

I have a binder set up that makes use of highcharter. The package is installed, the system can find it and it is up to date. But when trying to attach it with library I get this:
> library(highcharter)
Error: package or namespace load failed for ‘highcharter’ in dyn.load(file, DLLpath = DLLpath, ...):
unable to load shared object '/srv/rlibs/igraph/libs/igraph.so':
libglpk.so.40: cannot open shared object file: No such file or directory
I noted the mention of igraph, so I tried attaching that, but get the same error:
> library(igraph)
Error: package or namespace load failed for ‘igraph’ in dyn.load(file, DLLpath = DLLpath, ...):
unable to load shared object '/srv/rlibs/igraph/libs/igraph.so':
libglpk.so.40: cannot open shared object file: No such file or directory
I've tried installing the latest dev version from github. The result of this was an error:
** testing if installed package can be loaded from temporary location
Error: package or namespace load failed for ‘igraph’ in dyn.load(file, DLLpath = DLLpath, ...):
unable to load shared object '/tmp/RtmpK0dUBK/Rinst15a72b8aab6/00LOCK-igraph/00new/igraph/libs/igraph.so':
libopenblas.so.0: cannot open shared object file: No such file or directory
Error: loading failed
The binder system info is:
> Sys.info()
sysname
"Linux"
release
"5.4.129+"
version
"#1 SMP Wed Aug 18 19:58:18 PDT 2021"
nodename
"jupyter-nhsbsa-2ddata-2dana-2dffee-2dand-2dcoding-2d5y1715cc"
machine
"x86_64"
After several hours of Googling I've reached the limit of what I can do to troubleshoot this, any help appreciated!
Resolved by adding libglpk-dev to the apt.txt file. It is strange tho, as this did not used to be needed and it worked.

What does this error mean while starting package "export" in R?

I get this error when starting the export package in R. It seems to download successfully, but when library(export) is run, I get this message:
Error: package or namespace load failed for ‘export’ in dyn.load(file,
DLLpath = DLLpath, ...): unable to load shared object
/Library/Frameworks/R.framework/Versions/3.5/Resources/library/gdtools/libs/gdtools.so':
dlopen(/Library/Frameworks/R.framework/Versions/3.5/Resources/library/gdtools/libs/gdtools.so,
6): Library not loaded: /opt/X11/lib/libcairo.2.dylib Referenced
from:
/Library/Frameworks/R.framework/Versions/3.5/Resources/library/gdtools/libs/gdtools.so
Reason: image not found
Thanks for your help!

Error: in dyn.load(file, DLLpath = DLLpath, ...): unable to load shared object

I'm trying to load a package I have installed via Bioconductor (using BiocLite()) as I have done with many other similar packages from the same source. However I get this error:
[Error: package or namespace load failed for 'GenomicFeatures' in dyn.load(file, DLLpath = DLLpath, ...):
unable to load shared object '/Users/mario/Library/R/3.4/library/rtracklayer/libs/rtracklayer.so':
dlopen(/Users/mario/Library/R/3.4/library/rtracklayer/libs/rtracklayer.so, 6): Library not loaded: /usr/local/opt/openssl/lib/libssl.1.0.0.dylib
Referenced from: /Users/mario/Library/R/3.4/library/rtracklayer/libs/rtracklayer.so
Reason: image not found]
If I try to install and load library rtracklayer I get the same message
I've tried reading to answers for similar questions on the site but I still can't figure out what the problem is.
Any suggestions?

Resources