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

Shim install.packages() #122

Closed
coatless opened this issue Dec 19, 2023 · 2 comments · Fixed by #127
Closed

Shim install.packages() #122

coatless opened this issue Dec 19, 2023 · 2 comments · Fixed by #127
Labels
p: low Address issue when time permits t: feature-request Request the addition of a new feature
Milestone

Comments

@coatless
Copy link
Owner

With webR v0.2.2, there is now a shim for install.packages().

https://docs.r-wasm.org/webr/latest/api/r.html#shim_install

This requires calling the installation during the setup routine.

webr.evalRVoid("webr::shim_install()")

So, we'd avoid getting an error like:

> install.packages("jsonlite")
Error in install.packages("jsonlite"): 
  This version of R is not setup to install source packages
If it was installed from an RPM, you may need the R-devel RPM
@coatless coatless added t: feature-request Request the addition of a new feature p: low Address issue when time permits labels Dec 19, 2023
@coatless coatless added this to the 4.0 milestone Dec 19, 2023
@coatless
Copy link
Owner Author

@jimjam-slam Psst, install.packages() should also now redirect over to webr::install() :)

https://jamesgoldie.dev/writing/your-new-r-package-webr/#fnref1

@jimjam-slam
Copy link

Oh, awesome! I'll update the post when I can!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
p: low Address issue when time permits t: feature-request Request the addition of a new feature
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants