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

Dependency on TCL/Tk breaks Docker/headless mode #189

Open
larsvilhuber opened this issue Oct 16, 2023 · 0 comments
Open

Dependency on TCL/Tk breaks Docker/headless mode #189

larsvilhuber opened this issue Oct 16, 2023 · 0 comments

Comments

@larsvilhuber
Copy link

When installing (here using renv()) summarytools, or later when running, it fails with a dependency on Tcl/Tk. This is a problem for automated/headless execution of R code.

System:

rocker/verse:4.0.2 (also verified with rocker/verse:4.3.2)

Error msg:

Error: .onLoad failed in loadNamespace() for 'tcltk', details:
  call: dyn.load(file, DLLpath = DLLpath, ...)
  error: unable to load shared object '/usr/local/lib/R/library/tcltk/libs/tcltk.so':
  libtcl8.6.so: cannot open shared object file: No such file or directory
Execution halted
ERROR: lazy loading failed for package ‘summarytools’

Solution

Build derivative Docker image adding these libraries in.

Long-term Solution A

Make use of interactive graphical tools optional (on Linux), make it into a warning rather than an error.

Long-term Solution B

Explicitly list Tcl/Tk as a dependency. Note: This is also not listed as a software dependency at PPM.

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