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

Directory permission issues using Docker container and add_pkg #41

Closed
mdlama opened this issue Sep 12, 2024 · 2 comments
Closed

Directory permission issues using Docker container and add_pkg #41

mdlama opened this issue Sep 12, 2024 · 2 comments

Comments

@mdlama
Copy link

mdlama commented Sep 12, 2024

I've attempted to use the webR Docker container and followed the instructions on the Get started page. However, I get a directory permission error when I attempt to use the function add_pkg. Here's the flow of commands and resulting error:

> library(rwasm)
Targeting Wasm packages for R 4.4.1
With `WEBR_ROOT` directory: /opt/webr
With `EMSCRIPTEN_ROOT` directory: /opt/emsdk/upstream/emscripten
> add_pkg("deSolve")
v Updated metadata database: 2.21 MB in 4 files.
v Updating metadata database ... done
Processing 1 package(s).
Error: [EACCES] Failed to set permissions for directory './repo': permission denied

Indeed, when I exit R and check the repo directory, I see that it was created with permissions dr-xr--r-x.

Just in case it's useful, I am on a Mac.

Thanks for you help!

@georgestagg
Copy link
Member

georgestagg commented Sep 12, 2024

Related: r-wasm/webr#475

I don't know of a fix yet, but there's a workaround written up in that thread.

@mdlama
Copy link
Author

mdlama commented Sep 12, 2024

Yup, exactly what I'm experiencing. The workaround mentioned worked great for me as well. Feel free to close, and thanks for such a quick response!

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

2 participants