And this is IIUC the cause of the failure we see for this package when tested against the dev version of dplyr
(to become dplyr
1.0.0):
[master] 197.2 MiB ❯ revdepcheck::revdep_details(revdep = "sugrrants")
══ Reverse dependency check ═════════════════════════════════════════════════════════════════════════════════════════════════ sugrrants 0.2.5 ══
Status: BROKEN
── Newly failing
x checking examples ... ERROR
x checking tests ...
── Before ──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
0 errors ✓ | 0 warnings ✓ | 0 notes ✓
── After ───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
> checking examples ... ERROR
Running examples in ‘sugrrants-Ex.R’ failed
The error most likely occurred in:
> ### Name: frame_calendar
> ### Title: Rearrange a temporal data frame to a calendar-based data format
> ### using linear algebra
> ### Aliases: frame_calendar prettify
>
> ### ** Examples
>
> library(dplyr, warn.conflicts = FALSE)
> # compute the calendar layout for the data frame
> calendar_df <- hourly_peds %>%
+ filter(Sensor_ID == 13, Year == 2016) %>%
+ frame_calendar(x = Time, y = Hourly_Counts, date = Date, nrow = 4)
Error: Tibble columns must have consistent sizes, only values of size one are recycled:
> checking tests ...
See below...
── Test failures ───────────────────────────────────────────────────────────────────────────────────────────────────────────────── testthat ────
> library(testthat)
> library(sugrrants)
Loading required package: ggplot2
>
> test_check("sugrrants")
── 1. Error: Multiple y's and NA's (@test-calendar.R#11) ──────────────────────
Tibble columns must have consistent sizes, only values of size one are recycled:
* Size 21: Existing data
* Size 7: Column `day`
Backtrace:
9. sugrrants::frame_calendar(., x = x, y = vars(ymin, ymax), date = Date)
12. sugrrants:::gen_reference.monthly(...)
14. tibble:::`$<-.tbl_df`(`*tmp*`, "day", value = 1:7)
15. tibble:::tbl_subassign(x, i = NULL, as_string(name), list(value))
16. tibble:::tbl_subassign_col(x, j, value)
17. tibble:::vectbl_recycle_rows(...)
── 2. Error: Variable scoping (@test-calendar.R#30) ───────────────────────────
Tibble columns must have consistent sizes, only values of size one are recycled:
* Size 28: Existing data
* Size 7: Column `day`
Backtrace:
1. testthat::expect_named(...)
5. sugrrants:::frame_calendar.default(ped, x = Time, y = n, date = Date)
7. sugrrants:::gen_reference.monthly(...)
9. tibble:::`$<-.tbl_df`(`*tmp*`, "day", value = 1:7)
10. tibble:::tbl_subassign(x, i = NULL, as_string(name), list(value))
11. tibble:::tbl_subassign_col(x, j, value)
12. tibble:::vectbl_recycle_rows(...)
── 3. Error: Some column names of data are used in the function (@test-calendar.
Tibble columns must have consistent sizes, only values of size one are recycled:
* Size 28: Existing data
* Size 7: Column `day`
Backtrace:
1. testthat::expect_is(...)
5. sugrrants:::frame_calendar.default(...)
7. sugrrants:::gen_reference.monthly(...)
9. tibble:::`$<-.tbl_df`(`*tmp*`, "day", value = 1:7)
10. tibble:::tbl_subassign(x, i = NULL, as_string(name), list(value))
11. tibble:::tbl_subassign_col(x, j, value)
12. tibble:::vectbl_recycle_rows(...)
── 4. Error: The argument calendar (@test-calendar.R#83) ──────────────────────
Tibble columns must have consistent sizes, only values of size one are recycled:
* Size 28: Existing data
* Size 7: Column `day`
Backtrace:
1. sugrrants::frame_calendar(...)
2. sugrrants:::frame_calendar.default(...)
4. sugrrants:::gen_reference.monthly(...)
6. tibble:::`$<-.tbl_df`(`*tmp*`, "day", value = 1:7)
7. tibble:::tbl_subassign(x, i = NULL, as_string(name), list(value))
8. tibble:::tbl_subassign_col(x, j, value)
9. tibble:::vectbl_recycle_rows(...)
── 5. Error: The grouped data (@test-calendar.R#116) ──────────────────────────
Tibble columns must have consistent sizes, only values of size one are recycled:
* Size 28: Existing data
* Size 7: Column `day`
Backtrace:
1. dplyr::group_by(., Sensor_ID)
9. sugrrants::frame_calendar(., x = Time, y = Hourly_Counts, date = Date)
11. sugrrants:::frame_calendar.default(...)
13. sugrrants:::gen_reference.monthly(...)
15. tibble:::`$<-.tbl_df`(`*tmp*`, "day", value = 1:7)
16. tibble:::tbl_subassign(x, i = NULL, as_string(name), list(value))
17. tibble:::tbl_subassign_col(x, j, value)
18. tibble:::vectbl_recycle_rows(...)
── 6. Error: The tsibble data (@test-calendar.R#126) ──────────────────────────
Tibble columns must have consistent sizes, only values of size one are recycled:
* Size 28: Existing data
* Size 7: Column `day`
Backtrace:
1. testthat::expect_equal(...)
10. sugrrants::frame_calendar(., x = Time, y = Hourly_Counts, date = Date)
15. sugrrants:::gen_reference.monthly(...)
17. tibble:::`$<-.tbl_df`(`*tmp*`, "day", value = 1:7)
18. tibble:::tbl_subassign(x, i = NULL, as_string(name), list(value))
19. tibble:::tbl_subassign_col(x, j, value)
20. tibble:::vectbl_recycle_rows(...)
── 7. Error: The identity 1 (@test-calendar.R#181) ────────────────────────────
Tibble columns must have consistent sizes, only values of size one are recycled:
* Size 28: Existing data
* Size 7: Column `day`
Backtrace:
1. sugrrants::frame_calendar(...)
2. sugrrants:::frame_calendar.default(...)
4. sugrrants:::gen_reference.monthly(...)
6. tibble:::`$<-.tbl_df`(`*tmp*`, "day", value = 1:7)
7. tibble:::tbl_subassign(x, i = NULL, as_string(name), list(value))
8. tibble:::tbl_subassign_col(x, j, value)
9. tibble:::vectbl_recycle_rows(...)
── 8. Error: The argument dir (@test-calendar.R#204) ──────────────────────────
Tibble columns must have consistent sizes, only values of size one are recycled:
* Size 28: Existing data
* Size 7: Column `day`
Backtrace:
1. sugrrants::frame_calendar(...)
2. sugrrants:::frame_calendar.default(...)
4. sugrrants:::gen_reference.monthly(...)
6. tibble:::`$<-.tbl_df`(`*tmp*`, "day", value = 1:7)
7. tibble:::tbl_subassign(x, i = NULL, as_string(name), list(value))
8. tibble:::tbl_subassign_col(x, j, value)
9. tibble:::vectbl_recycle_rows(...)
── 9. Error: The argument polar (@test-calendar.R#211) ────────────────────────
Tibble columns must have consistent sizes, only values of size one are recycled:
* Size 28: Existing data
* Size 7: Column `day`
Backtrace:
1. sugrrants::frame_calendar(...)
2. sugrrants:::frame_calendar.default(...)
4. sugrrants:::gen_reference.monthly(...)
6. tibble:::`$<-.tbl_df`(`*tmp*`, "day", value = 1:7)
7. tibble:::tbl_subassign(x, i = NULL, as_string(name), list(value))
8. tibble:::tbl_subassign_col(x, j, value)
9. tibble:::vectbl_recycle_rows(...)
── 10. Error: The output (@test-calendar.R#218) ───────────────────────────────
Tibble columns must have consistent sizes, only values of size one are recycled:
* Size 28: Existing data
* Size 7: Column `day`
Backtrace:
1. sugrrants::frame_calendar(...)
2. sugrrants:::frame_calendar.default(...)
4. sugrrants:::gen_reference.monthly(...)
6. tibble:::`$<-.tbl_df`(`*tmp*`, "day", value = 1:7)
7. tibble:::tbl_subassign(x, i = NULL, as_string(name), list(value))
8. tibble:::tbl_subassign_col(x, j, value)
9. tibble:::vectbl_recycle_rows(...)
══ testthat results ═══════════════════════════════════════════════════════════
[ OK: 12 | SKIPPED: 0 | WARNINGS: 0 | FAILED: 10 ]
1. Error: Multiple y's and NA's (@test-calendar.R#11)
2. Error: Variable scoping (@test-calendar.R#30)
3. Error: Some column names of data are used in the function (@test-calendar.R#58)
4. Error: The argument calendar (@test-calendar.R#83)
5. Error: The grouped data (@test-calendar.R#116)
6. Error: The tsibble data (@test-calendar.R#126)
7. Error: The identity 1 (@test-calendar.R#181)
8. Error: The argument dir (@test-calendar.R#204)
9. Error: The argument polar (@test-calendar.R#211)
10. Error: The output (@test-calendar.R#218)
Error: testthat unit tests failed
Execution halted
2 errors x | 0 warnings ✓ | 0 notes ✓