yutannihilation / rwasm

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

Home Page:https://r-wasm.github.io/rwasm/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

rwasm rwasm logo

Lifecycle: experimental R-CMD-check

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.

https://r-wasm.github.io/rwasm/

License:Other


Languages

Language:R 60.4%Language:Makefile 35.0%Language:Shell 4.6%