Version
0.1.6
Description
Building packages with 'devtools' is easy. Publishing packages with 'drat' is easy too. Combining both is two lines of code too much - hence 'dratful' - drat at it's fullest. The package aims at making the check-build-publish workflow a super easy one-liner - E.g. 'dratful::dratful()' will build, check, commit and push source and binary packages if all checks were passed any without error or warning. Use 'dratful::drat()' for leaving Git handling out.
License
MIT + file LICENSE
Installation
(stable) developement versions:
install.packages(
"dratful",
repos =
c(
options("repos")$repos,
"https://petermeissner.github.io/drat/"
)
)
Putting packages into your repository (your own CRAN, your drat, ...)
The following will:
devtools::check()
devtools::build()
~/git/drat
) using drat::insertPackage()
dratful::dratful()
If less defaults and more fine control is needed check_build_publish()
is a version of drat that allows to manipulate options for all three wrapped up fucntions.
Getting packages from a drat repository
While you can install packages from drat repositories as shown in the install section (using the repos option of install.packages()
) or add repositories by using drat::addRepo()
the dratful package offers an alternative way in line with devtools' install functions.
The following snippet showcases install_drat
which takes a package name and a Github user name to use a Github hosted package repository as additional source for packages:
dratful::install_drat("dratful", "petermeissner")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.