do_drat() builds and deploys R packages to a drat repository and adds
default steps to the
do_drat( repo_slug = NULL, orphan = FALSE, checkout = TRUE, path = "~/git/drat", branch = NULL, remote_url = NULL, commit_message = NULL, commit_paths = ".", force = FALSE, private_key_name = "TIC_DEPLOY_KEY", deploy_dev = FALSE )
By default, this macro deploys the default repo branch
(usually "master") of the drat repository.
An alternative option is
Deployment can only happen to the default repo branch (usually "master") or
gh-pages branch because the GitHub Pages functionality from GitHub is
used to access the drat repository later on. You need to enable this
functionality when creating the drat repository on GitHub via
Settings -> GitHub pages and set it to the chosen setting here.
To build and deploy Windows and macOS binaries, builds with deployment permissions need to be triggered. Have a look at https://docs.ropensci.org/tic/articles/deployment.html for more information and instructions.