File tree Expand file tree Collapse file tree 2 files changed +5
-4
lines changed Expand file tree Collapse file tree 2 files changed +5
-4
lines changed Original file line number Diff line number Diff 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\n Context: https://github.com/lorenzwalthert/precommit/issues/243" ,
Original file line number Diff line number Diff 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})
You can’t perform that action at this time.
0 commit comments