Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

sf installation not working if user installs #4

Open
eeholmes opened this issue Oct 26, 2024 · 0 comments
Open

sf installation not working if user installs #4

eeholmes opened this issue Oct 26, 2024 · 0 comments

Comments

@eeholmes
Copy link
Contributor

eeholmes commented Oct 26, 2024

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
@eeholmes eeholmes reopened this Oct 26, 2024
@eeholmes eeholmes changed the title sf installation not working sf installation not working if user installs Oct 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant