-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Bruno Rodrigues
committed
Jul 11, 2024
1 parent
dc92d96
commit e4fc0d8
Showing
2 changed files
with
9 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
|
@@ -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 = "@")) | ||
|
@@ -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 | ||
|