R/repo_details.R

Defines functions repo_details

Documented in repo_details

#' Retrieve repo details
#'
#' Internal helper function.
#' @param pkgs_col Name of variable with the non-CRAN repos.
#'
#' @return A character vector of user names and repository names.
#'
repo_details <- function(pkgs_col) {
  repDets <- suppressWarnings(purrr::map(pkgs_col, utils::packageDescription, fields = c("RemoteUsername", "RemoteRepo")))
  purrr::flatten_chr(purrr::map(repDets, paste0, collapse = "/"))
}

Try the annotater package in your browser

Any scripts or data that you put into this service are public.

annotater documentation built on May 29, 2024, 9:58 a.m.