Description
Portable Mars Runtime Replay.
Description
Loads, validates, and replays portable 'mars' ModelSpec artifacts from R. The package provides helpers for constructing design matrices, generating predictions, and, when the companion runtime helper is available, fitting portable model specifications for cross-language replay.
README.md
marsearth
Portable R runtime replay for mars ModelSpec artifacts.
This package evaluates validated model specifications and produces design matrices and predictions through the shared runtime bridge.
Install
Install from the package source tree or from the published registry once the R release path is complete.
Usage
library(marsearth)
spec <- list(
spec_version = "1.0",
basis_terms = list(),
coefficients = list(),
feature_schema = list(n_features = 0)
)
validate_model_spec(spec)
Training
The package also exposes fit_model(...) for Rust-backed training. It returns a portable ModelSpec that can be replayed through the same validation and prediction helpers.
Validation
Rscript tests/conformance.R
Documentation
Run R CMD check --no-manual --as-cran from the repository root to validate the package metadata, Rd help pages, and CRAN-safe test behavior.