dot-parse_package_spec: Parse package specification with source detection

.parse_package_specR Documentation

Parse package specification with source detection

Description

Parses package specifications that may include explicit sources, version pins, or GitHub/Bioconductor references. Supports both scalar strings and list-style entries from settings.yml.

Usage

.parse_package_spec(spec)

Arguments

spec

Character or list describing the package

Details

Examples:

  • "dplyr" -> list(name = "dplyr", source = "cran")

  • "dplyr@1.1.0" -> list(name = "dplyr", version = "1.1.0", source = "cran")

  • "tidyverse/dplyr@main" -> list(name = "dplyr", repo = "tidyverse/dplyr", ref = "main", source = "github")

  • list(name = "DESeq2", source = "bioc") -> list(name = "DESeq2", source = "bioc")

Value

List with normalized components (name, source, version, repo, ref, auto_attach)


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