Skip to content
/ rwasm Public

Build R packages for WebAssembly and create a CRAN-like repo for distribution.

License

Unknown, MIT licenses found

Licenses found

Unknown
LICENSE
MIT
LICENSE.md
Notifications You must be signed in to change notification settings

r-wasm/rwasm

Repository files navigation

rwasm rwasm website

Lifecycle: experimental R-CMD-check Codecov test coverage

Build R Packages for WebAssembly

This package provides functions to help build R packages compiled for WebAssembly (Wasm), manage Wasm binary R package libraries and repositories, and prepare webR compatible filesystem images for static web hosting of data files and R packages.

Requirements

Building binary R packages for Wasm requires cross-compiling packages containing C/C++/Fortran source code using a Wasm development toolchain. As such, the Emscripten C/C++ toolchain and a version of LLVM flang configured to output Wasm must be available in the environment for the rwasm package to function.

For convenience, webR GitHub repository provides a Docker container containing the full Wasm development environment required for building Wasm R packages.

Installation

The rwasm package is not yet on CRAN. You can install the development version from GitHub via:

# install.packages("pak")
pak::pak("r-wasm/rwasm")

Further information explaining how to set up the Wasm development environment and build R packages can be found in vignette("rwasm").

About

Build R packages for WebAssembly and create a CRAN-like repo for distribution.

Resources

License

Unknown, MIT licenses found

Licenses found

Unknown
LICENSE
MIT
LICENSE.md

Code of conduct

Stars

Watchers

Forks

Packages

No packages published