Learn R Programming

librarian (version 1.8.1)

nse_dots: Convert dots to package names

Description

Convert dots to package names

Usage

nse_dots(..., keep_user = FALSE)

Arguments

...

(Dots) Package names provided as bare names or strings (of length 1). If a character vector is provided as the first argument, it will be used and all other arguments in dots will be ignored.

keep_user

(Logical) If FALSE, omit the username from a GitHub package reference.

Value

A character vector.

Examples

Run this code
# NOT RUN {
nse_dots(dplyr, DesiQuintans/desiderata, keep_user = FALSE)

#> [1] "dplyr"   "desiderata"

nse_dots(dplyr, DesiQuintans/desiderata, keep_user = TRUE)

#> [1] "dplyr"   "DesiQuintans/desiderata"
# }
# NOT RUN {
# }

Run the code above in your browser using DataLab