We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
t <- tempfile() dir.create(t) for (each in seq_len(1001)) { writeLines(character(0), file.path(t, paste0(each, ".txt")))} renv::dependencies(t) #> Error in dirname(root): a character vector argument expected
Created on 2023-08-22 with reprex v2.0.2
This happens because renv:::renv_dependencies_root() returns NULL when provided the temporary directory as its path.
renv:::renv_dependencies_root()
NULL
path
renv/R/dependencies.R
Lines 218 to 219 in ac7126d
This is the underlying issue causing rstudio/rsconnect#968
The text was updated successfully, but these errors were encountered:
Workaround is to set renv.config.dependencies.limit.
renv.config.dependencies.limit
options(renv.config.dependencies.limit = 10000)
Bypassing the "large directory" handling lets renv::dependencies() complete.
renv::dependencies()
Sorry, something went wrong.
This problem can be avoided by passing in a root argument to renv::dependencies():
root
renv::dependencies(t, root = t)
I think it ultimately comes down to this:
> renv:::renv_dependencies_root(t) NULL
So, I think that setting root is the right solution here.
No branches or pull requests
Created on 2023-08-22 with reprex v2.0.2
This happens because
renv:::renv_dependencies_root()
returnsNULL
when provided the temporary directory as itspath
.renv/R/dependencies.R
Lines 218 to 219 in ac7126d
This is the underlying issue causing rstudio/rsconnect#968
The text was updated successfully, but these errors were encountered: