Skip to content

Commit

Permalink
upgrade R 4.3.2 -> 4.4.0
Browse files Browse the repository at this point in the history
  • Loading branch information
bbest committed May 1, 2024
1 parent 3900f75 commit 42c8cf5
Show file tree
Hide file tree
Showing 3 changed files with 62 additions and 43 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ jobs:
- name: Install R
uses: r-lib/actions/setup-r@v2
with:
r-version: '4.3.2'
r-version: '4.4.0'

- name: Install R Dependencies
uses: r-lib/actions/setup-renv@v2
Expand Down
60 changes: 30 additions & 30 deletions renv.lock
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"R": {
"Version": "4.3.2",
"Version": "4.4.0",
"Repositories": [
{
"Name": "BioCsoft",
Expand Down Expand Up @@ -29,7 +29,7 @@
]
},
"Bioconductor": {
"Version": "3.18"
"Version": "3.19"
},
"Packages": {
"AsioHeaders": {
Expand Down Expand Up @@ -73,9 +73,9 @@
},
"MASS": {
"Package": "MASS",
"Version": "7.3-60.0.1",
"Version": "7.3-60.2",
"Source": "Repository",
"Repository": "RSPM",
"Repository": "CRAN",
"Requirements": [
"R",
"grDevices",
Expand All @@ -84,13 +84,13 @@
"stats",
"utils"
],
"Hash": "b765b28387acc8ec9e9c1530713cb19c"
"Hash": "2f342c46163b0b54d7b64d1f798e2c78"
},
"Matrix": {
"Package": "Matrix",
"Version": "1.6-5",
"Version": "1.7-0",
"Source": "Repository",
"Repository": "RSPM",
"Repository": "CRAN",
"Requirements": [
"R",
"grDevices",
Expand All @@ -101,7 +101,7 @@
"stats",
"utils"
],
"Hash": "8c7115cd3a0e048bda2a7cd110549f7a"
"Hash": "1920b2f11133b12350024297d8a4ff4a"
},
"R6": {
"Package": "R6",
Expand Down Expand Up @@ -376,7 +376,7 @@
},
"crul": {
"Package": "crul",
"Version": "1.4.0",
"Version": "1.4.2",
"Source": "Repository",
"Repository": "RSPM",
"Requirements": [
Expand All @@ -387,7 +387,7 @@
"mime",
"urltools"
],
"Hash": "1eb00a531331c91d970f3af74b75321f"
"Hash": "5685d2603020d0f879a147ba23d51292"
},
"curl": {
"Package": "curl",
Expand Down Expand Up @@ -600,14 +600,14 @@
},
"fs": {
"Package": "fs",
"Version": "1.6.3",
"Version": "1.6.4",
"Source": "Repository",
"Repository": "CRAN",
"Repository": "RSPM",
"Requirements": [
"R",
"methods"
],
"Hash": "47b5f30c720c23999b913a1a635cf0bb"
"Hash": "15aeb8c27f5ea5161f9f6a641fafd93a"
},
"gdtools": {
"Package": "gdtools",
Expand Down Expand Up @@ -667,7 +667,7 @@
},
"ggplot2": {
"Package": "ggplot2",
"Version": "3.5.0",
"Version": "3.5.1",
"Source": "Repository",
"Repository": "RSPM",
"Requirements": [
Expand All @@ -688,7 +688,7 @@
"vctrs",
"withr"
],
"Hash": "52ef83f93f74833007f193b2d4c159a2"
"Hash": "44c6a2f8202d5b7e878ea274b1092426"
},
"glue": {
"Package": "glue",
Expand Down Expand Up @@ -717,7 +717,7 @@
},
"gtable": {
"Package": "gtable",
"Version": "0.3.4",
"Version": "0.3.5",
"Source": "Repository",
"Repository": "RSPM",
"Requirements": [
Expand All @@ -728,7 +728,7 @@
"lifecycle",
"rlang"
],
"Hash": "b29cf3031f49b04ab9c852c912547eef"
"Hash": "e18861963cbc65a27736e02b3cd3c4a0"
},
"here": {
"Package": "here",
Expand Down Expand Up @@ -1121,13 +1121,13 @@
},
"openssl": {
"Package": "openssl",
"Version": "2.1.1",
"Version": "2.1.2",
"Source": "Repository",
"Repository": "RSPM",
"Requirements": [
"askpass"
],
"Hash": "2a0dc8c6adfb6f032e4d4af82d258ab5"
"Hash": "ea2475b073243d9d338aa8f086ce973e"
},
"patchwork": {
"Package": "patchwork",
Expand Down Expand Up @@ -1445,13 +1445,13 @@
},
"renv": {
"Package": "renv",
"Version": "1.0.5",
"Version": "1.0.7",
"Source": "Repository",
"Repository": "RSPM",
"Requirements": [
"utils"
],
"Hash": "32c3f93e8360f667ca5863272ec8ba6a"
"Hash": "397b7b2a265bc5a7a06852524dabae20"
},
"rjson": {
"Package": "rjson",
Expand Down Expand Up @@ -1503,9 +1503,9 @@
"Source": "GitHub",
"RemoteType": "github",
"RemoteHost": "api.github.com",
"RemoteUsername": "ropensci",
"RemoteRepo": "rnoaa",
"RemoteRef": "master",
"RemoteUsername": "ropensci",
"RemoteRef": "HEAD",
"RemoteSha": "95868c968c62768fe7e8143a8f631b97de120910",
"Requirements": [
"XML",
Expand All @@ -1526,7 +1526,7 @@
"utils",
"xml2"
],
"Hash": "fcc6fccb7053866617087be7bc4fc25e"
"Hash": "aa9b0868685f77c20e4191436532016a"
},
"rprojroot": {
"Package": "rprojroot",
Expand Down Expand Up @@ -1717,15 +1717,15 @@
},
"tbeptools": {
"Package": "tbeptools",
"Version": "2.0.1.9021",
"Version": "2.0.1.9022",
"Source": "GitHub",
"Remotes": "ropensci/rnoaa",
"RemoteType": "github",
"RemoteUsername": "tbep-tech",
"RemoteHost": "api.github.com",
"RemoteRepo": "tbeptools",
"RemoteUsername": "tbep-tech",
"RemoteRef": "HEAD",
"RemoteSha": "3a7eeb0415e7a2ab585dbc9e92a0b32a3b94e79b",
"RemoteHost": "api.github.com",
"Remotes": "ropensci/rnoaa",
"RemoteSha": "3b10df178e9d559a210e460a15a5543445ba4398",
"Requirements": [
"R",
"dataRetrieval",
Expand All @@ -1748,7 +1748,7 @@
"tidyr",
"tools"
],
"Hash": "ada73af50efcfb559ccfa3b89f98aaa7"
"Hash": "58a51ab7b0fb6a91ed1471927633609a"
},
"terra": {
"Package": "terra",
Expand Down
43 changes: 31 additions & 12 deletions renv/activate.R
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,13 @@
local({

# the requested version of renv
version <- "1.0.5"
version <- "1.0.7"
attr(version, "sha") <- NULL

# the project directory
project <- getwd()
project <- Sys.getenv("RENV_PROJECT")
if (!nzchar(project))
project <- getwd()

# use start-up diagnostics if enabled
diagnostics <- Sys.getenv("RENV_STARTUP_DIAGNOSTICS", unset = "FALSE")
Expand Down Expand Up @@ -129,6 +131,21 @@ local({

}

heredoc <- function(text, leave = 0) {

# remove leading, trailing whitespace
trimmed <- gsub("^\\s*\\n|\\n\\s*$", "", text)

# split into lines
lines <- strsplit(trimmed, "\n", fixed = TRUE)[[1L]]

# compute common indent
indent <- regexpr("[^[:space:]]", lines)
common <- min(setdiff(indent, -1L)) - leave
paste(substring(lines, common), collapse = "\n")

}

startswith <- function(string, prefix) {
substring(string, 1, nchar(prefix)) == prefix
}
Expand Down Expand Up @@ -631,6 +648,9 @@ local({

# if the user has requested an automatic prefix, generate it
auto <- Sys.getenv("RENV_PATHS_PREFIX_AUTO", unset = NA)
if (is.na(auto) && getRversion() >= "4.4.0")
auto <- "TRUE"

if (auto %in% c("TRUE", "True", "true", "1"))
return(renv_bootstrap_platform_prefix_auto())

Expand Down Expand Up @@ -822,24 +842,23 @@ local({

# the loaded version of renv doesn't match the requested version;
# give the user instructions on how to proceed
remote <- if (!is.null(description[["RemoteSha"]])) {
dev <- identical(description[["RemoteType"]], "github")
remote <- if (dev)
paste("rstudio/renv", description[["RemoteSha"]], sep = "@")
} else {
else
paste("renv", description[["Version"]], sep = "@")
}

# display both loaded version + sha if available
friendly <- renv_bootstrap_version_friendly(
version = description[["Version"]],
sha = description[["RemoteSha"]]
sha = if (dev) description[["RemoteSha"]]
)

fmt <- paste(
"renv %1$s was loaded from project library, but this project is configured to use renv %2$s.",
"- Use `renv::record(\"%3$s\")` to record renv %1$s in the lockfile.",
"- Use `renv::restore(packages = \"renv\")` to install renv %2$s into the project library.",
sep = "\n"
)
fmt <- heredoc("
renv %1$s was loaded from project library, but this project is configured to use renv %2$s.
- Use `renv::record(\"%3$s\")` to record renv %1$s in the lockfile.
- Use `renv::restore(packages = \"renv\")` to install renv %2$s into the project library.
")
catf(fmt, friendly, renv_bootstrap_version_friendly(version), remote)

FALSE
Expand Down

0 comments on commit 42c8cf5

Please sign in to comment.