'Drat' R Archive Template
Creation and use of R Repositories via helper functions
to insert packages into a repository, and to add repository information
to the current R session. Two primary types of repositories are support:
gh-pages at GitHub, as well as local repositories on either the same machine
or a local network. Drat is a recursive acronym: Drat R Archive Template.
Drat R Archive Template
The R package ecosystem is one of the cornerstones of the success seen by R. As of September 2017, over 11000 packages are on CRAN, with about one thousand more at BioConductor and probably another hundred at OmegaHat.
Support for multiple repositories is built deeply into R; mostly via the
function (along with several others from the
utils package) can be used with
ease for these three default repositories as well as many others. But it
seemed that support for simple creation and use of local repositories was
Drat tries to help here and supports two principal modes:
- GitHub by leveraging
- Other repos by using other storage where you can write and provide html access
See the vignettes
- Drat FAQ,
- Drat for Package Authors,
- Drat for Package Users
- Why Drat?
- Drat Lightning Talk at useR!2015
for the FAQ, two principal uses cases, basic motivation and an overview / introduction. The package documentation provides more details. The drat package page has a longer tutorial, and the blog section on drat has even more.
You can install the package from CRAN via the standard
or alternatively, you can also do
to install directly from the drat repository.
A few drat repositories are starting to appear (besides this one). An incomplete list (looking at the direct forks as well as GitHub search):
Dirk Eddelbuettel, with contributions by Carl Boettiger, Sebastian Gibb, Colin Gillespie, Matt Jones, Thomas Leeper, Steven Pav and Jan Schulz.
GPL (>= 2)
Functions in drat
|initRepo||Intialize a git repo for drat|
|pruneRepo||Prune repository from older copies of packages|
|insertPackage||Insert a package source or binary file into a drat repository|
|getPathForPackage||Get relative path for package type|
|drat-package||Easy-to-use package repository creation and access|
|identifyPackageType||Identifies the package type from a filename|
|getPackageInfo||Get information from a binary package|
|addRepo||Add a (drat) repository to the current session|
|archivePackages||Move older copies of packages to an archive|
Vignettes of drat
Last month downloads
|License||GPL (>= 2)|
|Packaged||2017-12-16 17:22:37 UTC; edd|
|Date/Publication||2017-12-16 17:30:10 UTC|
Include our badge in your README