Skip to content

sf installation not working if user installs #4

Open
@eeholmes

Description

@eeholmes

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions