Skip to content

brianmsm/webr-packages-overlay

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

webr-packages-overlay

Unofficial package overlay for webR.

This repository hosts WebAssembly package artifacts for packages that are missing, patched, or experimentally built for webR. Use it together with the official webR package repository so dependencies continue to resolve from the canonical source.

This repository is unofficial and is not affiliated with the webR, lavaan, or quadprog maintainers.

Current Packages

  • quadprog 1.5-8: WebAssembly build for webR/R 4.5.
  • lavaan 0.6-21: temporary patched build for webR/R 4.5.

The lavaan patch handles parallel::detectCores() returning NA in webR. Dependencies such as MASS, mnormt, pbivnorm, and numDeriv should come from the official webR repository at https://repo.r-wasm.org/.

The current target is webR/R 4.5.

Install From GitHub Pages

overlay_repo <- "https://brianmsm.github.io/webr-packages-overlay/repo"
official_webr_repo <- "https://repo.r-wasm.org/"

webr::install(
  "lavaan",
  repos = c(overlay = overlay_repo, official = official_webr_repo)
)

library(lavaan)

Local Testing

Serve the docs/ directory locally:

python3 scripts/serve_repo.py --directory docs --port 9090

Then install from the local overlay in webR:

overlay_repo <- "http://127.0.0.1:9090/repo"
official_webr_repo <- "https://repo.r-wasm.org/"

webr::install(
  "lavaan",
  repos = c(overlay = overlay_repo, official = official_webr_repo)
)

Repository Layout

docs/repo/          Public CRAN-like package repository for GitHub Pages
packages/lavaan/    lavaan patch notes and build script
packages/quadprog/  quadprog build notes and build script
scripts/            Reusable helper scripts
notes/              Build notes, browser test notes, and concise summaries

Licensing

Package artifacts retain their upstream licenses. This repository only hosts experimental WebAssembly builds and build scripts. A repository-level license for the helper scripts has not been selected yet.

About

Unofficial webR package overlay for R packages missing, patched, or experimentally built for WebAssembly.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Contributors