Skip to content

Commit 5ea2040

Browse files
committed
Update embedded pkgcache
To use mac.cran.dev.
1 parent 8051b72 commit 5ea2040

File tree

3 files changed

+26
-6
lines changed

3 files changed

+26
-6
lines changed

src/library/pkgcache/DESCRIPTION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ Language: en-US
2727
Roxygen: list(markdown = TRUE, r6 = FALSE)
2828
RoxygenNote: 7.3.2.9000
2929
NeedsCompilation: yes
30-
Packaged: 2026-03-15 14:32:53 UTC; gaborcsardi
30+
Packaged: 2026-03-18 08:54:53 UTC; gaborcsardi
3131
Author: Gábor Csárdi [aut, cre],
3232
Posit Software, PBC [cph, fnd] (ROR: <https://ror.org/03wc8by49>)
3333
Maintainer: Gábor Csárdi <csardi.gabor@gmail.com>

src/library/pkgcache/R/packages-gz.R

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -257,7 +257,9 @@ read_packages_file <- function(
257257
#' @importFrom utils read.csv
258258

259259
read_metadata_file <- function(path) {
260-
if (is.na(path)) return(NULL)
260+
if (is.na(path)) {
261+
return(NULL)
262+
}
261263
on.exit(tryCatch(close(con), error = function(x) NULL), add = TRUE)
262264
tryCatch(
263265
suppressWarnings({
@@ -339,7 +341,9 @@ packages_make_target <- function(
339341
file,
340342
path
341343
) {
342-
if (!length(platform)) return(character())
344+
if (!length(platform)) {
345+
return(character())
346+
}
343347
platform <- rep_len(platform, length(package))
344348

345349
assert_that(
@@ -410,7 +414,9 @@ packages_make_sources <- function(
410414
is.null(downloadurl) || is.character(downloadurl)
411415
)
412416

413-
if (!length(package)) return(list())
417+
if (!length(package)) {
418+
return(list())
419+
}
414420
platform <- rep_len(platform, length(package))
415421

416422
result <- replicate(length(package), NULL)
@@ -428,7 +434,7 @@ packages_make_sources <- function(
428434
version,
429435
".tar.gz"
430436
)
431-
macurl <- paste0("https://mac.r-project.org/", target)
437+
macurl <- paste0("https://mac.cran.dev/", target)
432438

433439
os <- parse_platform(platform)$os
434440
macbin <- type == "cran" & !is.na(os) & grepl("^darwin", os)

src/library/pkgcache/inst/WORDLIST

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,32 +1,46 @@
11
BioC
22
BioConductor
3+
Bioconductor
34
CMD
5+
CRAN
46
Capitan
57
Codecov
8+
DCF
69
ETag
710
ETags
811
El
12+
Encodings
13+
FreeBSD
914
MRAN
1015
PBC
1116
README
1217
ROR
1318
RSPM
1419
RStudio
1520
SHA
21+
Solaris
1622
Sur
23+
UTF
1724
UUID
1825
archs
1926
async
27+
devel
28+
encodings
2029
funder
30+
html
2131
keyring
2232
libcurl
2333
lifecycle
24-
macos
34+
logicals
2535
macOS
36+
macos
37+
namespace
2638
netrc
2739
pak
2840
pkgdepends
2941
repo
3042
repos
3143
tibble
3244
tibbles
45+
urls
46+
whitespace

0 commit comments

Comments
 (0)