configure_packages: Configure Package Dependencies

View source: R/configure.R

configure_packagesR Documentation

Configure Package Dependencies

Description

Interactively add package dependencies to settings.yml (or settings.yml for legacy projects). Packages can be installed from CRAN, GitHub, or Bioconductor, with version pinning support.

Usage

configure_packages(
  package = NULL,
  auto_attach = TRUE,
  version = NULL,
  interactive = TRUE
)

Arguments

package

Character. Package name (e.g., "dplyr", "tidyverse/dplyr")

auto_attach

Logical. If TRUE, package is loaded automatically during scaffold()

version

Character. Version constraint (e.g., "@1.1.0", "@main" for GitHub)

interactive

Logical. If TRUE, prompts for missing values. Default TRUE.

Details

Package Specifications

  • CRAN: "dplyr", "ggplot2"

  • CRAN with version: "dplyr@1.1.0"

  • GitHub: "tidyverse/dplyr", "user/repo@branch"

  • GitHub with tag: "user/repo@v1.2.3"

Value

Invisibly returns updated config


framework documentation built on Feb. 18, 2026, 1:07 a.m.