A place for publishing new versions of (some) stan-dev
R packages before they reach CRAN and for stan-dev
R packages and versions where releasing on CRAN is not a (current) goal. As of 2021-03-16 this is most relevant for rstan
, where the CRAN version is unfortunately several releases behind and pushing a new version to CRAN has been difficult.
The packages currently hosted in this repository are:
To install latest rstan
or other packages from the repo, add https://mc-stan.org/r-packages/
to your repository list, e.g.:
install.packages("rstan", repos = c("https://mc-stan.org/r-packages/", getOption("repos")))
For stan-dev/r-packages maintainers
drat
package
install.packages("drat")
gh-pages
branch (the default branch).
git clone https://github.com/stan-dev/r-packages
git status
devtools::build()
or
R CMD build packageFolder
drat
to update the repository
drat::insertPackage("path/to/package_tarball.tar.gz", "path/to/r-packages/")
For example:
drat::insertPackage("cmdstanr_0.4.0.tar.gz", "r-packages/")
stan-dev/r-packages
repository.For others that wish to publish their package on https://mc-stan.org/r-packages
drat
package
install.packages("drat")
gh-pages
branch (the default branch).
git clone https://github.com/yourusername/r-packages
git status
devtools::build()
or
R CMD build packageFolder
drat
to update the repository
drat::insertPackage("path/to/package_tarball.tar.gz", "path/to/r-packages/")
For example:
drat::insertPackage("cmdstanr_0.4.0.tar.gz", "r-packages/")
Commit and push changes to your repository yourusername/r-packages
.
Open a pull request on this repository to add your package.