-
-
Notifications
You must be signed in to change notification settings - Fork 30
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
Fix test for {renv} #486
Fix test for {renv} #486
Conversation
I also fixed the date on the release and added headings.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM 👍
Now it appears that there is a problem with R-devel and the internal We are now inundated with new warnings in R-devel and it's changing our snapshot tests. Line 41 in cde8907
numeric_version("1.5") == 1.5
#> [1] TRUE Created on 2023-06-30 with reprex v2.0.2 Warnings
── Failure ('test-check_pandoc.R:12:3'): check_pandoc() throws a message about installation [ansi] ──
Snapshot of code has changed:
old[1:5] vs new[1:8]
Code
expect_error(check_pandoc(pv = "42"), "Incorrect pandoc version")
+ Condition
+ Warning in `.make_numeric_version()`:
+ invalid non-character version specification 'x' (type: double)
Message
sandpaper requires pandoc version 42 or higher.
! You have pandoc version [version masked for testing] in '[path masked for testing]'
* Run `testthat::snapshot_accept('check_pandoc')` to accept the change.
* Run `testthat::snapshot_review('check_pandoc')` to interactively review the change.
── Failure ('test-check_pandoc.R:12:3'): check_pandoc() throws a message about installation [unicode] ──
Snapshot of code has changed:
old[1:5] vs new[1:8]
Code
expect_error(check_pandoc(pv = "42"), "Incorrect pandoc version")
+ Condition
+ Warning in `.make_numeric_version()`:
+ invalid non-character version specification 'x' (type: double)
Message
sandpaper requires pandoc version 42 or higher.
! You have pandoc version [version masked for testing] in '[path masked for testing]'
* Run `testthat::snapshot_accept('check_pandoc')` to accept the change.
* Run `testthat::snapshot_review('check_pandoc')` to interactively review the change.
── Failure ('test-check_pandoc.R:12:3'): check_pandoc() throws a message about installation [fancy] ──
Snapshot of code has changed:
old[1:5] vs new[1:8]
Code
expect_error(check_pandoc(pv = "42"), "Incorrect pandoc version")
+ Condition
+ Warning in `.make_numeric_version()`:
+ invalid non-character version specification 'x' (type: double)
Message
sandpaper requires pandoc version 42 or higher.
! You have pandoc version [version masked for testing] in '[path masked for testing]'
* Run `testthat::snapshot_accept('check_pandoc')` to accept the change.
* Run `testthat::snapshot_review('check_pandoc')` to interactively review the change.
── Failure ('test-check_pandoc.R:18:3'): check_pandoc throws a message about installation for RStudio [plain] ──
Snapshot of code has changed:
old[1:6] vs new[1:9]
Code
expect_error(check_pandoc(pv = "42", rv = "94"), "Incorrect pandoc version",
fixed = TRUE)
+ Condition
+ Warning in `.make_numeric_version()`:
+ invalid non-character version specification 'x' (type: double)
Message
sandpaper requires pandoc version 42 or higher.
! You have pandoc version [version masked for testing] in '[path masked for testing]'
* Run `testthat::snapshot_accept('check_pandoc')` to accept the change.
* Run `testthat::snapshot_review('check_pandoc')` to interactively review the change.
── Failure ('test-check_pandoc.R:18:3'): check_pandoc throws a message about installation for RStudio [ansi] ──
Snapshot of code has changed:
old[1:6] vs new[1:9]
Code
expect_error(check_pandoc(pv = "42", rv = "94"), "Incorrect pandoc version",
fixed = TRUE)
+ Condition
+ Warning in `.make_numeric_version()`:
+ invalid non-character version specification 'x' (type: double)
Message
sandpaper requires pandoc version 42 or higher.
! You have pandoc version [version masked for testing] in '[path masked for testing]'
* Run `testthat::snapshot_accept('check_pandoc')` to accept the change.
* Run `testthat::snapshot_review('check_pandoc')` to interactively review the change.
── Failure ('test-check_pandoc.R:18:3'): check_pandoc throws a message about installation for RStudio [unicode] ──
Snapshot of code has changed:
old[1:6] vs new[1:9]
Code
expect_error(check_pandoc(pv = "42", rv = "94"), "Incorrect pandoc version",
fixed = TRUE)
+ Condition
+ Warning in `.make_numeric_version()`:
+ invalid non-character version specification 'x' (type: double)
Message
sandpaper requires pandoc version 42 or higher.
! You have pandoc version [version masked for testing] in '[path masked for testing]'
* Run `testthat::snapshot_accept('check_pandoc')` to accept the change.
* Run `testthat::snapshot_review('check_pandoc')` to interactively review the change.
── Failure ('test-check_pandoc.R:18:3'): check_pandoc throws a message about installation for RStudio [fancy] ──
Snapshot of code has changed:
old[1:6] vs new[1:9]
Code
expect_error(check_pandoc(pv = "42", rv = "94"), "Incorrect pandoc version",
fixed = TRUE)
+ Condition
+ Warning in `.make_numeric_version()`:
+ invalid non-character version specification 'x' (type: double)
Message
sandpaper requires pandoc version 42 or higher.
! You have pandoc version [version masked for testing] in '[path masked for testing]'
* Run `testthat::snapshot_accept('check_pandoc')` to accept the change.
* Run `testthat::snapshot_review('check_pandoc')` to interactively review the change. |
@carpentries/workbench-maintainers, please review (and subsequently merge if it looks cromulent) this when you get the chance. |
I completely agree that this is weird. The function is make_numeric_version but expects a char as input. Strange. They check for ischaracter() so why not also check for isnumeric() and support both? shrugs (edit: hmm I guess 1.3.5 for example isn't numeric so would need to be a char at any rate) |
This fixes a single test for {renv} due to a difference in output it created.
Note: because this only affects one test and the devel version of {renv}, the new version does not need to be released after this is merged.
This will fix #484