Skip to content

Commit 7fd4178

Browse files
erase cran form lock file to ensure only rspm is used
[ci skip]
1 parent adc6283 commit 7fd4178

File tree

2 files changed

+0
-10
lines changed

2 files changed

+0
-10
lines changed

inst/update-renv-prepare.R

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,4 @@
1-
# emulate renv::lockfile_read()$R$Repositories$RSPM, which is not available on previous version of renv
2-
31
options(
4-
repos = c(RSPM = {
5-
all_repos <- jsonlite::read_json("renv.lock")$R$Repositories
6-
all_repos[sapply(all_repos, \(x) x$Name == "RSPM")][[1]]$URL
7-
}), # CRAN is not an option, always use PPM
82
install.packages.check.source = "no", # don't check if source packages are available
93
install.packages.compile.from.source = "never" # probably redundant with the above 'no': If source package is available, only use source if no code needs to be compiled (needs compilation flag on CRAN).
104
)

renv.lock

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,6 @@
55
{
66
"Name": "RSPM",
77
"URL": "https://packagemanager.posit.co/cran/2023-11-17"
8-
},
9-
{
10-
"Name": "CRAN",
11-
"URL": "https://cran.rstudio.com"
128
}
139
]
1410
},

0 commit comments

Comments
 (0)