Skip to content

Commit

Permalink
OK, Windows only. I do not need the headache.
Browse files Browse the repository at this point in the history
  • Loading branch information
aadler committed Aug 6, 2023
1 parent c99a776 commit dfb3986
Showing 1 changed file with 10 additions and 5 deletions.
15 changes: 10 additions & 5 deletions inst/tinytest/test_version.R
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,14 @@ pV <- packageVersion("lamW")
# Test CITATION has most recent package version
expect_true(any(grepl(pV, toBibtex(citation("lamW")), fixed = TRUE)))

# Test NEWS has most recent package version
expect_true(any(grepl(pV, news(package = "lamW"), fixed = TRUE)))
# For some unknown reason this passes on Windows and Mac but not Ubuntu. Since
# this is mainly for my own personal development purposes, I will wrap it in a
# check for Windows.
if (R.Version()$arch == "x86_64") {
# Test NEWS has most recent package version
expect_true(any(grepl(pV, news(package = "lamW"), fixed = TRUE)))

# Test that NEWS has an entry with DESCRIPTION's Date
expect_true(any(grepl(packageDate("lamW"), news(package = "lamW"),
fixed = TRUE)))
# Test that NEWS has an entry with DESCRIPTION's Date
expect_true(any(grepl(packageDate("lamW"), news(package = "lamW"),
fixed = TRUE)))
}

0 comments on commit dfb3986

Please sign in to comment.