deploy | R Documentation |
Builds and deploys a local package to a git repository in a CRAN like structure.
The resulting git repository can then be served via RStudio Connect and accessed as an
additional repository next to the main CRAN repository (by setting it via
options(repos = )
).
RStudio Connect can crawl the repository in a defined internal when deploying
the git repository via "Import from git".
Changes (i.e. new package versions) are picked up automatically.
This is an alternative to hosting and using a private instance of RStudio Package Manager.
The function executes the following tasks:
Build a tarball of the package via pkgbuild::build()
.
Add the built package in a CRAN like structure to a temporary git clone of the upstream git repository via drat. “
Render (and create if missing) the drat package website.
Commit and push the changes to the git repository.
deploy_minicran_package(drat_repo, commit_message = NULL, dry_run = FALSE)
drat_repo |
|
commit_message |
|
dry_run |
|
## Not run:
deploy_minicran_package(drat_repo = "https://github.com/myuser/mydratrepo.git")
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.