This function helps you add a repository field to a package DESCRIPTION file.

use_drat_repo()

use_repo(name)

Arguments

name

character, name of repository

Value

invisible(NULL), called for side effect

Details

For packrat and RStudioConnect deployment to work, packages in CRAN-like repositories must identify the name of the repository in their DESCRIPTION files. For CRAN, this line is added by the CRAN maintainers. If you are submitting a package to your institution's repository, you will need to add its name to your DESCRIPTION file.

Examples

# NOT RUN {
  # if you have a DRAT repository with the same basename
  use_drat_repo()

  # if you know the name of the repository
  use_repo(name = "ACMERAN")
# }