diff --git a/R/detect_versions.R b/R/detect_versions.R index 9b7ae2ca..ba4d57de 100644 --- a/R/detect_versions.R +++ b/R/detect_versions.R @@ -1,5 +1,7 @@ -#' detect_versions Detects if CRAN packages need to be downloaded from the archive. -#' @param r_pkgs A list of packages, to get from CRAN (either current packages or archived packages). +#' detect_versions Detects if CRAN packages need to be downloaded from the +#' archive. +#' @param r_pkgs A list of packages, to get from CRAN (either current packages +#' or archived packages). #' @return A list of two elements, "cran_packages" and "archive_packages" #' @noRd detect_versions <- function(r_pkgs) { diff --git a/R/fetchers.R b/R/fetchers.R index a794b8a2..2cd46c7a 100644 --- a/R/fetchers.R +++ b/R/fetchers.R @@ -1,9 +1,9 @@ #' fetchgit Downloads and installs a package hosted of Git #' @param git_pkg A list of three elements: "package_name", the name of the -#' package, "repo_url", the repository's url, "commit", the commit hash of -#' interest. +#' package, "repo_url", the repository's url, "commit", the commit hash of +#' interest. #' @return A character. The Nix definition to download and build the R package -#' from Github. +#' from Github. #' @noRd fetchgit <- function(git_pkg) { package_name <- git_pkg$package_name @@ -41,7 +41,8 @@ fetchgit <- function(git_pkg) { #' fetchzip Downloads and installs an archived CRAN package #' @param archive_pkg A character of the form `"dplyr@0.80"` -#' @return A character. The Nix definition to download and build the R package from CRAN. +#' @return A character. The Nix definition to download and build the R package +#' from CRAN. #' @noRd fetchzip <- function(archive_pkg, sri_hash = NULL) { pkgs <- unlist(strsplit(archive_pkg, split = "@")) @@ -104,8 +105,6 @@ remove_base <- function(list_imports) { } - - #' Finds dependencies of a package from the DESCRIPTION file #' @param path path to package #' @importFrom utils untar