-
Notifications
You must be signed in to change notification settings - Fork 27
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* fix issue #56 and #64 . - feat: use of {memoise} to cache call to `pak::pkg_system_requirements` - fix : dont depend anymore to {renv} use an internalised {renv} version (1.0.3) - fix : remove `renv:::lockfile` and use `lockfile_read` instead - feat: Added `renv_version` parameter to `dock_from_renv` to be able to fix the renv version to use during `renv::restore()`
- Loading branch information
1 parent
2984727
commit adcaaf1
Showing
13 changed files
with
34,451 additions
and
211 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
Package: dockerfiler | ||
Title: Easy Dockerfile Creation from R | ||
Version: 0.2.1.9003 | ||
Version: 0.2.1.9004 | ||
Authors@R: c( | ||
person("Colin", "Fay", , "[email protected]", role = c("cre", "aut"), | ||
comment = c(ORCID = "0000-0001-7343-1846")), | ||
|
@@ -24,20 +24,19 @@ Imports: | |
fs (>= 1.5.0), | ||
glue (>= 1.4.2), | ||
jsonlite (>= 1.7.2), | ||
memoise, | ||
pak (>= 0.2.0), | ||
pkgbuild (>= 1.2.0), | ||
R6 (>= 2.5.0), | ||
remotes (>= 2.2.0), | ||
renv (>= 0.12.0), | ||
usethis (>= 2.0.1), | ||
utils | ||
Suggests: | ||
knitr (>= 1.31), | ||
rmarkdown (>= 2.6), | ||
testthat (>= 3.0.0), | ||
withr | ||
VignetteBuilder: | ||
knitr | ||
VignetteBuilder: knitr | ||
Config/fusen/version: 0.5.2.9000 | ||
Config/testthat/edition: 3 | ||
Encoding: UTF-8 | ||
|
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
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 |
---|---|---|
@@ -0,0 +1,91 @@ | ||
|
||
# | ||
# renv 1.0.3 [rstudio/renv#e49d9be]: A dependency management toolkit for R. | ||
# Generated using `renv:::vendor()` at 2023-11-05 11:48:15. | ||
# | ||
|
||
|
||
#' Internalised {renv} | ||
#' | ||
#' https://rstudio.github.io/renv/reference/vendor.html?q=vendor | ||
#' | ||
#' @export | ||
#' @name renv | ||
#' @alias renv | ||
#' @docType data | ||
renv <- new.env(parent = new.env()) | ||
|
||
renv$initialize <- function() { | ||
|
||
# set up renv + imports environments | ||
attr(renv, "name") <- "embedded:renv" | ||
attr(parent.env(renv), "name") <- "imports:renv" | ||
|
||
# get imports | ||
imports <- list( | ||
tools = c( | ||
"file_ext", | ||
"pskill", | ||
"psnice", | ||
"write_PACKAGES" | ||
), | ||
utils = c( | ||
"Rprof", | ||
"URLencode", | ||
"adist", | ||
"available.packages", | ||
"browseURL", | ||
"citation", | ||
"contrib.url", | ||
"download.file", | ||
"download.packages", | ||
"file.edit", | ||
"getCRANmirrors", | ||
"head", | ||
"help", | ||
"install.packages", | ||
"installed.packages", | ||
"modifyList", | ||
"old.packages", | ||
"packageDescription", | ||
"packageVersion", | ||
"read.table", | ||
"remove.packages", | ||
"sessionInfo", | ||
"str", | ||
"summaryRprof", | ||
"tail", | ||
"tar", | ||
"toBibtex", | ||
"untar", | ||
"unzip", | ||
"update.packages", | ||
"zip" | ||
) | ||
) | ||
|
||
# load the imports required by renv | ||
for (package in names(imports)) { | ||
namespace <- asNamespace(package) | ||
functions <- imports[[package]] | ||
list2env(mget(functions, envir = namespace), envir = parent.env(renv)) | ||
} | ||
|
||
# source renv into the aforementioned environment | ||
script <- system.file("vendor/renv.R", package = .packageName) | ||
sys.source(script, envir = renv) | ||
|
||
# initialize metadata | ||
renv$the$metadata <- list( | ||
embedded = TRUE, | ||
version = structure("1.0.3", sha = "e49d9be9528e0ff73b673f97382731c140013474") | ||
) | ||
|
||
# run our load / attach hooks so internal state is initialized | ||
renv$renv_zzz_load() | ||
|
||
# remove our initialize method when we're done | ||
rm(list = "initialize", envir = renv) | ||
|
||
} | ||
# renv$initialize() |
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
Oops, something went wrong.