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

Could not load dynamic lib: /usr/lib/R/library/png/libs/png.so #357

Open
gorkang opened this issue Feb 6, 2024 · 1 comment
Open

Could not load dynamic lib: /usr/lib/R/library/png/libs/png.so #357

gorkang opened this issue Feb 6, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@gorkang
Copy link

gorkang commented Feb 6, 2024

Hi! Trying out webr with the package BayesianReasoning. When creating a plot, I get an error that seems related to png.

The only missing dependency in https://repo.r-wasm.org/ for BayesianReasoning is curl, but curl is only used in a vignette.


  ---
  title: "webR test"
  filters:
    - "webr"
  ---
  
  
  ```{webr-r}
  
  webr::install("BayesianReasoning")
  
  BayesianReasoning::PPV_heatmap(Sensitivity = 90, limits_Specificity = c(90, 100))
  

Error: unable to load shared object '/usr/lib/R/library/png/libs/png.so':
Could not load dynamic lib: /usr/lib/R/library/png/libs/png.so
LinkError: imported function 'env.R_registerRoutines' signature mismatch

No idea but maybe is related to this? https://stackoverflow.com/a/50935430/1873521 It seems png may need libpng16-16 on ubuntu and similar systems.

Thanks for the amazing work.

@gorkang
Copy link
Author

gorkang commented Feb 6, 2024

Also, not sure if related, if I install ggplot2 and png, I get an error when printing ggplots. The same code commenting the -"png" line works fine:

---
title: "webR test"
filters:
  - "webr"
webr:
  packages:
  - "ggplot2"
  - "png"
---


Test:  

```{webr-r}

mpg |> 
  ggplot2::ggplot(aes(hwy, cty)) +
  ggplot2::geom_point() +
  ggplot2::theme_minimal()

Error: Problem while converting geom to grob.

@georgestagg georgestagg added the bug Something isn't working label Feb 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants