Skip to content

Commit

Permalink
renv==1.0.3
Browse files Browse the repository at this point in the history
  • Loading branch information
edavidaja committed Nov 1, 2023
1 parent 38b242c commit 8217d49
Show file tree
Hide file tree
Showing 9 changed files with 1,198 additions and 1,210 deletions.
364 changes: 198 additions & 166 deletions plumber-penguins/app/manifest.json

Large diffs are not rendered by default.

65 changes: 34 additions & 31 deletions plumber-penguins/renv.lock
Original file line number Diff line number Diff line change
Expand Up @@ -21,20 +21,20 @@
},
"Rcpp": {
"Package": "Rcpp",
"Version": "1.0.10",
"Version": "1.0.11",
"Source": "Repository",
"Repository": "RSPM",
"Requirements": [
"methods",
"utils"
],
"Hash": "e749cae40fa9ef469b6050959517453c"
"Hash": "ae6cbbe1492f4de79c45fce06f967ce8"
},
"cli": {
"Package": "cli",
"Version": "3.6.1",
"Source": "Repository",
"Repository": "RSPM",
"Repository": "CRAN",
"Requirements": [
"R",
"utils"
Expand All @@ -55,19 +55,19 @@
},
"curl": {
"Package": "curl",
"Version": "5.0.1",
"Version": "5.1.0",
"Source": "Repository",
"Repository": "RSPM",
"Requirements": [
"R"
],
"Hash": "2118af9cb164c8d2dddc7b89eaf732d9"
"Hash": "9123f3ef96a2c1a93927d828b2fe7d4c"
},
"dplyr": {
"Package": "dplyr",
"Version": "1.1.2",
"Version": "1.1.3",
"Source": "Repository",
"Repository": "RSPM",
"Repository": "CRAN",
"Requirements": [
"R",
"R6",
Expand All @@ -84,7 +84,7 @@
"utils",
"vctrs"
],
"Hash": "dea6970ff715ca541c387de363ff405e"
"Hash": "e85ffbebaad5f70e1a2e2ef4302b4949"
},
"ellipsis": {
"Package": "ellipsis",
Expand All @@ -109,6 +109,13 @@
],
"Hash": "1d9e7ad3c8312a192dea7d3db0274fde"
},
"fastmap": {
"Package": "fastmap",
"Version": "1.1.1",
"Source": "Repository",
"Repository": "RSPM",
"Hash": "f7736a18de97dea803bde0a2daaafb27"
},
"generics": {
"Package": "generics",
"Version": "0.1.3",
Expand All @@ -124,7 +131,7 @@
"Package": "glue",
"Version": "1.6.2",
"Source": "Repository",
"Repository": "RSPM",
"Repository": "CRAN",
"Requirements": [
"R",
"methods"
Expand All @@ -133,7 +140,7 @@
},
"httpuv": {
"Package": "httpuv",
"Version": "1.6.11",
"Version": "1.6.12",
"Source": "Repository",
"Repository": "RSPM",
"Requirements": [
Expand All @@ -144,7 +151,7 @@
"promises",
"utils"
],
"Hash": "838602f54e32c1a0f8cc80708cefcefa"
"Hash": "c992f75861325961c29a188b45e549f7"
},
"jsonlite": {
"Package": "jsonlite",
Expand All @@ -171,7 +178,7 @@
"Package": "lifecycle",
"Version": "1.0.3",
"Source": "Repository",
"Repository": "RSPM",
"Repository": "CRAN",
"Requirements": [
"R",
"cli",
Expand All @@ -184,7 +191,7 @@
"Package": "magrittr",
"Version": "2.0.3",
"Source": "Repository",
"Repository": "RSPM",
"Repository": "CRAN",
"Requirements": [
"R"
],
Expand Down Expand Up @@ -263,39 +270,35 @@
},
"promises": {
"Package": "promises",
"Version": "1.2.0.1",
"Version": "1.2.1",
"Source": "Repository",
"Repository": "RSPM",
"Requirements": [
"R6",
"Rcpp",
"fastmap",
"later",
"magrittr",
"rlang",
"stats"
],
"Hash": "4ab2c43adb4d4699cf3690acd378d75d"
"Hash": "0d8a15c9d000970ada1ab21405387dee"
},
"renv": {
"Package": "renv",
"Version": "1.0.0.9000",
"Source": "GitHub",
"RemoteType": "github",
"RemoteHost": "api.github.com",
"RemoteUsername": "rstudio",
"RemoteRepo": "renv",
"RemoteRef": "main",
"RemoteSha": "5fb52fefb8d919f2f3d88623b341c020330ed116",
"Version": "1.0.3",
"Source": "Repository",
"Repository": "CRAN",
"Requirements": [
"utils"
],
"Hash": "1be015159fc67216d11c169ae65ece46"
"Hash": "41b847654f567341725473431dd0d5ab"
},
"rlang": {
"Package": "rlang",
"Version": "1.1.1",
"Source": "Repository",
"Repository": "RSPM",
"Repository": "CRAN",
"Requirements": [
"R",
"utils"
Expand All @@ -304,16 +307,16 @@
},
"sodium": {
"Package": "sodium",
"Version": "1.2.1",
"Version": "1.3.0",
"Source": "Repository",
"Repository": "RSPM",
"Hash": "3606bb09e0914edd4fc8313b500dcd5e"
"Hash": "bd436c1e48dc1982125e4d955017724e"
},
"stringi": {
"Package": "stringi",
"Version": "1.7.12",
"Source": "Repository",
"Repository": "RSPM",
"Repository": "CRAN",
"Requirements": [
"R",
"stats",
Expand Down Expand Up @@ -376,17 +379,17 @@
},
"vctrs": {
"Package": "vctrs",
"Version": "0.6.2",
"Version": "0.6.3",
"Source": "Repository",
"Repository": "RSPM",
"Repository": "CRAN",
"Requirements": [
"R",
"cli",
"glue",
"lifecycle",
"rlang"
],
"Hash": "a745bda7aff4734c17294bb41d4e4607"
"Hash": "d0ef2856b83dc33ea6e255caf6229ee2"
},
"webutils": {
"Package": "webutils",
Expand Down
39 changes: 10 additions & 29 deletions plumber-penguins/renv/activate.R
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
local({

# the requested version of renv
version <- "1.0.0.9000"
attr(version, "sha") <- "5fb52fefb8d919f2f3d88623b341c020330ed116"
version <- "1.0.3"
attr(version, "sha") <- NULL

# the project directory
project <- getwd()
Expand Down Expand Up @@ -782,10 +782,12 @@ local({
renv_bootstrap_validate_version <- function(version, description = NULL) {

# resolve description file
description <- description %||% {
path <- getNamespaceInfo("renv", "path")
packageDescription("renv", lib.loc = dirname(path))
}
#
# avoid passing lib.loc to `packageDescription()` below, since R will
# use the loaded version of the package by default anyhow. note that
# this function should only be called after 'renv' is loaded
# https://github.com/rstudio/renv/issues/1625
description <- description %||% packageDescription("renv")

# check whether requested version 'version' matches loaded version of renv
sha <- attr(version, "sha", exact = TRUE)
Expand Down Expand Up @@ -1032,19 +1034,6 @@ local({

}


renv_bootstrap_in_rstudio <- function() {
commandArgs()[[1]] == "RStudio"
}

# Used to work around buglet in RStudio if hook uses readline
renv_bootstrap_flush_console <- function() {
tryCatch({
tools <- as.environment("tools:rstudio")
tools$.rs.api.sendToConsole("", echo = FALSE, focus = FALSE)
}, error = function(cnd) {})
}

renv_json_read <- function(file = NULL, text = NULL) {

jlerr <- NULL
Expand Down Expand Up @@ -1183,16 +1172,8 @@ local({
# construct full libpath
libpath <- file.path(root, prefix)

if (renv_bootstrap_in_rstudio()) {
# RStudio only updates console once .Rprofile is finished, so
# instead run code on sessionInit
setHook("rstudio.sessionInit", function(...) {
renv_bootstrap_exec(project, libpath, version)
renv_bootstrap_flush_console()
})
} else {
renv_bootstrap_exec(project, libpath, version)
}
# run bootstrap code
renv_bootstrap_exec(project, libpath, version)

invisible()

Expand Down
Loading

0 comments on commit 8217d49

Please sign in to comment.