Skip to content

use latest renv #375

New issue

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

Merged
merged 2 commits into from
Feb 15, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions NEWS.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# precommit 0.2.3.900* (Development version)
# precommit v0.2.3.900* (Development version)

* The template `.pre-commit-config.yaml` does now include `file-contents-sorter`
to sort `.Rbuildignore` (#366).
Expand All @@ -7,7 +7,7 @@
`snippet_generate("additional-deps-roxygenize")` (#358).
* `roxygenize` hook now fails if it generates an `.Rd` file that is not tracked
with version control (#363).
* Ensure compatibility with {renv} (#359).
* Ensure compatibility with {renv} (#359, #375).
* updating hook tag.
* `deps-in-desc` and `parsable-R` can now handle code chunk headers with
where `purl` or `eval` are not literals like `TRUE`, but variables defined
Expand All @@ -17,6 +17,7 @@
* The template `.pre-commit-config.yaml` default to monthly hook updates
(instead of weekly) to avoid notification triggers and git version convolution
(#370).



# precommit v0.2.2
Expand Down
7 changes: 1 addition & 6 deletions renv/activate.R
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,11 @@
local({

# the requested version of renv
version <- "0.15.0-13"
version <- "0.15.2"

# the project directory
project <- getwd()

# figure out path to 'renv' folder from this script
call <- sys.call(1L)
if (is.call(call) && identical(call[[1L]], as.symbol("source")))
Sys.setenv(RENV_PATHS_RENV = dirname(call[[2L]]))

# figure out whether the autoloader is enabled
enabled <- local({

Expand Down