metrumresearchgroup / pmtables

TeX tables for pharmacometrics.
https://metrumresearchgroup.github.io/pmt-book
11 stars 1 forks source link

Fix issues with tidyr update #257

Closed kylebaron closed 2 years ago

kylebaron commented 2 years ago
kyleam commented 2 years ago

Thanks @kylebaron. I've confirmed that this resolves that test failures on my end:

tidyr_repo <- "~/src/github/tidyverse/tidyr"
devtools::install(tidyr_repo)

cat("pmtables ",
    processx::run("git", c("rev-parse", "HEAD"))$stdout)
cat("tidyr",
    processx::run("git", c("describe", "--tags"), wd = tidyr_repo)$stdout)
devtools::test()
!>
 + cat("pmtables ",
 +     processx::run("git", c("rev-parse", "HEAD"))$stdout)
 + cat("tidyr",
 +     processx::run("git", c("describe", "--tags"), wd = tidyr_repo)$stdout)
 + devtools::test()
 +
 + pmtables  c202be8ad84b37f2312dd10544a24b8079be85a1
  + tidyr v1.2.0
 > ℹ Loading pmtables
 ℹ Testing pmtables
 ✔ | F W S  OK | Context
 ✔ |         4 | test-align
 ✔ |        10 | test-as_stable [0.3s]
 ✔ |         9 | test-check
 ✔ |         5 | test-clear_reps
 ✔ |        15 | test-cont-data [0.2s]
 ✔ |        44 | test-cont-table [0.8s]
 ✔ |        94 | test-demo-check [3.2s]
 ✔ |        34 | test-demographics-table [4.4s]
 ✔ |        24 | test-digits
 ✔ |        18 | test-cat-data [0.8s]
 ✔ |        38 | test-discrete-table [3.3s]
 ✔ |        29 | test-expected [2.1s]
 ✔ |         9 | test-hline
 ✔ |        13 | test-inventory-data [0.4s]
 ✔ |        51 | test-inventory-table [0.7s]
 ✔ |        21 | test-longtable [0.3s]
 ✔ |        25 | test-new_names
 ✔ |        21 | test-notes
 ✔ |        16 | test-panel [0.1s]
 ✔ |         6 | test-pmtable
 ✔ |        17 | test-preview.R [0.3s]
 ✔ |        16 | test-sanitize
 ✔ |         2 | test-sizes
 ✔ |        22 | test-span [0.3s]
 ✔ |        14 | test-summary-functions.R
 ✔ |         2 | test-sumrow
 ✔ |        37 | test-tab_cols [0.3s]
 ✔ |        33 | test-table-object.R [0.6s]
 ✔ |        19 | test-utils-table.R
 ✔ |        26 | test-utils
 ✔ |         6 | test-yaml_as_df

 ══ Results ══════════════════════════════════════════════════════════════════════════════════════════════════
 Duration: 18.8 s

 [ FAIL 0 | WARN 0 | SKIP 0 | PASS 680 ]