-
Notifications
You must be signed in to change notification settings - Fork 163
Description
A package in the renv.lock (example below) that is a remote from git, with a subdir will fail on renv::update with
Fehler: DESCRIPTION file "/tmp/Rtmpn8oI9c/renv-git-310522bcdf703/DESCRIPTION" does not exist
Traceback (most recent calls last):
8: renv::update()
7: install(packages = updates, library = library, rebuild = rebuild,
prompt = prompt, lock = lock, project = project)
6: map(paths, renv_sysreqs_read)
5: lapply(x, f, ...)
4: FUN(X[[i]], ...)
3: renv_description_read(package)
2: stopf("DESCRIPTION file %s does not exist", renv_path_pretty(path))
1: stop(sprintf(fmt, ...), call. = call.)
If I look into the /tmp/Rtmpn8oI9c/renv-git-310522bcdf703/ i can see that it is not the subdir_R.
Using remotes::update_packages() works.
"example": {
"Package": "example",
"Version": "0.0.1",
"Source": "Git",
"Type": "Package",
"Title": "Example",
"Author": "Joris Yidong Scholl [aut, cre]",
"Maintainer": "Joris Yidong Scholl joris.scholl@lanuk.nrw.de",
"Description": "Example",
"Encoding": "UTF-8",
"Suggests": [
"testthat (>= 3.0.0)"
],
"Roxygen": "list(markdown = TRUE)",
"RoxygenNote": "7.3.3",
"Config/testthat/edition": "3",
"Imports": [
"DBI",
"RPostgres",
"tidyverse"
],
"RemoteType": "xgit",
"RemoteUrl": "http://.../example.git",
"RemoteSubdir": "subdir_R",
"RemoteRef": "dev_scholl",
"RemoteSha": "...",
"NeedsCompilation": "no"
},