Error in R 3.6.0 due to `sample()`
zkamvar opened this issue · comments
Zhian N. Kamvar commented
This is because of https://twitter.com/kjhealy/status/1100202130466656256
checking tests ... [2s/4s] ERROR
Running ‘testthat.R’ [2s/4s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
> library(testthat)
> library(incidence)
>
> test_check("incidence")
── 1. Failure: construction - numeric input (@test-incidence.R#90) ────────────
`incidence(dat_num)` produced unexpected warnings.
Expected match: Flooring from non-integer date caused approximations:\nMean relative difference: 0.0228833
Actual values:
* Flooring from non-integer date caused approximations:
Mean relative difference: 0.02304147
── 2. Failure: Expected values, no group (@test-incidence.R#312) ──────────────
`res3` has changed from known value recorded in 'rds/incidence.res3.rds'.
Component "counts": Mean relative difference: 0.3271538
── 3. Failure: Expected values, no group (@test-incidence.R#313) ──────────────
`res4` has changed from known value recorded in 'rds/incidence.res4.rds'.
Component "counts": Mean relative difference: 0.9704142
── 4. Failure: Expected values, no group (@test-incidence.R#316) ──────────────
`res7` has changed from known value recorded in 'rds/incidence.res7.rds'.
Component "counts": Mean relative difference: 0.172
── 5. Failure: Expected values, no group (@test-incidence.R#317) ──────────────
`res8` has changed from known value recorded in 'rds/incidence.res8.rds'.
Component "counts": Mean relative difference: 0.1052632
══ testthat results ═══════════════════════════════════════════════════════════
OK: 218 SKIPPED: 18 FAILED: 5
1. Failure: construction - numeric input (@test-incidence.R#90)
2. Failure: Expected values, no group (@test-incidence.R#312)
3. Failure: Expected values, no group (@test-incidence.R#313)
4. Failure: Expected values, no group (@test-incidence.R#316)
5. Failure: Expected values, no group (@test-incidence.R#317)
Error: testthat unit tests failed
Execution halted