Skip to content

Commit 7911a13

Browse files
add note on update
1 parent 22fe4af commit 7911a13

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

R/roxygen2.R

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -115,8 +115,9 @@ roxygen_assert_additional_dependencies <- function() {
115115
- tidyr
116116
- dplyr\n\n",
117117
"Call ",
118-
"`precommit::snippet_generate('additional-deps-roxygenize')`",
119-
"and paste the ",
118+
"`precommit::snippet_generate('additional-deps-roxygenize')` ",
119+
"(requires the dev version of {precommit}, install with with ",
120+
"`remotes::install_github('lorenzwalthert/precommit')` and paste the ",
120121
"output into the file `.pre-commit-config.yaml`. This requires precommit",
121122
" > 0.1.3 and assumes you declared all dependencies in `DESCRIPTION`.",
122123
"\n\nContext: https://github.com/lorenzwalthert/precommit/issues/243",

tests/testthat/test-setup.R

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,14 @@ test_that("snippet generation works", {
66
NA
77
)
88
expect_match(
9-
out, " - id: roxygenize\n.* - styler@.+\n - testthat@.+$",
9+
out, " - id: roxygenize\n.* - styler\n - testthat\n$",
1010
)
1111
desc::desc_set("Remotes", "r-lib/styler")
1212
expect_warning(
1313
out <- capture_output(snippet_generate("additional-deps-roxygenize")),
1414
"you have remote dependencies "
1515
)
1616
expect_match(
17-
out, " - id: roxygenize\n.* - styler@.+\n - testthat@.+$",
17+
out, " - id: roxygenize\n.* - styler\n - testthat\n$",
1818
)
1919
})

0 commit comments

Comments
 (0)