Note in the image, sf works fine. This is if the user installs sf.
To replicate
- Use bring your own image in JupyterHub: ghcr.io/boettiger-lab/repo2docker-r/r2u:latest
- Open RStudio once in JupyterLab
- remove sf that is installed in the system library (on image build)
install.packages("sf")
- type
library(sf)
Now you get this error so it seems r2u was not used to install sf ? or something else happened.
library(sf)
Error: package or namespace load failed for ‘sf’ in dyn.load(file, DLLpath = DLLpath, ...):
unable to load shared object '/home/jovyan/R/x86_64-pc-linux-gnu-library/4.4/sf/libs/sf.so':
libproj.so.22: cannot open shared object file: No such file or directory
From the terminal (in RStudion or JLab). This happens in the image too even when sf is working (before deleting it).
gdalinfo --version
bash: gdalinfo: command not found
Note in the image, sf works fine. This is if the user installs sf.
To replicate
install.packages("sf")library(sf)Now you get this error so it seems r2u was not used to install sf ? or something else happened.
From the terminal (in RStudion or JLab). This happens in the image too even when sf is working (before deleting it).