Skip to content

Commit

Permalink
long lines
Browse files Browse the repository at this point in the history
  • Loading branch information
Bruno Rodrigues committed Jul 11, 2024
1 parent dc92d96 commit e4fc0d8
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 8 deletions.
6 changes: 4 additions & 2 deletions R/detect_versions.R
Original file line number Diff line number Diff line change
@@ -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) {
Expand Down
11 changes: 5 additions & 6 deletions R/fetchers.R
Original file line number Diff line number Diff line change
@@ -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
Expand Down Expand Up @@ -41,7 +41,8 @@ fetchgit <- function(git_pkg) {

#' fetchzip Downloads and installs an archived CRAN package
#' @param archive_pkg A character of the form `"[email protected]"`
#' @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 = "@"))
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit e4fc0d8

Please sign in to comment.