-
Notifications
You must be signed in to change notification settings - Fork 9
Open
Labels
Description
The vignette for mounting file system images seems like it will help me understand how to build an R package for webr but im quite lost while reading it. It indicates that we should use rwasm::add_pkg()
to build a package repo. Though the context is unclear.
rwasm/vignettes/mount-fs-image.Rmd
Lines 16 to 20 in c60e4eb
To build an R package library image we must first build one or more Wasm R packages using `add_pkg()`. As an example, let's build a package with a few hard dependencies. Ensure that you are running R in an environment with access to Wasm development tools^[See the "Setting up the WebAssembly toolchain" section in `vignette("rwasm")` for further details.], then run: | |
```{r eval=FALSE} | |
rwasm::add_pkg("dplyr") | |
``` |
Should the rwasm
be installed from pak into a webr interpreter? If so, how is that done? Should rwasm be used from a normal R session and then the output added into an active webr session?
If additional context about where these commands should be ran that would be very helpful!