tmp <- devtools:::read_dcf("DESCRIPTION")
cat("#", tmp$Title)

Version

cat(tmp$Version)

Description

cat(tmp$Description)

License

cat(tmp$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:

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")


petermeissner/dratful documentation built on May 25, 2019, 1:52 a.m.