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
Hi Jim,
I found a small issue in the lint() function, when specifying a cache directory. In the root directory of a package, consider:
lint()
setwd("tests/") cacheDir <- file.path("..", ".lintr_cache") lintr::expect_lint_free(cache=cacheDir)
This should create a directory ".lintr_cache", but it creates instead "~/.R/lintr_cache/".
After investigating, I found that in file "R/lint.R", function lint(), the line that reads:
save_cache(lint_cache, filename)
should be replaced by:
save_cache(lint_cache, filename, cache_dir)
Additionally, the documentation for the "cache" could be improved by stating that it is a directory (and not a simple file).
Cheers, Florent
The text was updated successfully, but these errors were encountered:
Bugfix: Save cache in the requested directory (r-lib#213)
ece1e7d
Fixed in #214
Sorry, something went wrong.
No branches or pull requests
Hi Jim,
I found a small issue in the
lint()
function, when specifying a cache directory. In the root directory of a package, consider:This should create a directory ".lintr_cache", but it creates instead "~/.R/lintr_cache/".
After investigating, I found that in file "R/lint.R", function
lint()
, the line that reads:should be replaced by:
Additionally, the documentation for the "cache" could be improved by stating that it is a directory (and not a simple file).
Cheers,
Florent
The text was updated successfully, but these errors were encountered: