Last updated on 2026-03-10 23:54:36 CET.
| Package | ERROR | OK |
|---|---|---|
| contoso | 14 | |
| motherduck | 1 | 13 |
| sqlm | 14 | |
| ti | 9 | 5 |
Current CRAN status: OK: 14
Current CRAN status: ERROR: 1, OK: 13
Version: 0.2.1
Check: tests
Result: ERROR
Running ‘testthat.R’ [26s/37s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
> # This file is part of the standard setup for testthat.
> # It is recommended that you do not modify it.
> #
> # Where should you do additional test configuration?
> # Learn more about the roles of various files in:
> # * https://r-pkgs.org/testing-design.html#sec-tests-files-overview
> # * https://testthat.r-lib.org/articles/special-files.html
>
> library(testthat)
> library(motherduck)
> library(DBI)
> library(openxlsx)
>
> test_check("motherduck")
-- Status: ---------------------------------------------------------------------
-- Connection Status Report: --
! You are not connected to MotherDuck
-- User Report: --
* User Name: "duckdb"
* Role: "duckdb"
-- Catalog Report: --
* Current Database: "memory"
* Current Schema: "main"
* # Total Catalogs you have access to: 3
* # Total Tables you have access to: 0
* # Total Shares you have access to: 0
* # Tables in this catalog you have access to: 0
* # Tables in this catalog & schema you have access to: 0
-- Action Report: --
v Inserted into existing database "memory"
v Created new schema "test_schema"
> Current role: `duckdb`
-- Status: ---------------------------------------------------------------------
-- User Report: --
* User Name: "duckdb"
* Role: "duckdb"
-- Catalog Report: --
* Current Database: "memory"
* Current Schema: "test_schema"
* # Total Catalogs you have access to: 3
* # Total Tables you have access to: 0
* # Total Shares you have access to: 0
* # Tables in this catalog you have access to: 0
* # Tables in this catalog & schema you have access to: 0
> Current role: `duckdb`
> Current role: `duckdb`
> Current role: `duckdb`
-- Status: ---------------------------------------------------------------------
-- Connection Status Report: --
! You are not connected to MotherDuck
-- User Report: --
* User Name: "duckdb"
* Role: "duckdb"
-- Catalog Report: --
* Current Database: "memory"
* Current Schema: "main"
* # Total Catalogs you have access to: 3
* # Total Tables you have access to: 1
* # Total Shares you have access to: 0
* # Tables in this catalog you have access to: 1
* # Tables in this catalog & schema you have access to: 1
-- Action Report: --
v Inserted into existing database "memory"
v Using existing schema "main"
-- Status: ---------------------------------------------------------------------
-- Connection Status Report: --
! You are not connected to MotherDuck
-- User Report: --
* User Name: "duckdb"
* Role: "duckdb"
-- Catalog Report: --
* Current Database: "memory"
* Current Schema: "main"
* # Total Catalogs you have access to: 3
* # Total Tables you have access to: 1
* # Total Shares you have access to: 0
* # Tables in this catalog you have access to: 1
* # Tables in this catalog & schema you have access to: 1
-- Action Report: --
v Inserted into existing database "memory"
v Using existing schema "main"
-- Status: ---------------------------------------------------------------------
-- Connection Status Report: --
! You are not connected to MotherDuck
-- User Report: --
* User Name: "duckdb"
* Role: "duckdb"
-- Catalog Report: --
* Current Database: "memory"
* Current Schema: "main"
* # Total Catalogs you have access to: 3
* # Total Tables you have access to: 1
* # Total Shares you have access to: 0
* # Tables in this catalog you have access to: 1
* # Tables in this catalog & schema you have access to: 1
-- Action Report: --
v Inserted into existing database "memory"
v Using existing schema "main"
-- Status: ---------------------------------------------------------------------
-- Connection Status Report: --
! You are not connected to MotherDuck
-- User Report: --
* User Name: "duckdb"
* Role: "duckdb"
-- Catalog Report: --
* Current Database: "memory"
* Current Schema: "main"
* # Total Catalogs you have access to: 3
* # Total Tables you have access to: 3
* # Total Shares you have access to: 0
* # Tables in this catalog you have access to: 3
* # Tables in this catalog & schema you have access to: 3
-- Action Report: --
v Inserted into existing database "memory"
v Using existing schema "main"
-- Status: ---------------------------------------------------------------------
-- Connection Status Report: --
! You are not connected to MotherDuck
-- User Report: --
* User Name: "duckdb"
* Role: "duckdb"
-- Catalog Report: --
* Current Database: "memory"
* Current Schema: "main"
* # Total Catalogs you have access to: 3
* # Total Tables you have access to: 3
* # Total Shares you have access to: 0
* # Tables in this catalog you have access to: 3
* # Tables in this catalog & schema you have access to: 3
-- Action Report: --
v Inserted into existing database "memory"
v Using existing schema "main"
Note: method with signature 'DBIConnection#Id' chosen for function 'dbExistsTable',
target signature 'duckdb_connection#Id'.
"duckdb_connection#ANY" would also be valid
-- Status: ---------------------------------------------------------------------
-- Connection Status Report: --
! You are not connected to MotherDuck
-- User Report: --
* User Name: "duckdb"
* Role: "duckdb"
-- Catalog Report: --
* Current Database: "memory"
* Current Schema: "main"
* # Total Catalogs you have access to: 3
* # Total Tables you have access to: 0
* # Total Shares you have access to: 0
* # Tables in this catalog you have access to: 0
* # Tables in this catalog & schema you have access to: 0
-- Action Report:
* Deleted "delete_table" from "[database_name]" in "main"
-- Status: ---------------------------------------------------------------------
-- Connection Status Report: --
! You are not connected to MotherDuck
-- User Report: --
* User Name: "duckdb"
* Role: "duckdb"
-- Catalog Report: --
* Current Database: "memory"
* Current Schema: "main"
* # Total Catalogs you have access to: 3
* # Total Tables you have access to: 0
* # Total Shares you have access to: 0
* # Tables in this catalog you have access to: 0
* # Tables in this catalog & schema you have access to: 0
-- Action Report: --
v Inserted into existing database "memory"
v Created new schema "test_schema"
-- Status: ---------------------------------------------------------------------
-- Connection Status Report: --
! You are not connected to MotherDuck
-- User Report: --
* User Name: "duckdb"
* Role: "duckdb"
-- Catalog Report: --
* Current Database: "memory"
* Current Schema: "main"
* # Total Catalogs you have access to: 3
* # Total Tables you have access to: 1
* # Total Shares you have access to: 0
* # Tables in this catalog you have access to: 1
* # Tables in this catalog & schema you have access to: 0
-- Action Report: --
* Deleted "test_schema" schema and 1 tables
-- Status: ---------------------------------------------------------------------
-- Connection Status Report: --
! You are not connected to MotherDuck
-- User Report: --
* User Name: "duckdb"
* Role: "duckdb"
-- Catalog Report: --
* Current Database: "memory"
* Current Schema: "main"
* # Total Catalogs you have access to: 3
* # Total Tables you have access to: 0
* # Total Shares you have access to: 0
* # Tables in this catalog you have access to: 0
* # Tables in this catalog & schema you have access to: 0
-- Action Report: --
* Deleted "test_schema" schema and 1 tables
-- Action Report: --
v Inserted into existing database "memory"
v Using existing schema "main"
v Overwrite existing table "mtcars_csv"
Saving _problems/test-motherduck-405.R
[ FAIL 1 | WARN 0 | SKIP 1 | PASS 22 ]
══ Skipped tests (1) ═══════════════════════════════════════════════════════════
• empty test (1): 'test-motherduck.R:259:3'
══ Failed tests ════════════════════════════════════════════════════════════════
── Error ('test-motherduck.R:405:7'): read_excel / successfully reads a excel and copies table to database ──
<purrr_error_indexed/rlang_error/error/condition>
Error in `purrr::map(ext_lst$valid_ext, function(x) DBI::dbExecute(.con, glue::glue("LOAD {x};")))`: i In index: 1.
Caused by error in `duckdb_result()`:
! Invalid Error: Invalid Input Error: Initialization function "excel_duckdb_cpp_init" from file "/data/gannet/ripley/.local/share/R/duckdb/extensions/v1.4.4/linux_amd64/excel.duckdb_extension" threw an exception: "Missing DB manager"
i Context: rapi_execute
i Error type: INVALID
[ FAIL 1 | WARN 0 | SKIP 1 | PASS 22 ]
Error:
! Test failures.
Execution halted
Flavor: r-devel-linux-x86_64-fedora-clang
Current CRAN status: OK: 14
Current CRAN status: ERROR: 9, OK: 5
Version: 4.0.0
Check: tests
Result: ERROR
Running ‘testthat.R’ [21s/28s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
> # This file is part of the standard setup for testthat.
> # It is recommended that you do not modify it.
> #
> # Where should you do additional test configuration?
> # Learn more about the roles of various files in:
> # * https://r-pkgs.org/testing-design.html#sec-tests-files-overview
> # * https://testthat.r-lib.org/articles/special-files.html
>
> library(testthat)
> library(ti)
>
> test_check("ti")
Saving _problems/test-retail-calendar-114.R
Saving _problems/test-retail-calendar-124.R
Saving _problems/test-retail-calendar-134.R
Saving _problems/test-retail-calendar-142.R
Saving _problems/test-retail-calendar-159.R
Saving _problems/test-retail-calendar-169.R
Saving _problems/test-retail-calendar-179.R
Saving _problems/test-retail-calendar-189.R
Saving _problems/test-retail-calendar-199.R
Saving _problems/test-retail-calendar-210.R
Saving _problems/test-retail-calendar-221.R
Saving _problems/test-retail-calendar-231.R
Saving _problems/test-retail-calendar-241.R
Saving _problems/test-retail-calendar-251.R
Saving _problems/test-retail-calendar-261.R
Saving _problems/test-retail-calendar-271.R
Saving _problems/test-retail-calendar-281.R
Saving _problems/test-retail-calendar-292.R
Saving _problems/test-retail-calendar-303.R
Saving _problems/test-retail-calendar-313.R
Saving _problems/test-retail-calendar-323.R
Saving _problems/test-retail-calendar-333.R
Saving _problems/test-retail-calendar-343.R
Saving _problems/test-retail-calendar-353.R
Saving _problems/test-retail-calendar-367.R
Saving _problems/test-retail-calendar-377.R
Saving _problems/test-retail-calendar-388.R
Saving _problems/test-retail-calendar-398.R
Saving _problems/test-retail-calendar-412.R
Saving _problems/test-retail-calendar-422.R
Saving _problems/test-retail-calendar-432.R
Saving _problems/test-ti_fn-14.R
Saving _problems/test-ti_fn-25.R
Saving _problems/test-ti_fn-36.R
Saving _problems/test-ti_fn-47.R
Saving _problems/test-ti_fn-59.R
Saving _problems/test-ti_fn-71.R
Saving _problems/test-ti_fn-82.R
Saving _problems/test-ti_fn-93.R
Saving _problems/test-ti_fn-104.R
Saving _problems/test-ti_fn-115.R
Saving _problems/test-ti_fn-127.R
Saving _problems/test-ti_fn-137.R
Saving _problems/test-ti_fn-147.R
Saving _problems/test-ti_fn-155.R
Saving _problems/test-ti_fn-166.R
Saving _problems/test-ti_fn-177.R
Saving _problems/test-ti_fn-189.R
Saving _problems/test-ti_fn-200.R
Saving _problems/test-ti_fn-211.R
Saving _problems/test-ti_fn-223.R
Saving _problems/test-ti_fn-233.R
Saving _problems/test-ti_fn-243.R
Saving _problems/test-ti_fn-252.R
Saving _problems/test-ti_fn-261.R
[ FAIL 55 | WARN 0 | SKIP 0 | PASS 6 ]
══ Failed tests ════════════════════════════════════════════════════════════════
── Failure ('test-retail-calendar.R:108:5'): retail calendar integration with ti functions / ytd works with 445 calendar ──
Expected `{ ... }` not to throw any errors.
Actually got a <rlang_error> with message:
i In argument: `margin = sum(margin, na.rm = TRUE)`
Caused by error:
! Object `margin` not found.
── Failure ('test-retail-calendar.R:118:5'): retail calendar integration with ti functions / qtd works with 445 calendar ──
Expected `{ ... }` not to throw any errors.
Actually got a <rlang_error> with message:
i In argument: `margin = sum(margin, na.rm = TRUE)`
Caused by error:
! Object `margin` not found.
── Failure ('test-retail-calendar.R:128:5'): retail calendar integration with ti functions / mtd works with 445 calendar ──
Expected `{ ... }` not to throw any errors.
Actually got a <rlang_error> with message:
i In argument: `margin = sum(margin, na.rm = TRUE)`
Caused by error:
! Object `margin` not found.
── Error ('test-retail-calendar.R:138:5'): retail calendar integration with ti functions / ytd with 445 returns fiscal year values ──
Error in `dplyr::summarise(dplyr::mutate(make_db_tbl(dplyr::ungroup(x@datum@data)), date = lubridate::floor_date(!!x@datum@date_quo, unit = !!x@time_unit@value, week_start = 7), time_unit = !!x@time_unit@value), `:=`(!!x@value@value_vec, sum(!!x@value@value_quo, na.rm = TRUE)), .by = c(date, !!!x@datum@group_quo))`: i In argument: `margin = sum(margin, na.rm = TRUE)`
Caused by error:
! Object `margin` not found.
── Failure ('test-retail-calendar.R:151:5'): retail calendar integration with ti functions / grouped ytd works with 454 calendar ──
Expected `{ ... }` not to throw any errors.
Actually got a <rlang_error> with message:
i In argument: `margin = sum(margin, na.rm = TRUE)`
Caused by error:
! Object `margin` not found.
── Failure ('test-retail-calendar.R:163:5'): retail calendar integration with ti functions / wtd works with 445 calendar ──
Expected `{ ... }` not to throw any errors.
Actually got a <rlang_error> with message:
i In argument: `margin = sum(margin, na.rm = TRUE)`
Caused by error:
! Object `margin` not found.
── Failure ('test-retail-calendar.R:173:5'): retail calendar integration with ti functions / atd works with 445 calendar ──
Expected `{ ... }` not to throw any errors.
Actually got a <rlang_error> with message:
i In argument: `margin = sum(margin, na.rm = TRUE)`
Caused by error:
! Object `margin` not found.
── Failure ('test-retail-calendar.R:183:5'): retail calendar integration with ti functions / pytd works with 445 calendar ──
Expected `{ ... }` not to throw any errors.
Actually got a <rlang_error> with message:
i In argument: `margin = sum(margin, na.rm = TRUE)`
Caused by error:
! Object `margin` not found.
── Failure ('test-retail-calendar.R:193:5'): retail calendar integration with ti functions / pqtd works with 445 calendar ──
Expected `{ ... }` not to throw any errors.
Actually got a <rlang_error> with message:
i In argument: `margin = sum(margin, na.rm = TRUE)`
Caused by error:
! Object `margin` not found.
── Failure ('test-retail-calendar.R:204:5'): retail calendar integration with ti functions / pmtd works with 445 calendar ──
Expected `{ ... }` not to throw any errors.
Actually got a <rlang_error> with message:
i In argument: `margin = sum(margin, na.rm = TRUE)`
Caused by error:
! Object `margin` not found.
── Failure ('test-retail-calendar.R:215:5'): retail calendar integration with ti functions / pwtd works with 445 calendar ──
Expected `{ ... }` not to throw any errors.
Actually got a <rlang_error> with message:
i In argument: `margin = sum(margin, na.rm = TRUE)`
Caused by error:
! Object `margin` not found.
── Failure ('test-retail-calendar.R:225:5'): retail calendar integration with ti functions / yoy works with 445 calendar ──
Expected `{ ... }` not to throw any errors.
Actually got a <rlang_error> with message:
i In argument: `margin = sum(margin, na.rm = TRUE)`
Caused by error:
! Object `margin` not found.
── Failure ('test-retail-calendar.R:235:5'): retail calendar integration with ti functions / qoq works with 445 calendar ──
Expected `{ ... }` not to throw any errors.
Actually got a <rlang_error> with message:
i In argument: `margin = sum(margin, na.rm = TRUE)`
Caused by error:
! Object `margin` not found.
── Failure ('test-retail-calendar.R:245:5'): retail calendar integration with ti functions / mom works with 445 calendar ──
Expected `{ ... }` not to throw any errors.
Actually got a <rlang_error> with message:
i In argument: `margin = sum(margin, na.rm = TRUE)`
Caused by error:
! Object `margin` not found.
── Failure ('test-retail-calendar.R:255:5'): retail calendar integration with ti functions / wow works with 445 calendar ──
Expected `{ ... }` not to throw any errors.
Actually got a <rlang_error> with message:
i In argument: `margin = sum(margin, na.rm = TRUE)`
Caused by error:
! Object `margin` not found.
── Failure ('test-retail-calendar.R:265:5'): retail calendar integration with ti functions / dod works with 445 calendar ──
Expected `{ ... }` not to throw any errors.
Actually got a <rlang_error> with message:
i In argument: `margin = sum(margin, na.rm = TRUE)`
Caused by error:
! Object `margin` not found.
── Failure ('test-retail-calendar.R:275:5'): retail calendar integration with ti functions / yoytd works with 445 calendar ──
Expected `{ ... }` not to throw any errors.
Actually got a <rlang_error> with message:
i In argument: `margin = sum(margin, na.rm = TRUE)`
Caused by error:
! Object `margin` not found.
── Failure ('test-retail-calendar.R:286:5'): retail calendar integration with ti functions / qoqtd works with 445 calendar ──
Expected `{ ... }` not to throw any errors.
Actually got a <rlang_error> with message:
i In argument: `margin = sum(margin, na.rm = TRUE)`
Caused by error:
! Object `margin` not found.
── Failure ('test-retail-calendar.R:297:5'): retail calendar integration with ti functions / momtd works with 445 calendar ──
Expected `{ ... }` not to throw any errors.
Actually got a <rlang_error> with message:
i In argument: `margin = sum(margin, na.rm = TRUE)`
Caused by error:
! Object `margin` not found.
── Failure ('test-retail-calendar.R:308:5'): retail calendar integration with ti functions / wowtd works with 445 calendar ──
Expected `{ ... }` not to throw any errors.
Actually got a <rlang_error> with message:
i In argument: `margin = sum(margin, na.rm = TRUE)`
Caused by error:
! Object `margin` not found.
── Failure ('test-retail-calendar.R:317:5'): retail calendar integration with ti functions / ytdopy works with 445 calendar ──
Expected `{ ... }` not to throw any errors.
Actually got a <rlang_error> with message:
i In argument: `margin = sum(margin, na.rm = TRUE)`
Caused by error:
! Object `margin` not found.
── Failure ('test-retail-calendar.R:327:5'): retail calendar integration with ti functions / qtdopq works with 445 calendar ──
Expected `{ ... }` not to throw any errors.
Actually got a <rlang_error> with message:
i In argument: `margin = sum(margin, na.rm = TRUE)`
Caused by error:
! Object `margin` not found.
── Failure ('test-retail-calendar.R:337:5'): retail calendar integration with ti functions / mtdopm works with 445 calendar ──
Expected `{ ... }` not to throw any errors.
Actually got a <rlang_error> with message:
i In argument: `margin = sum(margin, na.rm = TRUE)`
Caused by error:
! Object `margin` not found.
── Failure ('test-retail-calendar.R:347:5'): retail calendar integration with ti functions / wtdopw works with 445 calendar ──
Expected `{ ... }` not to throw any errors.
Actually got a <rlang_error> with message:
i In argument: `margin = sum(margin, na.rm = TRUE)`
Caused by error:
! Object `margin` not found.
── Failure ('test-retail-calendar.R:361:5'): 544 calendar integration / ytd works with 544 calendar ──
Expected `{ ... }` not to throw any errors.
Actually got a <rlang_error> with message:
i In argument: `margin = sum(margin, na.rm = TRUE)`
Caused by error:
! Object `margin` not found.
── Failure ('test-retail-calendar.R:371:5'): 544 calendar integration / qoq works with 544 calendar ──
Expected `{ ... }` not to throw any errors.
Actually got a <rlang_error> with message:
i In argument: `margin = sum(margin, na.rm = TRUE)`
Caused by error:
! Object `margin` not found.
── Failure ('test-retail-calendar.R:382:5'): 544 calendar integration / momtd works with 544 calendar ──
Expected `{ ... }` not to throw any errors.
Actually got a <rlang_error> with message:
i In argument: `margin = sum(margin, na.rm = TRUE)`
Caused by error:
! Object `margin` not found.
── Failure ('test-retail-calendar.R:392:5'): 544 calendar integration / wtdopw works with 544 calendar ──
Expected `{ ... }` not to throw any errors.
Actually got a <rlang_error> with message:
i In argument: `margin = sum(margin, na.rm = TRUE)`
Caused by error:
! Object `margin` not found.
── Failure ('test-retail-calendar.R:406:5'): fiscal_year_start variations / ytd works with fiscal_year_start = 7 ──
Expected `{ ... }` not to throw any errors.
Actually got a <rlang_error> with message:
i In argument: `margin = sum(margin, na.rm = TRUE)`
Caused by error:
! Object `margin` not found.
── Failure ('test-retail-calendar.R:416:5'): fiscal_year_start variations / qoq works with fiscal_year_start = 10 ──
Expected `{ ... }` not to throw any errors.
Actually got a <rlang_error> with message:
i In argument: `margin = sum(margin, na.rm = TRUE)`
Caused by error:
! Object `margin` not found.
── Failure ('test-retail-calendar.R:426:5'): fiscal_year_start variations / mtd works with fiscal_year_start = 4 ──
Expected `{ ... }` not to throw any errors.
Actually got a <rlang_error> with message:
i In argument: `margin = sum(margin, na.rm = TRUE)`
Caused by error:
! Object `margin` not found.
── Failure ('test-ti_fn.R:6:5'): ti functions / ytd works ──────────────────────
Expected `{ ... }` not to throw any errors.
Actually got a <rlang_error> with message:
i In argument: `margin = sum(margin, na.rm = TRUE)`
Caused by error:
! Object `margin` not found.
── Failure ('test-ti_fn.R:18:5'): ti functions / qtd works ─────────────────────
Expected `{ ... }` not to throw any errors.
Actually got a <rlang_error> with message:
i In argument: `margin = sum(margin, na.rm = TRUE)`
Caused by error:
! Object `margin` not found.
── Failure ('test-ti_fn.R:29:5'): ti functions / mtd works ─────────────────────
Expected `{ ... }` not to throw any errors.
Actually got a <rlang_error> with message:
i In argument: `margin = sum(margin, na.rm = TRUE)`
Caused by error:
! Object `margin` not found.
── Failure ('test-ti_fn.R:40:5'): ti functions / wtd works ─────────────────────
Expected `{ ... }` not to throw any errors.
Actually got a <rlang_error> with message:
i In argument: `margin = sum(margin, na.rm = TRUE)`
Caused by error:
! Object `margin` not found.
── Failure ('test-ti_fn.R:51:5'): ti functions / atd works ─────────────────────
Expected `{ ... }` not to throw any errors.
Actually got a <rlang_error> with message:
i In argument: `margin = sum(margin, na.rm = TRUE)`
Caused by error:
! Object `margin` not found.
── Failure ('test-ti_fn.R:63:5'): ti functions / yoy works ─────────────────────
Expected `{ ... }` not to throw any errors.
Actually got a <rlang_error> with message:
i In argument: `margin = sum(margin, na.rm = TRUE)`
Caused by error:
! Object `margin` not found.
── Failure ('test-ti_fn.R:75:5'): ti functions / qoq works ─────────────────────
Expected `{ ... }` not to throw any errors.
Actually got a <rlang_error> with message:
i In argument: `margin = sum(margin, na.rm = TRUE)`
Caused by error:
! Object `margin` not found.
── Failure ('test-ti_fn.R:86:5'): ti functions / mom works ─────────────────────
Expected `{ ... }` not to throw any errors.
Actually got a <rlang_error> with message:
i In argument: `margin = sum(margin, na.rm = TRUE)`
Caused by error:
! Object `margin` not found.
── Failure ('test-ti_fn.R:97:5'): ti functions / wow works ─────────────────────
Expected `{ ... }` not to throw any errors.
Actually got a <rlang_error> with message:
i In argument: `margin = sum(margin, na.rm = TRUE)`
Caused by error:
! Object `margin` not found.
── Failure ('test-ti_fn.R:108:5'): ti functions / dod works ────────────────────
Expected `{ ... }` not to throw any errors.
Actually got a <rlang_error> with message:
i In argument: `margin = sum(margin, na.rm = TRUE)`
Caused by error:
! Object `margin` not found.
── Failure ('test-ti_fn.R:119:5'): ti functions / yoytd works ──────────────────
Expected `{ ... }` not to throw any errors.
Actually got a <rlang_error> with message:
i In argument: `margin = sum(margin, na.rm = TRUE)`
Caused by error:
! Object `margin` not found.
── Failure ('test-ti_fn.R:131:5'): ti functions / qoqtd works ──────────────────
Expected `{ ... }` not to throw any errors.
Actually got a <rlang_error> with message:
i In argument: `margin = sum(margin, na.rm = TRUE)`
Caused by error:
! Object `margin` not found.
── Failure ('test-ti_fn.R:141:5'): ti functions / momtd works ──────────────────
Expected `{ ... }` not to throw any errors.
Actually got a <rlang_error> with message:
i In argument: `margin = sum(margin, na.rm = TRUE)`
Caused by error:
! Object `margin` not found.
── Failure ('test-ti_fn.R:151:5'): ti functions / wowtd works ──────────────────
Expected `{ ... }` not to throw any errors.
Actually got a <rlang_error> with message:
i In argument: `margin = sum(margin, na.rm = TRUE)`
Caused by error:
! Object `margin` not found.
── Failure ('test-ti_fn.R:159:5'): ti functions / pytd works ───────────────────
Expected `{ ... }` not to throw any errors.
Actually got a <rlang_error> with message:
i In argument: `margin = sum(margin, na.rm = TRUE)`
Caused by error:
! Object `margin` not found.
── Failure ('test-ti_fn.R:170:5'): ti functions / pqtd works ───────────────────
Expected `{ ... }` not to throw any errors.
Actually got a <rlang_error> with message:
i In argument: `margin = sum(margin, na.rm = TRUE)`
Caused by error:
! Object `margin` not found.
── Failure ('test-ti_fn.R:181:5'): ti functions / pmtd works ───────────────────
Expected `{ ... }` not to throw any errors.
Actually got a <rlang_error> with message:
i In argument: `margin = sum(margin, na.rm = TRUE)`
Caused by error:
! Object `margin` not found.
── Failure ('test-ti_fn.R:193:5'): ti functions / pwtd works ───────────────────
Expected `{ ... }` not to throw any errors.
Actually got a <rlang_error> with message:
i In argument: `margin = sum(margin, na.rm = TRUE)`
Caused by error:
! Object `margin` not found.
── Failure ('test-ti_fn.R:204:5'): ti functions / ytdopy works ─────────────────
Expected `{ ... }` not to throw any errors.
Actually got a <rlang_error> with message:
i In argument: `margin = sum(margin, na.rm = TRUE)`
Caused by error:
! Object `margin` not found.
── Failure ('test-ti_fn.R:215:5'): ti functions / mtdopm works ─────────────────
Expected `{ ... }` not to throw any errors.
Actually got a <rlang_error> with message:
i In argument: `margin = sum(margin, na.rm = TRUE)`
Caused by error:
! Object `margin` not found.
── Failure ('test-ti_fn.R:227:5'): ti functions / qtdopq works ─────────────────
Expected `{ ... }` not to throw any errors.
Actually got a <rlang_error> with message:
i In argument: `margin = sum(margin, na.rm = TRUE)`
Caused by error:
! Object `margin` not found.
── Failure ('test-ti_fn.R:237:5'): ti functions / wtdopw works ─────────────────
Expected `{ ... }` not to throw any errors.
Actually got a <rlang_error> with message:
i In argument: `margin = sum(margin, na.rm = TRUE)`
Caused by error:
! Object `margin` not found.
── Failure ('test-ti_fn.R:247:5'): ti functions / abc works ────────────────────
Expected `{ ... }` not to throw any errors.
Actually got a <rlang_error> with message:
i In argument: `abc_margin = sum(margin, na.rm = TRUE)`
Caused by error:
! Object `margin` not found.
── Failure ('test-ti_fn.R:256:5'): ti functions / cohort works ─────────────────
Expected `{ ... }` not to throw any errors.
Actually got a <rlang_error> with message:
i In argument: `margin`
Caused by error:
! Object `margin` not found.
[ FAIL 55 | WARN 0 | SKIP 0 | PASS 6 ]
Error:
! Test failures.
Execution halted
Flavor: r-devel-linux-x86_64-debian-clang
Version: 4.0.0
Check: tests
Result: ERROR
Running ‘testthat.R’ [14s/18s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
> # This file is part of the standard setup for testthat.
> # It is recommended that you do not modify it.
> #
> # Where should you do additional test configuration?
> # Learn more about the roles of various files in:
> # * https://r-pkgs.org/testing-design.html#sec-tests-files-overview
> # * https://testthat.r-lib.org/articles/special-files.html
>
> library(testthat)
> library(ti)
>
> test_check("ti")
Saving _problems/test-retail-calendar-114.R
Saving _problems/test-retail-calendar-124.R
Saving _problems/test-retail-calendar-134.R
Saving _problems/test-retail-calendar-142.R
Saving _problems/test-retail-calendar-159.R
Saving _problems/test-retail-calendar-169.R
Saving _problems/test-retail-calendar-179.R
Saving _problems/test-retail-calendar-189.R
Saving _problems/test-retail-calendar-199.R
Saving _problems/test-retail-calendar-210.R
Saving _problems/test-retail-calendar-221.R
Saving _problems/test-retail-calendar-231.R
Saving _problems/test-retail-calendar-241.R
Saving _problems/test-retail-calendar-251.R
Saving _problems/test-retail-calendar-261.R
Saving _problems/test-retail-calendar-271.R
Saving _problems/test-retail-calendar-281.R
Saving _problems/test-retail-calendar-292.R
Saving _problems/test-retail-calendar-303.R
Saving _problems/test-retail-calendar-313.R
Saving _problems/test-retail-calendar-323.R
Saving _problems/test-retail-calendar-333.R
Saving _problems/test-retail-calendar-343.R
Saving _problems/test-retail-calendar-353.R
Saving _problems/test-retail-calendar-367.R
Saving _problems/test-retail-calendar-377.R
Saving _problems/test-retail-calendar-388.R
Saving _problems/test-retail-calendar-398.R
Saving _problems/test-retail-calendar-412.R
Saving _problems/test-retail-calendar-422.R
Saving _problems/test-retail-calendar-432.R
Saving _problems/test-ti_fn-14.R
Saving _problems/test-ti_fn-25.R
Saving _problems/test-ti_fn-36.R
Saving _problems/test-ti_fn-47.R
Saving _problems/test-ti_fn-59.R
Saving _problems/test-ti_fn-71.R
Saving _problems/test-ti_fn-82.R
Saving _problems/test-ti_fn-93.R
Saving _problems/test-ti_fn-104.R
Saving _problems/test-ti_fn-115.R
Saving _problems/test-ti_fn-127.R
Saving _problems/test-ti_fn-137.R
Saving _problems/test-ti_fn-147.R
Saving _problems/test-ti_fn-155.R
Saving _problems/test-ti_fn-166.R
Saving _problems/test-ti_fn-177.R
Saving _problems/test-ti_fn-189.R
Saving _problems/test-ti_fn-200.R
Saving _problems/test-ti_fn-211.R
Saving _problems/test-ti_fn-223.R
Saving _problems/test-ti_fn-233.R
Saving _problems/test-ti_fn-243.R
Saving _problems/test-ti_fn-252.R
Saving _problems/test-ti_fn-261.R
[ FAIL 55 | WARN 0 | SKIP 0 | PASS 6 ]
══ Failed tests ════════════════════════════════════════════════════════════════
── Failure ('test-retail-calendar.R:108:5'): retail calendar integration with ti functions / ytd works with 445 calendar ──
Expected `{ ... }` not to throw any errors.
Actually got a <rlang_error> with message:
i In argument: `margin = sum(margin, na.rm = TRUE)`
Caused by error:
! Object `margin` not found.
── Failure ('test-retail-calendar.R:118:5'): retail calendar integration with ti functions / qtd works with 445 calendar ──
Expected `{ ... }` not to throw any errors.
Actually got a <rlang_error> with message:
i In argument: `margin = sum(margin, na.rm = TRUE)`
Caused by error:
! Object `margin` not found.
── Failure ('test-retail-calendar.R:128:5'): retail calendar integration with ti functions / mtd works with 445 calendar ──
Expected `{ ... }` not to throw any errors.
Actually got a <rlang_error> with message:
i In argument: `margin = sum(margin, na.rm = TRUE)`
Caused by error:
! Object `margin` not found.
── Error ('test-retail-calendar.R:138:5'): retail calendar integration with ti functions / ytd with 445 returns fiscal year values ──
Error in `dplyr::summarise(dplyr::mutate(make_db_tbl(dplyr::ungroup(x@datum@data)), date = lubridate::floor_date(!!x@datum@date_quo, unit = !!x@time_unit@value, week_start = 7), time_unit = !!x@time_unit@value), `:=`(!!x@value@value_vec, sum(!!x@value@value_quo, na.rm = TRUE)), .by = c(date, !!!x@datum@group_quo))`: i In argument: `margin = sum(margin, na.rm = TRUE)`
Caused by error:
! Object `margin` not found.
── Failure ('test-retail-calendar.R:151:5'): retail calendar integration with ti functions / grouped ytd works with 454 calendar ──
Expected `{ ... }` not to throw any errors.
Actually got a <rlang_error> with message:
i In argument: `margin = sum(margin, na.rm = TRUE)`
Caused by error:
! Object `margin` not found.
── Failure ('test-retail-calendar.R:163:5'): retail calendar integration with ti functions / wtd works with 445 calendar ──
Expected `{ ... }` not to throw any errors.
Actually got a <rlang_error> with message:
i In argument: `margin = sum(margin, na.rm = TRUE)`
Caused by error:
! Object `margin` not found.
── Failure ('test-retail-calendar.R:173:5'): retail calendar integration with ti functions / atd works with 445 calendar ──
Expected `{ ... }` not to throw any errors.
Actually got a <rlang_error> with message:
i In argument: `margin = sum(margin, na.rm = TRUE)`
Caused by error:
! Object `margin` not found.
── Failure ('test-retail-calendar.R:183:5'): retail calendar integration with ti functions / pytd works with 445 calendar ──
Expected `{ ... }` not to throw any errors.
Actually got a <rlang_error> with message:
i In argument: `margin = sum(margin, na.rm = TRUE)`
Caused by error:
! Object `margin` not found.
── Failure ('test-retail-calendar.R:193:5'): retail calendar integration with ti functions / pqtd works with 445 calendar ──
Expected `{ ... }` not to throw any errors.
Actually got a <rlang_error> with message:
i In argument: `margin = sum(margin, na.rm = TRUE)`
Caused by error:
! Object `margin` not found.
── Failure ('test-retail-calendar.R:204:5'): retail calendar integration with ti functions / pmtd works with 445 calendar ──
Expected `{ ... }` not to throw any errors.
Actually got a <rlang_error> with message:
i In argument: `margin = sum(margin, na.rm = TRUE)`
Caused by error:
! Object `margin` not found.
── Failure ('test-retail-calendar.R:215:5'): retail calendar integration with ti functions / pwtd works with 445 calendar ──
Expected `{ ... }` not to throw any errors.
Actually got a <rlang_error> with message:
i In argument: `margin = sum(margin, na.rm = TRUE)`
Caused by error:
! Object `margin` not found.
── Failure ('test-retail-calendar.R:225:5'): retail calendar integration with ti functions / yoy works with 445 calendar ──
Expected `{ ... }` not to throw any errors.
Actually got a <rlang_error> with message:
i In argument: `margin = sum(margin, na.rm = TRUE)`
Caused by error:
! Object `margin` not found.
── Failure ('test-retail-calendar.R:235:5'): retail calendar integration with ti functions / qoq works with 445 calendar ──
Expected `{ ... }` not to throw any errors.
Actually got a <rlang_error> with message:
i In argument: `margin = sum(margin, na.rm = TRUE)`
Caused by error:
! Object `margin` not found.
── Failure ('test-retail-calendar.R:245:5'): retail calendar integration with ti functions / mom works with 445 calendar ──
Expected `{ ... }` not to throw any errors.
Actually got a <rlang_error> with message:
i In argument: `margin = sum(margin, na.rm = TRUE)`
Caused by error:
! Object `margin` not found.
── Failure ('test-retail-calendar.R:255:5'): retail calendar integration with ti functions / wow works with 445 calendar ──
Expected `{ ... }` not to throw any errors.
Actually got a <rlang_error> with message:
i In argument: `margin = sum(margin, na.rm = TRUE)`
Caused by error:
! Object `margin` not found.
── Failure ('test-retail-calendar.R:265:5'): retail calendar integration with ti functions / dod works with 445 calendar ──
Expected `{ ... }` not to throw any errors.
Actually got a <rlang_error> with message:
i In argument: `margin = sum(margin, na.rm = TRUE)`
Caused by error:
! Object `margin` not found.
── Failure ('test-retail-calendar.R:275:5'): retail calendar integration with ti functions / yoytd works with 445 calendar ──
Expected `{ ... }` not to throw any errors.
Actually got a <rlang_error> with message:
i In argument: `margin = sum(margin, na.rm = TRUE)`
Caused by error:
! Object `margin` not found.
── Failure ('test-retail-calendar.R:286:5'): retail calendar integration with ti functions / qoqtd works with 445 calendar ──
Expected `{ ... }` not to throw any errors.
Actually got a <rlang_error> with message:
i In argument: `margin = sum(margin, na.rm = TRUE)`
Caused by error:
! Object `margin` not found.
── Failure ('test-retail-calendar.R:297:5'): retail calendar integration with ti functions / momtd works with 445 calendar ──
Expected `{ ... }` not to throw any errors.
Actually got a <rlang_error> with message:
i In argument: `margin = sum(margin, na.rm = TRUE)`
Caused by error:
! Object `margin` not found.
── Failure ('test-retail-calendar.R:308:5'): retail calendar integration with ti functions / wowtd works with 445 calendar ──
Expected `{ ... }` not to throw any errors.
Actually got a <rlang_error> with message:
i In argument: `margin = sum(margin, na.rm = TRUE)`
Caused by error:
! Object `margin` not found.
── Failure ('test-retail-calendar.R:317:5'): retail calendar integration with ti functions / ytdopy works with 445 calendar ──
Expected `{ ... }` not to throw any errors.
Actually got a <rlang_error> with message:
i In argument: `margin = sum(margin, na.rm = TRUE)`
Caused by error:
! Object `margin` not found.
── Failure ('test-retail-calendar.R:327:5'): retail calendar integration with ti functions / qtdopq works with 445 calendar ──
Expected `{ ... }` not to throw any errors.
Actually got a <rlang_error> with message:
i In argument: `margin = sum(margin, na.rm = TRUE)`
Caused by error:
! Object `margin` not found.
── Failure ('test-retail-calendar.R:337:5'): retail calendar integration with ti functions / mtdopm works with 445 calendar ──
Expected `{ ... }` not to throw any errors.
Actually got a <rlang_error> with message:
i In argument: `margin = sum(margin, na.rm = TRUE)`
Caused by error:
! Object `margin` not found.
── Failure ('test-retail-calendar.R:347:5'): retail calendar integration with ti functions / wtdopw works with 445 calendar ──
Expected `{ ... }` not to throw any errors.
Actually got a <rlang_error> with message:
i In argument: `margin = sum(margin, na.rm = TRUE)`
Caused by error:
! Object `margin` not found.
── Failure ('test-retail-calendar.R:361:5'): 544 calendar integration / ytd works with 544 calendar ──
Expected `{ ... }` not to throw any errors.
Actually got a <rlang_error> with message:
i In argument: `margin = sum(margin, na.rm = TRUE)`
Caused by error:
! Object `margin` not found.
── Failure ('test-retail-calendar.R:371:5'): 544 calendar integration / qoq works with 544 calendar ──
Expected `{ ... }` not to throw any errors.
Actually got a <rlang_error> with message:
i In argument: `margin = sum(margin, na.rm = TRUE)`
Caused by error:
! Object `margin` not found.
── Failure ('test-retail-calendar.R:382:5'): 544 calendar integration / momtd works with 544 calendar ──
Expected `{ ... }` not to throw any errors.
Actually got a <rlang_error> with message:
i In argument: `margin = sum(margin, na.rm = TRUE)`
Caused by error:
! Object `margin` not found.
── Failure ('test-retail-calendar.R:392:5'): 544 calendar integration / wtdopw works with 544 calendar ──
Expected `{ ... }` not to throw any errors.
Actually got a <rlang_error> with message:
i In argument: `margin = sum(margin, na.rm = TRUE)`
Caused by error:
! Object `margin` not found.
── Failure ('test-retail-calendar.R:406:5'): fiscal_year_start variations / ytd works with fiscal_year_start = 7 ──
Expected `{ ... }` not to throw any errors.
Actually got a <rlang_error> with message:
i In argument: `margin = sum(margin, na.rm = TRUE)`
Caused by error:
! Object `margin` not found.
── Failure ('test-retail-calendar.R:416:5'): fiscal_year_start variations / qoq works with fiscal_year_start = 10 ──
Expected `{ ... }` not to throw any errors.
Actually got a <rlang_error> with message:
i In argument: `margin = sum(margin, na.rm = TRUE)`
Caused by error:
! Object `margin` not found.
── Failure ('test-retail-calendar.R:426:5'): fiscal_year_start variations / mtd works with fiscal_year_start = 4 ──
Expected `{ ... }` not to throw any errors.
Actually got a <rlang_error> with message:
i In argument: `margin = sum(margin, na.rm = TRUE)`
Caused by error:
! Object `margin` not found.
── Failure ('test-ti_fn.R:6:5'): ti functions / ytd works ──────────────────────
Expected `{ ... }` not to throw any errors.
Actually got a <rlang_error> with message:
i In argument: `margin = sum(margin, na.rm = TRUE)`
Caused by error:
! Object `margin` not found.
── Failure ('test-ti_fn.R:18:5'): ti functions / qtd works ─────────────────────
Expected `{ ... }` not to throw any errors.
Actually got a <rlang_error> with message:
i In argument: `margin = sum(margin, na.rm = TRUE)`
Caused by error:
! Object `margin` not found.
── Failure ('test-ti_fn.R:29:5'): ti functions / mtd works ─────────────────────
Expected `{ ... }` not to throw any errors.
Actually got a <rlang_error> with message:
i In argument: `margin = sum(margin, na.rm = TRUE)`
Caused by error:
! Object `margin` not found.
── Failure ('test-ti_fn.R:40:5'): ti functions / wtd works ─────────────────────
Expected `{ ... }` not to throw any errors.
Actually got a <rlang_error> with message:
i In argument: `margin = sum(margin, na.rm = TRUE)`
Caused by error:
! Object `margin` not found.
── Failure ('test-ti_fn.R:51:5'): ti functions / atd works ─────────────────────
Expected `{ ... }` not to throw any errors.
Actually got a <rlang_error> with message:
i In argument: `margin = sum(margin, na.rm = TRUE)`
Caused by error:
! Object `margin` not found.
── Failure ('test-ti_fn.R:63:5'): ti functions / yoy works ─────────────────────
Expected `{ ... }` not to throw any errors.
Actually got a <rlang_error> with message:
i In argument: `margin = sum(margin, na.rm = TRUE)`
Caused by error:
! Object `margin` not found.
── Failure ('test-ti_fn.R:75:5'): ti functions / qoq works ─────────────────────
Expected `{ ... }` not to throw any errors.
Actually got a <rlang_error> with message:
i In argument: `margin = sum(margin, na.rm = TRUE)`
Caused by error:
! Object `margin` not found.
── Failure ('test-ti_fn.R:86:5'): ti functions / mom works ─────────────────────
Expected `{ ... }` not to throw any errors.
Actually got a <rlang_error> with message:
i In argument: `margin = sum(margin, na.rm = TRUE)`
Caused by error:
! Object `margin` not found.
── Failure ('test-ti_fn.R:97:5'): ti functions / wow works ─────────────────────
Expected `{ ... }` not to throw any errors.
Actually got a <rlang_error> with message:
i In argument: `margin = sum(margin, na.rm = TRUE)`
Caused by error:
! Object `margin` not found.
── Failure ('test-ti_fn.R:108:5'): ti functions / dod works ────────────────────
Expected `{ ... }` not to throw any errors.
Actually got a <rlang_error> with message:
i In argument: `margin = sum(margin, na.rm = TRUE)`
Caused by error:
! Object `margin` not found.
── Failure ('test-ti_fn.R:119:5'): ti functions / yoytd works ──────────────────
Expected `{ ... }` not to throw any errors.
Actually got a <rlang_error> with message:
i In argument: `margin = sum(margin, na.rm = TRUE)`
Caused by error:
! Object `margin` not found.
── Failure ('test-ti_fn.R:131:5'): ti functions / qoqtd works ──────────────────
Expected `{ ... }` not to throw any errors.
Actually got a <rlang_error> with message:
i In argument: `margin = sum(margin, na.rm = TRUE)`
Caused by error:
! Object `margin` not found.
── Failure ('test-ti_fn.R:141:5'): ti functions / momtd works ──────────────────
Expected `{ ... }` not to throw any errors.
Actually got a <rlang_error> with message:
i In argument: `margin = sum(margin, na.rm = TRUE)`
Caused by error:
! Object `margin` not found.
── Failure ('test-ti_fn.R:151:5'): ti functions / wowtd works ──────────────────
Expected `{ ... }` not to throw any errors.
Actually got a <rlang_error> with message:
i In argument: `margin = sum(margin, na.rm = TRUE)`
Caused by error:
! Object `margin` not found.
── Failure ('test-ti_fn.R:159:5'): ti functions / pytd works ───────────────────
Expected `{ ... }` not to throw any errors.
Actually got a <rlang_error> with message:
i In argument: `margin = sum(margin, na.rm = TRUE)`
Caused by error:
! Object `margin` not found.
── Failure ('test-ti_fn.R:170:5'): ti functions / pqtd works ───────────────────
Expected `{ ... }` not to throw any errors.
Actually got a <rlang_error> with message:
i In argument: `margin = sum(margin, na.rm = TRUE)`
Caused by error:
! Object `margin` not found.
── Failure ('test-ti_fn.R:181:5'): ti functions / pmtd works ───────────────────
Expected `{ ... }` not to throw any errors.
Actually got a <rlang_error> with message:
i In argument: `margin = sum(margin, na.rm = TRUE)`
Caused by error:
! Object `margin` not found.
── Failure ('test-ti_fn.R:193:5'): ti functions / pwtd works ───────────────────
Expected `{ ... }` not to throw any errors.
Actually got a <rlang_error> with message:
i In argument: `margin = sum(margin, na.rm = TRUE)`
Caused by error:
! Object `margin` not found.
── Failure ('test-ti_fn.R:204:5'): ti functions / ytdopy works ─────────────────
Expected `{ ... }` not to throw any errors.
Actually got a <rlang_error> with message:
i In argument: `margin = sum(margin, na.rm = TRUE)`
Caused by error:
! Object `margin` not found.
── Failure ('test-ti_fn.R:215:5'): ti functions / mtdopm works ─────────────────
Expected `{ ... }` not to throw any errors.
Actually got a <rlang_error> with message:
i In argument: `margin = sum(margin, na.rm = TRUE)`
Caused by error:
! Object `margin` not found.
── Failure ('test-ti_fn.R:227:5'): ti functions / qtdopq works ─────────────────
Expected `{ ... }` not to throw any errors.
Actually got a <rlang_error> with message:
i In argument: `margin = sum(margin, na.rm = TRUE)`
Caused by error:
! Object `margin` not found.
── Failure ('test-ti_fn.R:237:5'): ti functions / wtdopw works ─────────────────
Expected `{ ... }` not to throw any errors.
Actually got a <rlang_error> with message:
i In argument: `margin = sum(margin, na.rm = TRUE)`
Caused by error:
! Object `margin` not found.
── Failure ('test-ti_fn.R:247:5'): ti functions / abc works ────────────────────
Expected `{ ... }` not to throw any errors.
Actually got a <rlang_error> with message:
i In argument: `abc_margin = sum(margin, na.rm = TRUE)`
Caused by error:
! Object `margin` not found.
── Failure ('test-ti_fn.R:256:5'): ti functions / cohort works ─────────────────
Expected `{ ... }` not to throw any errors.
Actually got a <rlang_error> with message:
i In argument: `margin`
Caused by error:
! Object `margin` not found.
[ FAIL 55 | WARN 0 | SKIP 0 | PASS 6 ]
Error:
! Test failures.
Execution halted
Flavor: r-devel-linux-x86_64-debian-gcc
Version: 4.0.0
Check: tests
Result: ERROR
Running ‘testthat.R’ [28s/60s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
> # This file is part of the standard setup for testthat.
> # It is recommended that you do not modify it.
> #
> # Where should you do additional test configuration?
> # Learn more about the roles of various files in:
> # * https://r-pkgs.org/testing-design.html#sec-tests-files-overview
> # * https://testthat.r-lib.org/articles/special-files.html
>
> library(testthat)
> library(ti)
>
> test_check("ti")
Saving _problems/test-retail-calendar-114.R
Saving _problems/test-retail-calendar-124.R
Saving _problems/test-retail-calendar-134.R
Saving _problems/test-retail-calendar-142.R
Saving _problems/test-retail-calendar-159.R
Saving _problems/test-retail-calendar-169.R
Saving _problems/test-retail-calendar-179.R
Saving _problems/test-retail-calendar-189.R
Saving _problems/test-retail-calendar-199.R
Saving _problems/test-retail-calendar-210.R
Saving _problems/test-retail-calendar-221.R
Saving _problems/test-retail-calendar-231.R
Saving _problems/test-retail-calendar-241.R
Saving _problems/test-retail-calendar-251.R
Saving _problems/test-retail-calendar-261.R
Saving _problems/test-retail-calendar-271.R
Saving _problems/test-retail-calendar-281.R
Saving _problems/test-retail-calendar-292.R
Saving _problems/test-retail-calendar-303.R
Saving _problems/test-retail-calendar-313.R
Saving _problems/test-retail-calendar-323.R
Saving _problems/test-retail-calendar-333.R
Saving _problems/test-retail-calendar-343.R
Saving _problems/test-retail-calendar-353.R
Saving _problems/test-retail-calendar-367.R
Saving _problems/test-retail-calendar-377.R
Saving _problems/test-retail-calendar-388.R
Saving _problems/test-retail-calendar-398.R
Saving _problems/test-retail-calendar-412.R
Saving _problems/test-retail-calendar-422.R
Saving _problems/test-retail-calendar-432.R
Saving _problems/test-ti_fn-14.R
Saving _problems/test-ti_fn-25.R
Saving _problems/test-ti_fn-36.R
Saving _problems/test-ti_fn-47.R
Saving _problems/test-ti_fn-59.R
Saving _problems/test-ti_fn-71.R
Saving _problems/test-ti_fn-82.R
Saving _problems/test-ti_fn-93.R
Saving _problems/test-ti_fn-104.R
Saving _problems/test-ti_fn-115.R
Saving _problems/test-ti_fn-127.R
Saving _problems/test-ti_fn-137.R
Saving _problems/test-ti_fn-147.R
Saving _problems/test-ti_fn-155.R
Saving _problems/test-ti_fn-166.R
Saving _problems/test-ti_fn-177.R
Saving _problems/test-ti_fn-189.R
Saving _problems/test-ti_fn-200.R
Saving _problems/test-ti_fn-211.R
Saving _problems/test-ti_fn-223.R
Saving _problems/test-ti_fn-233.R
Saving _problems/test-ti_fn-243.R
Saving _problems/test-ti_fn-252.R
Saving _problems/test-ti_fn-261.R
[ FAIL 55 | WARN 0 | SKIP 0 | PASS 6 ]
══ Failed tests ════════════════════════════════════════════════════════════════
── Failure ('test-retail-calendar.R:108:5'): retail calendar integration with ti functions / ytd works with 445 calendar ──
Expected `{ ... }` not to throw any errors.
Actually got a <rlang_error> with message:
i In argument: `margin = sum(margin, na.rm = TRUE)`
Caused by error:
! Object `margin` not found.
── Failure ('test-retail-calendar.R:118:5'): retail calendar integration with ti functions / qtd works with 445 calendar ──
Expected `{ ... }` not to throw any errors.
Actually got a <rlang_error> with message:
i In argument: `margin = sum(margin, na.rm = TRUE)`
Caused by error:
! Object `margin` not found.
── Failure ('test-retail-calendar.R:128:5'): retail calendar integration with ti functions / mtd works with 445 calendar ──
Expected `{ ... }` not to throw any errors.
Actually got a <rlang_error> with message:
i In argument: `margin = sum(margin, na.rm = TRUE)`
Caused by error:
! Object `margin` not found.
── Error ('test-retail-calendar.R:138:5'): retail calendar integration with ti functions / ytd with 445 returns fiscal year values ──
Error in `dplyr::summarise(dplyr::mutate(make_db_tbl(dplyr::ungroup(x@datum@data)), date = lubridate::floor_date(!!x@datum@date_quo, unit = !!x@time_unit@value, week_start = 7), time_unit = !!x@time_unit@value), `:=`(!!x@value@value_vec, sum(!!x@value@value_quo, na.rm = TRUE)), .by = c(date, !!!x@datum@group_quo))`: i In argument: `margin = sum(margin, na.rm = TRUE)`
Caused by error:
! Object `margin` not found.
── Failure ('test-retail-calendar.R:151:5'): retail calendar integration with ti functions / grouped ytd works with 454 calendar ──
Expected `{ ... }` not to throw any errors.
Actually got a <rlang_error> with message:
i In argument: `margin = sum(margin, na.rm = TRUE)`
Caused by error:
! Object `margin` not found.
── Failure ('test-retail-calendar.R:163:5'): retail calendar integration with ti functions / wtd works with 445 calendar ──
Expected `{ ... }` not to throw any errors.
Actually got a <rlang_error> with message:
i In argument: `margin = sum(margin, na.rm = TRUE)`
Caused by error:
! Object `margin` not found.
── Failure ('test-retail-calendar.R:173:5'): retail calendar integration with ti functions / atd works with 445 calendar ──
Expected `{ ... }` not to throw any errors.
Actually got a <rlang_error> with message:
i In argument: `margin = sum(margin, na.rm = TRUE)`
Caused by error:
! Object `margin` not found.
── Failure ('test-retail-calendar.R:183:5'): retail calendar integration with ti functions / pytd works with 445 calendar ──
Expected `{ ... }` not to throw any errors.
Actually got a <rlang_error> with message:
i In argument: `margin = sum(margin, na.rm = TRUE)`
Caused by error:
! Object `margin` not found.
── Failure ('test-retail-calendar.R:193:5'): retail calendar integration with ti functions / pqtd works with 445 calendar ──
Expected `{ ... }` not to throw any errors.
Actually got a <rlang_error> with message:
i In argument: `margin = sum(margin, na.rm = TRUE)`
Caused by error:
! Object `margin` not found.
── Failure ('test-retail-calendar.R:204:5'): retail calendar integration with ti functions / pmtd works with 445 calendar ──
Expected `{ ... }` not to throw any errors.
Actually got a <rlang_error> with message:
i In argument: `margin = sum(margin, na.rm = TRUE)`
Caused by error:
! Object `margin` not found.
── Failure ('test-retail-calendar.R:215:5'): retail calendar integration with ti functions / pwtd works with 445 calendar ──
Expected `{ ... }` not to throw any errors.
Actually got a <rlang_error> with message:
i In argument: `margin = sum(margin, na.rm = TRUE)`
Caused by error:
! Object `margin` not found.
── Failure ('test-retail-calendar.R:225:5'): retail calendar integration with ti functions / yoy works with 445 calendar ──
Expected `{ ... }` not to throw any errors.
Actually got a <rlang_error> with message:
i In argument: `margin = sum(margin, na.rm = TRUE)`
Caused by error:
! Object `margin` not found.
── Failure ('test-retail-calendar.R:235:5'): retail calendar integration with ti functions / qoq works with 445 calendar ──
Expected `{ ... }` not to throw any errors.
Actually got a <rlang_error> with message:
i In argument: `margin = sum(margin, na.rm = TRUE)`
Caused by error:
! Object `margin` not found.
── Failure ('test-retail-calendar.R:245:5'): retail calendar integration with ti functions / mom works with 445 calendar ──
Expected `{ ... }` not to throw any errors.
Actually got a <rlang_error> with message:
i In argument: `margin = sum(margin, na.rm = TRUE)`
Caused by error:
! Object `margin` not found.
── Failure ('test-retail-calendar.R:255:5'): retail calendar integration with ti functions / wow works with 445 calendar ──
Expected `{ ... }` not to throw any errors.
Actually got a <rlang_error> with message:
i In argument: `margin = sum(margin, na.rm = TRUE)`
Caused by error:
! Object `margin` not found.
── Failure ('test-retail-calendar.R:265:5'): retail calendar integration with ti functions / dod works with 445 calendar ──
Expected `{ ... }` not to throw any errors.
Actually got a <rlang_error> with message:
i In argument: `margin = sum(margin, na.rm = TRUE)`
Caused by error:
! Object `margin` not found.
── Failure ('test-retail-calendar.R:275:5'): retail calendar integration with ti functions / yoytd works with 445 calendar ──
Expected `{ ... }` not to throw any errors.
Actually got a <rlang_error> with message:
i In argument: `margin = sum(margin, na.rm = TRUE)`
Caused by error:
! Object `margin` not found.
── Failure ('test-retail-calendar.R:286:5'): retail calendar integration with ti functions / qoqtd works with 445 calendar ──
Expected `{ ... }` not to throw any errors.
Actually got a <rlang_error> with message:
i In argument: `margin = sum(margin, na.rm = TRUE)`
Caused by error:
! Object `margin` not found.
── Failure ('test-retail-calendar.R:297:5'): retail calendar integration with ti functions / momtd works with 445 calendar ──
Expected `{ ... }` not to throw any errors.
Actually got a <rlang_error> with message:
i In argument: `margin = sum(margin, na.rm = TRUE)`
Caused by error:
! Object `margin` not found.
── Failure ('test-retail-calendar.R:308:5'): retail calendar integration with ti functions / wowtd works with 445 calendar ──
Expected `{ ... }` not to throw any errors.
Actually got a <rlang_error> with message:
i In argument: `margin = sum(margin, na.rm = TRUE)`
Caused by error:
! Object `margin` not found.
── Failure ('test-retail-calendar.R:317:5'): retail calendar integration with ti functions / ytdopy works with 445 calendar ──
Expected `{ ... }` not to throw any errors.
Actually got a <rlang_error> with message:
i In argument: `margin = sum(margin, na.rm = TRUE)`
Caused by error:
! Object `margin` not found.
── Failure ('test-retail-calendar.R:327:5'): retail calendar integration with ti functions / qtdopq works with 445 calendar ──
Expected `{ ... }` not to throw any errors.
Actually got a <rlang_error> with message:
i In argument: `margin = sum(margin, na.rm = TRUE)`
Caused by error:
! Object `margin` not found.
── Failure ('test-retail-calendar.R:337:5'): retail calendar integration with ti functions / mtdopm works with 445 calendar ──
Expected `{ ... }` not to throw any errors.
Actually got a <rlang_error> with message:
i In argument: `margin = sum(margin, na.rm = TRUE)`
Caused by error:
! Object `margin` not found.
── Failure ('test-retail-calendar.R:347:5'): retail calendar integration with ti functions / wtdopw works with 445 calendar ──
Expected `{ ... }` not to throw any errors.
Actually got a <rlang_error> with message:
i In argument: `margin = sum(margin, na.rm = TRUE)`
Caused by error:
! Object `margin` not found.
── Failure ('test-retail-calendar.R:361:5'): 544 calendar integration / ytd works with 544 calendar ──
Expected `{ ... }` not to throw any errors.
Actually got a <rlang_error> with message:
i In argument: `margin = sum(margin, na.rm = TRUE)`
Caused by error:
! Object `margin` not found.
── Failure ('test-retail-calendar.R:371:5'): 544 calendar integration / qoq works with 544 calendar ──
Expected `{ ... }` not to throw any errors.
Actually got a <rlang_error> with message:
i In argument: `margin = sum(margin, na.rm = TRUE)`
Caused by error:
! Object `margin` not found.
── Failure ('test-retail-calendar.R:382:5'): 544 calendar integration / momtd works with 544 calendar ──
Expected `{ ... }` not to throw any errors.
Actually got a <rlang_error> with message:
i In argument: `margin = sum(margin, na.rm = TRUE)`
Caused by error:
! Object `margin` not found.
── Failure ('test-retail-calendar.R:392:5'): 544 calendar integration / wtdopw works with 544 calendar ──
Expected `{ ... }` not to throw any errors.
Actually got a <rlang_error> with message:
i In argument: `margin = sum(margin, na.rm = TRUE)`
Caused by error:
! Object `margin` not found.
── Failure ('test-retail-calendar.R:406:5'): fiscal_year_start variations / ytd works with fiscal_year_start = 7 ──
Expected `{ ... }` not to throw any errors.
Actually got a <rlang_error> with message:
i In argument: `margin = sum(margin, na.rm = TRUE)`
Caused by error:
! Object `margin` not found.
── Failure ('test-retail-calendar.R:416:5'): fiscal_year_start variations / qoq works with fiscal_year_start = 10 ──
Expected `{ ... }` not to throw any errors.
Actually got a <rlang_error> with message:
i In argument: `margin = sum(margin, na.rm = TRUE)`
Caused by error:
! Object `margin` not found.
── Failure ('test-retail-calendar.R:426:5'): fiscal_year_start variations / mtd works with fiscal_year_start = 4 ──
Expected `{ ... }` not to throw any errors.
Actually got a <rlang_error> with message:
i In argument: `margin = sum(margin, na.rm = TRUE)`
Caused by error:
! Object `margin` not found.
── Failure ('test-ti_fn.R:6:5'): ti functions / ytd works ──────────────────────
Expected `{ ... }` not to throw any errors.
Actually got a <rlang_error> with message:
i In argument: `margin = sum(margin, na.rm = TRUE)`
Caused by error:
! Object `margin` not found.
── Failure ('test-ti_fn.R:18:5'): ti functions / qtd works ─────────────────────
Expected `{ ... }` not to throw any errors.
Actually got a <rlang_error> with message:
i In argument: `margin = sum(margin, na.rm = TRUE)`
Caused by error:
! Object `margin` not found.
── Failure ('test-ti_fn.R:29:5'): ti functions / mtd works ─────────────────────
Expected `{ ... }` not to throw any errors.
Actually got a <rlang_error> with message:
i In argument: `margin = sum(margin, na.rm = TRUE)`
Caused by error:
! Object `margin` not found.
── Failure ('test-ti_fn.R:40:5'): ti functions / wtd works ─────────────────────
Expected `{ ... }` not to throw any errors.
Actually got a <rlang_error> with message:
i In argument: `margin = sum(margin, na.rm = TRUE)`
Caused by error:
! Object `margin` not found.
── Failure ('test-ti_fn.R:51:5'): ti functions / atd works ─────────────────────
Expected `{ ... }` not to throw any errors.
Actually got a <rlang_error> with message:
i In argument: `margin = sum(margin, na.rm = TRUE)`
Caused by error:
! Object `margin` not found.
── Failure ('test-ti_fn.R:63:5'): ti functions / yoy works ─────────────────────
Expected `{ ... }` not to throw any errors.
Actually got a <rlang_error> with message:
i In argument: `margin = sum(margin, na.rm = TRUE)`
Caused by error:
! Object `margin` not found.
── Failure ('test-ti_fn.R:75:5'): ti functions / qoq works ─────────────────────
Expected `{ ... }` not to throw any errors.
Actually got a <rlang_error> with message:
i In argument: `margin = sum(margin, na.rm = TRUE)`
Caused by error:
! Object `margin` not found.
── Failure ('test-ti_fn.R:86:5'): ti functions / mom works ─────────────────────
Expected `{ ... }` not to throw any errors.
Actually got a <rlang_error> with message:
i In argument: `margin = sum(margin, na.rm = TRUE)`
Caused by error:
! Object `margin` not found.
── Failure ('test-ti_fn.R:97:5'): ti functions / wow works ─────────────────────
Expected `{ ... }` not to throw any errors.
Actually got a <rlang_error> with message:
i In argument: `margin = sum(margin, na.rm = TRUE)`
Caused by error:
! Object `margin` not found.
── Failure ('test-ti_fn.R:108:5'): ti functions / dod works ────────────────────
Expected `{ ... }` not to throw any errors.
Actually got a <rlang_error> with message:
i In argument: `margin = sum(margin, na.rm = TRUE)`
Caused by error:
! Object `margin` not found.
── Failure ('test-ti_fn.R:119:5'): ti functions / yoytd works ──────────────────
Expected `{ ... }` not to throw any errors.
Actually got a <rlang_error> with message:
i In argument: `margin = sum(margin, na.rm = TRUE)`
Caused by error:
! Object `margin` not found.
── Failure ('test-ti_fn.R:131:5'): ti functions / qoqtd works ──────────────────
Expected `{ ... }` not to throw any errors.
Actually got a <rlang_error> with message:
i In argument: `margin = sum(margin, na.rm = TRUE)`
Caused by error:
! Object `margin` not found.
── Failure ('test-ti_fn.R:141:5'): ti functions / momtd works ──────────────────
Expected `{ ... }` not to throw any errors.
Actually got a <rlang_error> with message:
i In argument: `margin = sum(margin, na.rm = TRUE)`
Caused by error:
! Object `margin` not found.
── Failure ('test-ti_fn.R:151:5'): ti functions / wowtd works ──────────────────
Expected `{ ... }` not to throw any errors.
Actually got a <rlang_error> with message:
i In argument: `margin = sum(margin, na.rm = TRUE)`
Caused by error:
! Object `margin` not found.
── Failure ('test-ti_fn.R:159:5'): ti functions / pytd works ───────────────────
Expected `{ ... }` not to throw any errors.
Actually got a <rlang_error> with message:
i In argument: `margin = sum(margin, na.rm = TRUE)`
Caused by error:
! Object `margin` not found.
── Failure ('test-ti_fn.R:170:5'): ti functions / pqtd works ───────────────────
Expected `{ ... }` not to throw any errors.
Actually got a <rlang_error> with message:
i In argument: `margin = sum(margin, na.rm = TRUE)`
Caused by error:
! Object `margin` not found.
── Failure ('test-ti_fn.R:181:5'): ti functions / pmtd works ───────────────────
Expected `{ ... }` not to throw any errors.
Actually got a <rlang_error> with message:
i In argument: `margin = sum(margin, na.rm = TRUE)`
Caused by error:
! Object `margin` not found.
── Failure ('test-ti_fn.R:193:5'): ti functions / pwtd works ───────────────────
Expected `{ ... }` not to throw any errors.
Actually got a <rlang_error> with message:
i In argument: `margin = sum(margin, na.rm = TRUE)`
Caused by error:
! Object `margin` not found.
── Failure ('test-ti_fn.R:204:5'): ti functions / ytdopy works ─────────────────
Expected `{ ... }` not to throw any errors.
Actually got a <rlang_error> with message:
i In argument: `margin = sum(margin, na.rm = TRUE)`
Caused by error:
! Object `margin` not found.
── Failure ('test-ti_fn.R:215:5'): ti functions / mtdopm works ─────────────────
Expected `{ ... }` not to throw any errors.
Actually got a <rlang_error> with message:
i In argument: `margin = sum(margin, na.rm = TRUE)`
Caused by error:
! Object `margin` not found.
── Failure ('test-ti_fn.R:227:5'): ti functions / qtdopq works ─────────────────
Expected `{ ... }` not to throw any errors.
Actually got a <rlang_error> with message:
i In argument: `margin = sum(margin, na.rm = TRUE)`
Caused by error:
! Object `margin` not found.
── Failure ('test-ti_fn.R:237:5'): ti functions / wtdopw works ─────────────────
Expected `{ ... }` not to throw any errors.
Actually got a <rlang_error> with message:
i In argument: `margin = sum(margin, na.rm = TRUE)`
Caused by error:
! Object `margin` not found.
── Failure ('test-ti_fn.R:247:5'): ti functions / abc works ────────────────────
Expected `{ ... }` not to throw any errors.
Actually got a <rlang_error> with message:
i In argument: `abc_margin = sum(margin, na.rm = TRUE)`
Caused by error:
! Object `margin` not found.
── Failure ('test-ti_fn.R:256:5'): ti functions / cohort works ─────────────────
Expected `{ ... }` not to throw any errors.
Actually got a <rlang_error> with message:
i In argument: `margin`
Caused by error:
! Object `margin` not found.
[ FAIL 55 | WARN 0 | SKIP 0 | PASS 6 ]
Error:
! Test failures.
Execution halted
Flavor: r-devel-linux-x86_64-fedora-clang
Version: 4.0.0
Check: tests
Result: ERROR
Running ‘testthat.R’ [34s/35s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
> # This file is part of the standard setup for testthat.
> # It is recommended that you do not modify it.
> #
> # Where should you do additional test configuration?
> # Learn more about the roles of various files in:
> # * https://r-pkgs.org/testing-design.html#sec-tests-files-overview
> # * https://testthat.r-lib.org/articles/special-files.html
>
> library(testthat)
> library(ti)
>
> test_check("ti")
Saving _problems/test-retail-calendar-114.R
Saving _problems/test-retail-calendar-124.R
Saving _problems/test-retail-calendar-134.R
Saving _problems/test-retail-calendar-142.R
Saving _problems/test-retail-calendar-159.R
Saving _problems/test-retail-calendar-169.R
Saving _problems/test-retail-calendar-179.R
Saving _problems/test-retail-calendar-189.R
Saving _problems/test-retail-calendar-199.R
Saving _problems/test-retail-calendar-210.R
Saving _problems/test-retail-calendar-221.R
Saving _problems/test-retail-calendar-231.R
Saving _problems/test-retail-calendar-241.R
Saving _problems/test-retail-calendar-251.R
Saving _problems/test-retail-calendar-261.R
Saving _problems/test-retail-calendar-271.R
Saving _problems/test-retail-calendar-281.R
Saving _problems/test-retail-calendar-292.R
Saving _problems/test-retail-calendar-303.R
Saving _problems/test-retail-calendar-313.R
Saving _problems/test-retail-calendar-323.R
Saving _problems/test-retail-calendar-333.R
Saving _problems/test-retail-calendar-343.R
Saving _problems/test-retail-calendar-353.R
Saving _problems/test-retail-calendar-367.R
Saving _problems/test-retail-calendar-377.R
Saving _problems/test-retail-calendar-388.R
Saving _problems/test-retail-calendar-398.R
Saving _problems/test-retail-calendar-412.R
Saving _problems/test-retail-calendar-422.R
Saving _problems/test-retail-calendar-432.R
Saving _problems/test-ti_fn-14.R
Saving _problems/test-ti_fn-25.R
Saving _problems/test-ti_fn-36.R
Saving _problems/test-ti_fn-47.R
Saving _problems/test-ti_fn-59.R
Saving _problems/test-ti_fn-71.R
Saving _problems/test-ti_fn-82.R
Saving _problems/test-ti_fn-93.R
Saving _problems/test-ti_fn-104.R
Saving _problems/test-ti_fn-115.R
Saving _problems/test-ti_fn-127.R
Saving _problems/test-ti_fn-137.R
Saving _problems/test-ti_fn-147.R
Saving _problems/test-ti_fn-155.R
Saving _problems/test-ti_fn-166.R
Saving _problems/test-ti_fn-177.R
Saving _problems/test-ti_fn-189.R
Saving _problems/test-ti_fn-200.R
Saving _problems/test-ti_fn-211.R
Saving _problems/test-ti_fn-223.R
Saving _problems/test-ti_fn-233.R
Saving _problems/test-ti_fn-243.R
Saving _problems/test-ti_fn-252.R
Saving _problems/test-ti_fn-261.R
[ FAIL 55 | WARN 0 | SKIP 0 | PASS 6 ]
══ Failed tests ════════════════════════════════════════════════════════════════
── Failure ('test-retail-calendar.R:108:5'): retail calendar integration with ti functions / ytd works with 445 calendar ──
Expected `{ ... }` not to throw any errors.
Actually got a <rlang_error> with message:
i In argument: `margin = sum(margin, na.rm = TRUE)`
Caused by error:
! Object `margin` not found.
── Failure ('test-retail-calendar.R:118:5'): retail calendar integration with ti functions / qtd works with 445 calendar ──
Expected `{ ... }` not to throw any errors.
Actually got a <rlang_error> with message:
i In argument: `margin = sum(margin, na.rm = TRUE)`
Caused by error:
! Object `margin` not found.
── Failure ('test-retail-calendar.R:128:5'): retail calendar integration with ti functions / mtd works with 445 calendar ──
Expected `{ ... }` not to throw any errors.
Actually got a <rlang_error> with message:
i In argument: `margin = sum(margin, na.rm = TRUE)`
Caused by error:
! Object `margin` not found.
── Error ('test-retail-calendar.R:138:5'): retail calendar integration with ti functions / ytd with 445 returns fiscal year values ──
Error in `dplyr::summarise(dplyr::mutate(make_db_tbl(dplyr::ungroup(x@datum@data)), date = lubridate::floor_date(!!x@datum@date_quo, unit = !!x@time_unit@value, week_start = 7), time_unit = !!x@time_unit@value), `:=`(!!x@value@value_vec, sum(!!x@value@value_quo, na.rm = TRUE)), .by = c(date, !!!x@datum@group_quo))`: i In argument: `margin = sum(margin, na.rm = TRUE)`
Caused by error:
! Object `margin` not found.
── Failure ('test-retail-calendar.R:151:5'): retail calendar integration with ti functions / grouped ytd works with 454 calendar ──
Expected `{ ... }` not to throw any errors.
Actually got a <rlang_error> with message:
i In argument: `margin = sum(margin, na.rm = TRUE)`
Caused by error:
! Object `margin` not found.
── Failure ('test-retail-calendar.R:163:5'): retail calendar integration with ti functions / wtd works with 445 calendar ──
Expected `{ ... }` not to throw any errors.
Actually got a <rlang_error> with message:
i In argument: `margin = sum(margin, na.rm = TRUE)`
Caused by error:
! Object `margin` not found.
── Failure ('test-retail-calendar.R:173:5'): retail calendar integration with ti functions / atd works with 445 calendar ──
Expected `{ ... }` not to throw any errors.
Actually got a <rlang_error> with message:
i In argument: `margin = sum(margin, na.rm = TRUE)`
Caused by error:
! Object `margin` not found.
── Failure ('test-retail-calendar.R:183:5'): retail calendar integration with ti functions / pytd works with 445 calendar ──
Expected `{ ... }` not to throw any errors.
Actually got a <rlang_error> with message:
i In argument: `margin = sum(margin, na.rm = TRUE)`
Caused by error:
! Object `margin` not found.
── Failure ('test-retail-calendar.R:193:5'): retail calendar integration with ti functions / pqtd works with 445 calendar ──
Expected `{ ... }` not to throw any errors.
Actually got a <rlang_error> with message:
i In argument: `margin = sum(margin, na.rm = TRUE)`
Caused by error:
! Object `margin` not found.
── Failure ('test-retail-calendar.R:204:5'): retail calendar integration with ti functions / pmtd works with 445 calendar ──
Expected `{ ... }` not to throw any errors.
Actually got a <rlang_error> with message:
i In argument: `margin = sum(margin, na.rm = TRUE)`
Caused by error:
! Object `margin` not found.
── Failure ('test-retail-calendar.R:215:5'): retail calendar integration with ti functions / pwtd works with 445 calendar ──
Expected `{ ... }` not to throw any errors.
Actually got a <rlang_error> with message:
i In argument: `margin = sum(margin, na.rm = TRUE)`
Caused by error:
! Object `margin` not found.
── Failure ('test-retail-calendar.R:225:5'): retail calendar integration with ti functions / yoy works with 445 calendar ──
Expected `{ ... }` not to throw any errors.
Actually got a <rlang_error> with message:
i In argument: `margin = sum(margin, na.rm = TRUE)`
Caused by error:
! Object `margin` not found.
── Failure ('test-retail-calendar.R:235:5'): retail calendar integration with ti functions / qoq works with 445 calendar ──
Expected `{ ... }` not to throw any errors.
Actually got a <rlang_error> with message:
i In argument: `margin = sum(margin, na.rm = TRUE)`
Caused by error:
! Object `margin` not found.
── Failure ('test-retail-calendar.R:245:5'): retail calendar integration with ti functions / mom works with 445 calendar ──
Expected `{ ... }` not to throw any errors.
Actually got a <rlang_error> with message:
i In argument: `margin = sum(margin, na.rm = TRUE)`
Caused by error:
! Object `margin` not found.
── Failure ('test-retail-calendar.R:255:5'): retail calendar integration with ti functions / wow works with 445 calendar ──
Expected `{ ... }` not to throw any errors.
Actually got a <rlang_error> with message:
i In argument: `margin = sum(margin, na.rm = TRUE)`
Caused by error:
! Object `margin` not found.
── Failure ('test-retail-calendar.R:265:5'): retail calendar integration with ti functions / dod works with 445 calendar ──
Expected `{ ... }` not to throw any errors.
Actually got a <rlang_error> with message:
i In argument: `margin = sum(margin, na.rm = TRUE)`
Caused by error:
! Object `margin` not found.
── Failure ('test-retail-calendar.R:275:5'): retail calendar integration with ti functions / yoytd works with 445 calendar ──
Expected `{ ... }` not to throw any errors.
Actually got a <rlang_error> with message:
i In argument: `margin = sum(margin, na.rm = TRUE)`
Caused by error:
! Object `margin` not found.
── Failure ('test-retail-calendar.R:286:5'): retail calendar integration with ti functions / qoqtd works with 445 calendar ──
Expected `{ ... }` not to throw any errors.
Actually got a <rlang_error> with message:
i In argument: `margin = sum(margin, na.rm = TRUE)`
Caused by error:
! Object `margin` not found.
── Failure ('test-retail-calendar.R:297:5'): retail calendar integration with ti functions / momtd works with 445 calendar ──
Expected `{ ... }` not to throw any errors.
Actually got a <rlang_error> with message:
i In argument: `margin = sum(margin, na.rm = TRUE)`
Caused by error:
! Object `margin` not found.
── Failure ('test-retail-calendar.R:308:5'): retail calendar integration with ti functions / wowtd works with 445 calendar ──
Expected `{ ... }` not to throw any errors.
Actually got a <rlang_error> with message:
i In argument: `margin = sum(margin, na.rm = TRUE)`
Caused by error:
! Object `margin` not found.
── Failure ('test-retail-calendar.R:317:5'): retail calendar integration with ti functions / ytdopy works with 445 calendar ──
Expected `{ ... }` not to throw any errors.
Actually got a <rlang_error> with message:
i In argument: `margin = sum(margin, na.rm = TRUE)`
Caused by error:
! Object `margin` not found.
── Failure ('test-retail-calendar.R:327:5'): retail calendar integration with ti functions / qtdopq works with 445 calendar ──
Expected `{ ... }` not to throw any errors.
Actually got a <rlang_error> with message:
i In argument: `margin = sum(margin, na.rm = TRUE)`
Caused by error:
! Object `margin` not found.
── Failure ('test-retail-calendar.R:337:5'): retail calendar integration with ti functions / mtdopm works with 445 calendar ──
Expected `{ ... }` not to throw any errors.
Actually got a <rlang_error> with message:
i In argument: `margin = sum(margin, na.rm = TRUE)`
Caused by error:
! Object `margin` not found.
── Failure ('test-retail-calendar.R:347:5'): retail calendar integration with ti functions / wtdopw works with 445 calendar ──
Expected `{ ... }` not to throw any errors.
Actually got a <rlang_error> with message:
i In argument: `margin = sum(margin, na.rm = TRUE)`
Caused by error:
! Object `margin` not found.
── Failure ('test-retail-calendar.R:361:5'): 544 calendar integration / ytd works with 544 calendar ──
Expected `{ ... }` not to throw any errors.
Actually got a <rlang_error> with message:
i In argument: `margin = sum(margin, na.rm = TRUE)`
Caused by error:
! Object `margin` not found.
── Failure ('test-retail-calendar.R:371:5'): 544 calendar integration / qoq works with 544 calendar ──
Expected `{ ... }` not to throw any errors.
Actually got a <rlang_error> with message:
i In argument: `margin = sum(margin, na.rm = TRUE)`
Caused by error:
! Object `margin` not found.
── Failure ('test-retail-calendar.R:382:5'): 544 calendar integration / momtd works with 544 calendar ──
Expected `{ ... }` not to throw any errors.
Actually got a <rlang_error> with message:
i In argument: `margin = sum(margin, na.rm = TRUE)`
Caused by error:
! Object `margin` not found.
── Failure ('test-retail-calendar.R:392:5'): 544 calendar integration / wtdopw works with 544 calendar ──
Expected `{ ... }` not to throw any errors.
Actually got a <rlang_error> with message:
i In argument: `margin = sum(margin, na.rm = TRUE)`
Caused by error:
! Object `margin` not found.
── Failure ('test-retail-calendar.R:406:5'): fiscal_year_start variations / ytd works with fiscal_year_start = 7 ──
Expected `{ ... }` not to throw any errors.
Actually got a <rlang_error> with message:
i In argument: `margin = sum(margin, na.rm = TRUE)`
Caused by error:
! Object `margin` not found.
── Failure ('test-retail-calendar.R:416:5'): fiscal_year_start variations / qoq works with fiscal_year_start = 10 ──
Expected `{ ... }` not to throw any errors.
Actually got a <rlang_error> with message:
i In argument: `margin = sum(margin, na.rm = TRUE)`
Caused by error:
! Object `margin` not found.
── Failure ('test-retail-calendar.R:426:5'): fiscal_year_start variations / mtd works with fiscal_year_start = 4 ──
Expected `{ ... }` not to throw any errors.
Actually got a <rlang_error> with message:
i In argument: `margin = sum(margin, na.rm = TRUE)`
Caused by error:
! Object `margin` not found.
── Failure ('test-ti_fn.R:6:5'): ti functions / ytd works ──────────────────────
Expected `{ ... }` not to throw any errors.
Actually got a <rlang_error> with message:
i In argument: `margin = sum(margin, na.rm = TRUE)`
Caused by error:
! Object `margin` not found.
── Failure ('test-ti_fn.R:18:5'): ti functions / qtd works ─────────────────────
Expected `{ ... }` not to throw any errors.
Actually got a <rlang_error> with message:
i In argument: `margin = sum(margin, na.rm = TRUE)`
Caused by error:
! Object `margin` not found.
── Failure ('test-ti_fn.R:29:5'): ti functions / mtd works ─────────────────────
Expected `{ ... }` not to throw any errors.
Actually got a <rlang_error> with message:
i In argument: `margin = sum(margin, na.rm = TRUE)`
Caused by error:
! Object `margin` not found.
── Failure ('test-ti_fn.R:40:5'): ti functions / wtd works ─────────────────────
Expected `{ ... }` not to throw any errors.
Actually got a <rlang_error> with message:
i In argument: `margin = sum(margin, na.rm = TRUE)`
Caused by error:
! Object `margin` not found.
── Failure ('test-ti_fn.R:51:5'): ti functions / atd works ─────────────────────
Expected `{ ... }` not to throw any errors.
Actually got a <rlang_error> with message:
i In argument: `margin = sum(margin, na.rm = TRUE)`
Caused by error:
! Object `margin` not found.
── Failure ('test-ti_fn.R:63:5'): ti functions / yoy works ─────────────────────
Expected `{ ... }` not to throw any errors.
Actually got a <rlang_error> with message:
i In argument: `margin = sum(margin, na.rm = TRUE)`
Caused by error:
! Object `margin` not found.
── Failure ('test-ti_fn.R:75:5'): ti functions / qoq works ─────────────────────
Expected `{ ... }` not to throw any errors.
Actually got a <rlang_error> with message:
i In argument: `margin = sum(margin, na.rm = TRUE)`
Caused by error:
! Object `margin` not found.
── Failure ('test-ti_fn.R:86:5'): ti functions / mom works ─────────────────────
Expected `{ ... }` not to throw any errors.
Actually got a <rlang_error> with message:
i In argument: `margin = sum(margin, na.rm = TRUE)`
Caused by error:
! Object `margin` not found.
── Failure ('test-ti_fn.R:97:5'): ti functions / wow works ─────────────────────
Expected `{ ... }` not to throw any errors.
Actually got a <rlang_error> with message:
i In argument: `margin = sum(margin, na.rm = TRUE)`
Caused by error:
! Object `margin` not found.
── Failure ('test-ti_fn.R:108:5'): ti functions / dod works ────────────────────
Expected `{ ... }` not to throw any errors.
Actually got a <rlang_error> with message:
i In argument: `margin = sum(margin, na.rm = TRUE)`
Caused by error:
! Object `margin` not found.
── Failure ('test-ti_fn.R:119:5'): ti functions / yoytd works ──────────────────
Expected `{ ... }` not to throw any errors.
Actually got a <rlang_error> with message:
i In argument: `margin = sum(margin, na.rm = TRUE)`
Caused by error:
! Object `margin` not found.
── Failure ('test-ti_fn.R:131:5'): ti functions / qoqtd works ──────────────────
Expected `{ ... }` not to throw any errors.
Actually got a <rlang_error> with message:
i In argument: `margin = sum(margin, na.rm = TRUE)`
Caused by error:
! Object `margin` not found.
── Failure ('test-ti_fn.R:141:5'): ti functions / momtd works ──────────────────
Expected `{ ... }` not to throw any errors.
Actually got a <rlang_error> with message:
i In argument: `margin = sum(margin, na.rm = TRUE)`
Caused by error:
! Object `margin` not found.
── Failure ('test-ti_fn.R:151:5'): ti functions / wowtd works ──────────────────
Expected `{ ... }` not to throw any errors.
Actually got a <rlang_error> with message:
i In argument: `margin = sum(margin, na.rm = TRUE)`
Caused by error:
! Object `margin` not found.
── Failure ('test-ti_fn.R:159:5'): ti functions / pytd works ───────────────────
Expected `{ ... }` not to throw any errors.
Actually got a <rlang_error> with message:
i In argument: `margin = sum(margin, na.rm = TRUE)`
Caused by error:
! Object `margin` not found.
── Failure ('test-ti_fn.R:170:5'): ti functions / pqtd works ───────────────────
Expected `{ ... }` not to throw any errors.
Actually got a <rlang_error> with message:
i In argument: `margin = sum(margin, na.rm = TRUE)`
Caused by error:
! Object `margin` not found.
── Failure ('test-ti_fn.R:181:5'): ti functions / pmtd works ───────────────────
Expected `{ ... }` not to throw any errors.
Actually got a <rlang_error> with message:
i In argument: `margin = sum(margin, na.rm = TRUE)`
Caused by error:
! Object `margin` not found.
── Failure ('test-ti_fn.R:193:5'): ti functions / pwtd works ───────────────────
Expected `{ ... }` not to throw any errors.
Actually got a <rlang_error> with message:
i In argument: `margin = sum(margin, na.rm = TRUE)`
Caused by error:
! Object `margin` not found.
── Failure ('test-ti_fn.R:204:5'): ti functions / ytdopy works ─────────────────
Expected `{ ... }` not to throw any errors.
Actually got a <rlang_error> with message:
i In argument: `margin = sum(margin, na.rm = TRUE)`
Caused by error:
! Object `margin` not found.
── Failure ('test-ti_fn.R:215:5'): ti functions / mtdopm works ─────────────────
Expected `{ ... }` not to throw any errors.
Actually got a <rlang_error> with message:
i In argument: `margin = sum(margin, na.rm = TRUE)`
Caused by error:
! Object `margin` not found.
── Failure ('test-ti_fn.R:227:5'): ti functions / qtdopq works ─────────────────
Expected `{ ... }` not to throw any errors.
Actually got a <rlang_error> with message:
i In argument: `margin = sum(margin, na.rm = TRUE)`
Caused by error:
! Object `margin` not found.
── Failure ('test-ti_fn.R:237:5'): ti functions / wtdopw works ─────────────────
Expected `{ ... }` not to throw any errors.
Actually got a <rlang_error> with message:
i In argument: `margin = sum(margin, na.rm = TRUE)`
Caused by error:
! Object `margin` not found.
── Failure ('test-ti_fn.R:247:5'): ti functions / abc works ────────────────────
Expected `{ ... }` not to throw any errors.
Actually got a <rlang_error> with message:
i In argument: `abc_margin = sum(margin, na.rm = TRUE)`
Caused by error:
! Object `margin` not found.
── Failure ('test-ti_fn.R:256:5'): ti functions / cohort works ─────────────────
Expected `{ ... }` not to throw any errors.
Actually got a <rlang_error> with message:
i In argument: `margin`
Caused by error:
! Object `margin` not found.
[ FAIL 55 | WARN 0 | SKIP 0 | PASS 6 ]
Error:
! Test failures.
Execution halted
Flavor: r-devel-linux-x86_64-fedora-gcc
Version: 4.0.0
Check: tests
Result: ERROR
Running 'testthat.R' [20s]
Running the tests in 'tests/testthat.R' failed.
Complete output:
> # This file is part of the standard setup for testthat.
> # It is recommended that you do not modify it.
> #
> # Where should you do additional test configuration?
> # Learn more about the roles of various files in:
> # * https://r-pkgs.org/testing-design.html#sec-tests-files-overview
> # * https://testthat.r-lib.org/articles/special-files.html
>
> library(testthat)
> library(ti)
>
> test_check("ti")
Saving _problems/test-retail-calendar-114.R
Saving _problems/test-retail-calendar-124.R
Saving _problems/test-retail-calendar-134.R
Saving _problems/test-retail-calendar-142.R
Saving _problems/test-retail-calendar-159.R
Saving _problems/test-retail-calendar-169.R
Saving _problems/test-retail-calendar-179.R
Saving _problems/test-retail-calendar-189.R
Saving _problems/test-retail-calendar-199.R
Saving _problems/test-retail-calendar-210.R
Saving _problems/test-retail-calendar-221.R
Saving _problems/test-retail-calendar-231.R
Saving _problems/test-retail-calendar-241.R
Saving _problems/test-retail-calendar-251.R
Saving _problems/test-retail-calendar-261.R
Saving _problems/test-retail-calendar-271.R
Saving _problems/test-retail-calendar-281.R
Saving _problems/test-retail-calendar-292.R
Saving _problems/test-retail-calendar-303.R
Saving _problems/test-retail-calendar-313.R
Saving _problems/test-retail-calendar-323.R
Saving _problems/test-retail-calendar-333.R
Saving _problems/test-retail-calendar-343.R
Saving _problems/test-retail-calendar-353.R
Saving _problems/test-retail-calendar-367.R
Saving _problems/test-retail-calendar-377.R
Saving _problems/test-retail-calendar-388.R
Saving _problems/test-retail-calendar-398.R
Saving _problems/test-retail-calendar-412.R
Saving _problems/test-retail-calendar-422.R
Saving _problems/test-retail-calendar-432.R
Saving _problems/test-ti_fn-14.R
Saving _problems/test-ti_fn-25.R
Saving _problems/test-ti_fn-36.R
Saving _problems/test-ti_fn-47.R
Saving _problems/test-ti_fn-59.R
Saving _problems/test-ti_fn-71.R
Saving _problems/test-ti_fn-82.R
Saving _problems/test-ti_fn-93.R
Saving _problems/test-ti_fn-104.R
Saving _problems/test-ti_fn-115.R
Saving _problems/test-ti_fn-127.R
Saving _problems/test-ti_fn-137.R
Saving _problems/test-ti_fn-147.R
Saving _problems/test-ti_fn-155.R
Saving _problems/test-ti_fn-166.R
Saving _problems/test-ti_fn-177.R
Saving _problems/test-ti_fn-189.R
Saving _problems/test-ti_fn-200.R
Saving _problems/test-ti_fn-211.R
Saving _problems/test-ti_fn-223.R
Saving _problems/test-ti_fn-233.R
Saving _problems/test-ti_fn-243.R
Saving _problems/test-ti_fn-252.R
Saving _problems/test-ti_fn-261.R
[ FAIL 55 | WARN 0 | SKIP 0 | PASS 6 ]
══ Failed tests ════════════════════════════════════════════════════════════════
── Failure ('test-retail-calendar.R:108:5'): retail calendar integration with ti functions / ytd works with 445 calendar ──
Expected `{ ... }` not to throw any errors.
Actually got a <rlang_error> with message:
i In argument: `margin = sum(margin, na.rm = TRUE)`
Caused by error:
! Object `margin` not found.
── Failure ('test-retail-calendar.R:118:5'): retail calendar integration with ti functions / qtd works with 445 calendar ──
Expected `{ ... }` not to throw any errors.
Actually got a <rlang_error> with message:
i In argument: `margin = sum(margin, na.rm = TRUE)`
Caused by error:
! Object `margin` not found.
── Failure ('test-retail-calendar.R:128:5'): retail calendar integration with ti functions / mtd works with 445 calendar ──
Expected `{ ... }` not to throw any errors.
Actually got a <rlang_error> with message:
i In argument: `margin = sum(margin, na.rm = TRUE)`
Caused by error:
! Object `margin` not found.
── Error ('test-retail-calendar.R:138:5'): retail calendar integration with ti functions / ytd with 445 returns fiscal year values ──
Error in `dplyr::summarise(dplyr::mutate(make_db_tbl(dplyr::ungroup(x@datum@data)), date = lubridate::floor_date(!!x@datum@date_quo, unit = !!x@time_unit@value, week_start = 7), time_unit = !!x@time_unit@value), `:=`(!!x@value@value_vec, sum(!!x@value@value_quo, na.rm = TRUE)), .by = c(date, !!!x@datum@group_quo))`: i In argument: `margin = sum(margin, na.rm = TRUE)`
Caused by error:
! Object `margin` not found.
── Failure ('test-retail-calendar.R:151:5'): retail calendar integration with ti functions / grouped ytd works with 454 calendar ──
Expected `{ ... }` not to throw any errors.
Actually got a <rlang_error> with message:
i In argument: `margin = sum(margin, na.rm = TRUE)`
Caused by error:
! Object `margin` not found.
── Failure ('test-retail-calendar.R:163:5'): retail calendar integration with ti functions / wtd works with 445 calendar ──
Expected `{ ... }` not to throw any errors.
Actually got a <rlang_error> with message:
i In argument: `margin = sum(margin, na.rm = TRUE)`
Caused by error:
! Object `margin` not found.
── Failure ('test-retail-calendar.R:173:5'): retail calendar integration with ti functions / atd works with 445 calendar ──
Expected `{ ... }` not to throw any errors.
Actually got a <rlang_error> with message:
i In argument: `margin = sum(margin, na.rm = TRUE)`
Caused by error:
! Object `margin` not found.
── Failure ('test-retail-calendar.R:183:5'): retail calendar integration with ti functions / pytd works with 445 calendar ──
Expected `{ ... }` not to throw any errors.
Actually got a <rlang_error> with message:
i In argument: `margin = sum(margin, na.rm = TRUE)`
Caused by error:
! Object `margin` not found.
── Failure ('test-retail-calendar.R:193:5'): retail calendar integration with ti functions / pqtd works with 445 calendar ──
Expected `{ ... }` not to throw any errors.
Actually got a <rlang_error> with message:
i In argument: `margin = sum(margin, na.rm = TRUE)`
Caused by error:
! Object `margin` not found.
── Failure ('test-retail-calendar.R:204:5'): retail calendar integration with ti functions / pmtd works with 445 calendar ──
Expected `{ ... }` not to throw any errors.
Actually got a <rlang_error> with message:
i In argument: `margin = sum(margin, na.rm = TRUE)`
Caused by error:
! Object `margin` not found.
── Failure ('test-retail-calendar.R:215:5'): retail calendar integration with ti functions / pwtd works with 445 calendar ──
Expected `{ ... }` not to throw any errors.
Actually got a <rlang_error> with message:
i In argument: `margin = sum(margin, na.rm = TRUE)`
Caused by error:
! Object `margin` not found.
── Failure ('test-retail-calendar.R:225:5'): retail calendar integration with ti functions / yoy works with 445 calendar ──
Expected `{ ... }` not to throw any errors.
Actually got a <rlang_error> with message:
i In argument: `margin = sum(margin, na.rm = TRUE)`
Caused by error:
! Object `margin` not found.
── Failure ('test-retail-calendar.R:235:5'): retail calendar integration with ti functions / qoq works with 445 calendar ──
Expected `{ ... }` not to throw any errors.
Actually got a <rlang_error> with message:
i In argument: `margin = sum(margin, na.rm = TRUE)`
Caused by error:
! Object `margin` not found.
── Failure ('test-retail-calendar.R:245:5'): retail calendar integration with ti functions / mom works with 445 calendar ──
Expected `{ ... }` not to throw any errors.
Actually got a <rlang_error> with message:
i In argument: `margin = sum(margin, na.rm = TRUE)`
Caused by error:
! Object `margin` not found.
── Failure ('test-retail-calendar.R:255:5'): retail calendar integration with ti functions / wow works with 445 calendar ──
Expected `{ ... }` not to throw any errors.
Actually got a <rlang_error> with message:
i In argument: `margin = sum(margin, na.rm = TRUE)`
Caused by error:
! Object `margin` not found.
── Failure ('test-retail-calendar.R:265:5'): retail calendar integration with ti functions / dod works with 445 calendar ──
Expected `{ ... }` not to throw any errors.
Actually got a <rlang_error> with message:
i In argument: `margin = sum(margin, na.rm = TRUE)`
Caused by error:
! Object `margin` not found.
── Failure ('test-retail-calendar.R:275:5'): retail calendar integration with ti functions / yoytd works with 445 calendar ──
Expected `{ ... }` not to throw any errors.
Actually got a <rlang_error> with message:
i In argument: `margin = sum(margin, na.rm = TRUE)`
Caused by error:
! Object `margin` not found.
── Failure ('test-retail-calendar.R:286:5'): retail calendar integration with ti functions / qoqtd works with 445 calendar ──
Expected `{ ... }` not to throw any errors.
Actually got a <rlang_error> with message:
i In argument: `margin = sum(margin, na.rm = TRUE)`
Caused by error:
! Object `margin` not found.
── Failure ('test-retail-calendar.R:297:5'): retail calendar integration with ti functions / momtd works with 445 calendar ──
Expected `{ ... }` not to throw any errors.
Actually got a <rlang_error> with message:
i In argument: `margin = sum(margin, na.rm = TRUE)`
Caused by error:
! Object `margin` not found.
── Failure ('test-retail-calendar.R:308:5'): retail calendar integration with ti functions / wowtd works with 445 calendar ──
Expected `{ ... }` not to throw any errors.
Actually got a <rlang_error> with message:
i In argument: `margin = sum(margin, na.rm = TRUE)`
Caused by error:
! Object `margin` not found.
── Failure ('test-retail-calendar.R:317:5'): retail calendar integration with ti functions / ytdopy works with 445 calendar ──
Expected `{ ... }` not to throw any errors.
Actually got a <rlang_error> with message:
i In argument: `margin = sum(margin, na.rm = TRUE)`
Caused by error:
! Object `margin` not found.
── Failure ('test-retail-calendar.R:327:5'): retail calendar integration with ti functions / qtdopq works with 445 calendar ──
Expected `{ ... }` not to throw any errors.
Actually got a <rlang_error> with message:
i In argument: `margin = sum(margin, na.rm = TRUE)`
Caused by error:
! Object `margin` not found.
── Failure ('test-retail-calendar.R:337:5'): retail calendar integration with ti functions / mtdopm works with 445 calendar ──
Expected `{ ... }` not to throw any errors.
Actually got a <rlang_error> with message:
i In argument: `margin = sum(margin, na.rm = TRUE)`
Caused by error:
! Object `margin` not found.
── Failure ('test-retail-calendar.R:347:5'): retail calendar integration with ti functions / wtdopw works with 445 calendar ──
Expected `{ ... }` not to throw any errors.
Actually got a <rlang_error> with message:
i In argument: `margin = sum(margin, na.rm = TRUE)`
Caused by error:
! Object `margin` not found.
── Failure ('test-retail-calendar.R:361:5'): 544 calendar integration / ytd works with 544 calendar ──
Expected `{ ... }` not to throw any errors.
Actually got a <rlang_error> with message:
i In argument: `margin = sum(margin, na.rm = TRUE)`
Caused by error:
! Object `margin` not found.
── Failure ('test-retail-calendar.R:371:5'): 544 calendar integration / qoq works with 544 calendar ──
Expected `{ ... }` not to throw any errors.
Actually got a <rlang_error> with message:
i In argument: `margin = sum(margin, na.rm = TRUE)`
Caused by error:
! Object `margin` not found.
── Failure ('test-retail-calendar.R:382:5'): 544 calendar integration / momtd works with 544 calendar ──
Expected `{ ... }` not to throw any errors.
Actually got a <rlang_error> with message:
i In argument: `margin = sum(margin, na.rm = TRUE)`
Caused by error:
! Object `margin` not found.
── Failure ('test-retail-calendar.R:392:5'): 544 calendar integration / wtdopw works with 544 calendar ──
Expected `{ ... }` not to throw any errors.
Actually got a <rlang_error> with message:
i In argument: `margin = sum(margin, na.rm = TRUE)`
Caused by error:
! Object `margin` not found.
── Failure ('test-retail-calendar.R:406:5'): fiscal_year_start variations / ytd works with fiscal_year_start = 7 ──
Expected `{ ... }` not to throw any errors.
Actually got a <rlang_error> with message:
i In argument: `margin = sum(margin, na.rm = TRUE)`
Caused by error:
! Object `margin` not found.
── Failure ('test-retail-calendar.R:416:5'): fiscal_year_start variations / qoq works with fiscal_year_start = 10 ──
Expected `{ ... }` not to throw any errors.
Actually got a <rlang_error> with message:
i In argument: `margin = sum(margin, na.rm = TRUE)`
Caused by error:
! Object `margin` not found.
── Failure ('test-retail-calendar.R:426:5'): fiscal_year_start variations / mtd works with fiscal_year_start = 4 ──
Expected `{ ... }` not to throw any errors.
Actually got a <rlang_error> with message:
i In argument: `margin = sum(margin, na.rm = TRUE)`
Caused by error:
! Object `margin` not found.
── Failure ('test-ti_fn.R:6:5'): ti functions / ytd works ──────────────────────
Expected `{ ... }` not to throw any errors.
Actually got a <rlang_error> with message:
i In argument: `margin = sum(margin, na.rm = TRUE)`
Caused by error:
! Object `margin` not found.
── Failure ('test-ti_fn.R:18:5'): ti functions / qtd works ─────────────────────
Expected `{ ... }` not to throw any errors.
Actually got a <rlang_error> with message:
i In argument: `margin = sum(margin, na.rm = TRUE)`
Caused by error:
! Object `margin` not found.
── Failure ('test-ti_fn.R:29:5'): ti functions / mtd works ─────────────────────
Expected `{ ... }` not to throw any errors.
Actually got a <rlang_error> with message:
i In argument: `margin = sum(margin, na.rm = TRUE)`
Caused by error:
! Object `margin` not found.
── Failure ('test-ti_fn.R:40:5'): ti functions / wtd works ─────────────────────
Expected `{ ... }` not to throw any errors.
Actually got a <rlang_error> with message:
i In argument: `margin = sum(margin, na.rm = TRUE)`
Caused by error:
! Object `margin` not found.
── Failure ('test-ti_fn.R:51:5'): ti functions / atd works ─────────────────────
Expected `{ ... }` not to throw any errors.
Actually got a <rlang_error> with message:
i In argument: `margin = sum(margin, na.rm = TRUE)`
Caused by error:
! Object `margin` not found.
── Failure ('test-ti_fn.R:63:5'): ti functions / yoy works ─────────────────────
Expected `{ ... }` not to throw any errors.
Actually got a <rlang_error> with message:
i In argument: `margin = sum(margin, na.rm = TRUE)`
Caused by error:
! Object `margin` not found.
── Failure ('test-ti_fn.R:75:5'): ti functions / qoq works ─────────────────────
Expected `{ ... }` not to throw any errors.
Actually got a <rlang_error> with message:
i In argument: `margin = sum(margin, na.rm = TRUE)`
Caused by error:
! Object `margin` not found.
── Failure ('test-ti_fn.R:86:5'): ti functions / mom works ─────────────────────
Expected `{ ... }` not to throw any errors.
Actually got a <rlang_error> with message:
i In argument: `margin = sum(margin, na.rm = TRUE)`
Caused by error:
! Object `margin` not found.
── Failure ('test-ti_fn.R:97:5'): ti functions / wow works ─────────────────────
Expected `{ ... }` not to throw any errors.
Actually got a <rlang_error> with message:
i In argument: `margin = sum(margin, na.rm = TRUE)`
Caused by error:
! Object `margin` not found.
── Failure ('test-ti_fn.R:108:5'): ti functions / dod works ────────────────────
Expected `{ ... }` not to throw any errors.
Actually got a <rlang_error> with message:
i In argument: `margin = sum(margin, na.rm = TRUE)`
Caused by error:
! Object `margin` not found.
── Failure ('test-ti_fn.R:119:5'): ti functions / yoytd works ──────────────────
Expected `{ ... }` not to throw any errors.
Actually got a <rlang_error> with message:
i In argument: `margin = sum(margin, na.rm = TRUE)`
Caused by error:
! Object `margin` not found.
── Failure ('test-ti_fn.R:131:5'): ti functions / qoqtd works ──────────────────
Expected `{ ... }` not to throw any errors.
Actually got a <rlang_error> with message:
i In argument: `margin = sum(margin, na.rm = TRUE)`
Caused by error:
! Object `margin` not found.
── Failure ('test-ti_fn.R:141:5'): ti functions / momtd works ──────────────────
Expected `{ ... }` not to throw any errors.
Actually got a <rlang_error> with message:
i In argument: `margin = sum(margin, na.rm = TRUE)`
Caused by error:
! Object `margin` not found.
── Failure ('test-ti_fn.R:151:5'): ti functions / wowtd works ──────────────────
Expected `{ ... }` not to throw any errors.
Actually got a <rlang_error> with message:
i In argument: `margin = sum(margin, na.rm = TRUE)`
Caused by error:
! Object `margin` not found.
── Failure ('test-ti_fn.R:159:5'): ti functions / pytd works ───────────────────
Expected `{ ... }` not to throw any errors.
Actually got a <rlang_error> with message:
i In argument: `margin = sum(margin, na.rm = TRUE)`
Caused by error:
! Object `margin` not found.
── Failure ('test-ti_fn.R:170:5'): ti functions / pqtd works ───────────────────
Expected `{ ... }` not to throw any errors.
Actually got a <rlang_error> with message:
i In argument: `margin = sum(margin, na.rm = TRUE)`
Caused by error:
! Object `margin` not found.
── Failure ('test-ti_fn.R:181:5'): ti functions / pmtd works ───────────────────
Expected `{ ... }` not to throw any errors.
Actually got a <rlang_error> with message:
i In argument: `margin = sum(margin, na.rm = TRUE)`
Caused by error:
! Object `margin` not found.
── Failure ('test-ti_fn.R:193:5'): ti functions / pwtd works ───────────────────
Expected `{ ... }` not to throw any errors.
Actually got a <rlang_error> with message:
i In argument: `margin = sum(margin, na.rm = TRUE)`
Caused by error:
! Object `margin` not found.
── Failure ('test-ti_fn.R:204:5'): ti functions / ytdopy works ─────────────────
Expected `{ ... }` not to throw any errors.
Actually got a <rlang_error> with message:
i In argument: `margin = sum(margin, na.rm = TRUE)`
Caused by error:
! Object `margin` not found.
── Failure ('test-ti_fn.R:215:5'): ti functions / mtdopm works ─────────────────
Expected `{ ... }` not to throw any errors.
Actually got a <rlang_error> with message:
i In argument: `margin = sum(margin, na.rm = TRUE)`
Caused by error:
! Object `margin` not found.
── Failure ('test-ti_fn.R:227:5'): ti functions / qtdopq works ─────────────────
Expected `{ ... }` not to throw any errors.
Actually got a <rlang_error> with message:
i In argument: `margin = sum(margin, na.rm = TRUE)`
Caused by error:
! Object `margin` not found.
── Failure ('test-ti_fn.R:237:5'): ti functions / wtdopw works ─────────────────
Expected `{ ... }` not to throw any errors.
Actually got a <rlang_error> with message:
i In argument: `margin = sum(margin, na.rm = TRUE)`
Caused by error:
! Object `margin` not found.
── Failure ('test-ti_fn.R:247:5'): ti functions / abc works ────────────────────
Expected `{ ... }` not to throw any errors.
Actually got a <rlang_error> with message:
i In argument: `abc_margin = sum(margin, na.rm = TRUE)`
Caused by error:
! Object `margin` not found.
── Failure ('test-ti_fn.R:256:5'): ti functions / cohort works ─────────────────
Expected `{ ... }` not to throw any errors.
Actually got a <rlang_error> with message:
i In argument: `margin`
Caused by error:
! Object `margin` not found.
[ FAIL 55 | WARN 0 | SKIP 0 | PASS 6 ]
Error:
! Test failures.
Execution halted
Flavor: r-devel-windows-x86_64
Version: 4.0.0
Check: tests
Result: ERROR
Running ‘testthat.R’ [20s/28s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
> # This file is part of the standard setup for testthat.
> # It is recommended that you do not modify it.
> #
> # Where should you do additional test configuration?
> # Learn more about the roles of various files in:
> # * https://r-pkgs.org/testing-design.html#sec-tests-files-overview
> # * https://testthat.r-lib.org/articles/special-files.html
>
> library(testthat)
> library(ti)
>
> test_check("ti")
Saving _problems/test-retail-calendar-114.R
Saving _problems/test-retail-calendar-124.R
Saving _problems/test-retail-calendar-134.R
Saving _problems/test-retail-calendar-142.R
Saving _problems/test-retail-calendar-159.R
Saving _problems/test-retail-calendar-169.R
Saving _problems/test-retail-calendar-179.R
Saving _problems/test-retail-calendar-189.R
Saving _problems/test-retail-calendar-199.R
Saving _problems/test-retail-calendar-210.R
Saving _problems/test-retail-calendar-221.R
Saving _problems/test-retail-calendar-231.R
Saving _problems/test-retail-calendar-241.R
Saving _problems/test-retail-calendar-251.R
Saving _problems/test-retail-calendar-261.R
Saving _problems/test-retail-calendar-271.R
Saving _problems/test-retail-calendar-281.R
Saving _problems/test-retail-calendar-292.R
Saving _problems/test-retail-calendar-303.R
Saving _problems/test-retail-calendar-313.R
Saving _problems/test-retail-calendar-323.R
Saving _problems/test-retail-calendar-333.R
Saving _problems/test-retail-calendar-343.R
Saving _problems/test-retail-calendar-353.R
Saving _problems/test-retail-calendar-367.R
Saving _problems/test-retail-calendar-377.R
Saving _problems/test-retail-calendar-388.R
Saving _problems/test-retail-calendar-398.R
Saving _problems/test-retail-calendar-412.R
Saving _problems/test-retail-calendar-422.R
Saving _problems/test-retail-calendar-432.R
Saving _problems/test-ti_fn-14.R
Saving _problems/test-ti_fn-25.R
Saving _problems/test-ti_fn-36.R
Saving _problems/test-ti_fn-47.R
Saving _problems/test-ti_fn-59.R
Saving _problems/test-ti_fn-71.R
Saving _problems/test-ti_fn-82.R
Saving _problems/test-ti_fn-93.R
Saving _problems/test-ti_fn-104.R
Saving _problems/test-ti_fn-115.R
Saving _problems/test-ti_fn-127.R
Saving _problems/test-ti_fn-137.R
Saving _problems/test-ti_fn-147.R
Saving _problems/test-ti_fn-155.R
Saving _problems/test-ti_fn-166.R
Saving _problems/test-ti_fn-177.R
Saving _problems/test-ti_fn-189.R
Saving _problems/test-ti_fn-200.R
Saving _problems/test-ti_fn-211.R
Saving _problems/test-ti_fn-223.R
Saving _problems/test-ti_fn-233.R
Saving _problems/test-ti_fn-243.R
Saving _problems/test-ti_fn-252.R
Saving _problems/test-ti_fn-261.R
[ FAIL 55 | WARN 0 | SKIP 0 | PASS 6 ]
══ Failed tests ════════════════════════════════════════════════════════════════
── Failure ('test-retail-calendar.R:108:5'): retail calendar integration with ti functions / ytd works with 445 calendar ──
Expected `{ ... }` not to throw any errors.
Actually got a <rlang_error> with message:
i In argument: `margin = sum(margin, na.rm = TRUE)`
Caused by error:
! Object `margin` not found.
── Failure ('test-retail-calendar.R:118:5'): retail calendar integration with ti functions / qtd works with 445 calendar ──
Expected `{ ... }` not to throw any errors.
Actually got a <rlang_error> with message:
i In argument: `margin = sum(margin, na.rm = TRUE)`
Caused by error:
! Object `margin` not found.
── Failure ('test-retail-calendar.R:128:5'): retail calendar integration with ti functions / mtd works with 445 calendar ──
Expected `{ ... }` not to throw any errors.
Actually got a <rlang_error> with message:
i In argument: `margin = sum(margin, na.rm = TRUE)`
Caused by error:
! Object `margin` not found.
── Error ('test-retail-calendar.R:138:5'): retail calendar integration with ti functions / ytd with 445 returns fiscal year values ──
Error in `dplyr::summarise(dplyr::mutate(make_db_tbl(dplyr::ungroup(x@datum@data)), date = lubridate::floor_date(!!x@datum@date_quo, unit = !!x@time_unit@value, week_start = 7), time_unit = !!x@time_unit@value), `:=`(!!x@value@value_vec, sum(!!x@value@value_quo, na.rm = TRUE)), .by = c(date, !!!x@datum@group_quo))`: i In argument: `margin = sum(margin, na.rm = TRUE)`
Caused by error:
! Object `margin` not found.
── Failure ('test-retail-calendar.R:151:5'): retail calendar integration with ti functions / grouped ytd works with 454 calendar ──
Expected `{ ... }` not to throw any errors.
Actually got a <rlang_error> with message:
i In argument: `margin = sum(margin, na.rm = TRUE)`
Caused by error:
! Object `margin` not found.
── Failure ('test-retail-calendar.R:163:5'): retail calendar integration with ti functions / wtd works with 445 calendar ──
Expected `{ ... }` not to throw any errors.
Actually got a <rlang_error> with message:
i In argument: `margin = sum(margin, na.rm = TRUE)`
Caused by error:
! Object `margin` not found.
── Failure ('test-retail-calendar.R:173:5'): retail calendar integration with ti functions / atd works with 445 calendar ──
Expected `{ ... }` not to throw any errors.
Actually got a <rlang_error> with message:
i In argument: `margin = sum(margin, na.rm = TRUE)`
Caused by error:
! Object `margin` not found.
── Failure ('test-retail-calendar.R:183:5'): retail calendar integration with ti functions / pytd works with 445 calendar ──
Expected `{ ... }` not to throw any errors.
Actually got a <rlang_error> with message:
i In argument: `margin = sum(margin, na.rm = TRUE)`
Caused by error:
! Object `margin` not found.
── Failure ('test-retail-calendar.R:193:5'): retail calendar integration with ti functions / pqtd works with 445 calendar ──
Expected `{ ... }` not to throw any errors.
Actually got a <rlang_error> with message:
i In argument: `margin = sum(margin, na.rm = TRUE)`
Caused by error:
! Object `margin` not found.
── Failure ('test-retail-calendar.R:204:5'): retail calendar integration with ti functions / pmtd works with 445 calendar ──
Expected `{ ... }` not to throw any errors.
Actually got a <rlang_error> with message:
i In argument: `margin = sum(margin, na.rm = TRUE)`
Caused by error:
! Object `margin` not found.
── Failure ('test-retail-calendar.R:215:5'): retail calendar integration with ti functions / pwtd works with 445 calendar ──
Expected `{ ... }` not to throw any errors.
Actually got a <rlang_error> with message:
i In argument: `margin = sum(margin, na.rm = TRUE)`
Caused by error:
! Object `margin` not found.
── Failure ('test-retail-calendar.R:225:5'): retail calendar integration with ti functions / yoy works with 445 calendar ──
Expected `{ ... }` not to throw any errors.
Actually got a <rlang_error> with message:
i In argument: `margin = sum(margin, na.rm = TRUE)`
Caused by error:
! Object `margin` not found.
── Failure ('test-retail-calendar.R:235:5'): retail calendar integration with ti functions / qoq works with 445 calendar ──
Expected `{ ... }` not to throw any errors.
Actually got a <rlang_error> with message:
i In argument: `margin = sum(margin, na.rm = TRUE)`
Caused by error:
! Object `margin` not found.
── Failure ('test-retail-calendar.R:245:5'): retail calendar integration with ti functions / mom works with 445 calendar ──
Expected `{ ... }` not to throw any errors.
Actually got a <rlang_error> with message:
i In argument: `margin = sum(margin, na.rm = TRUE)`
Caused by error:
! Object `margin` not found.
── Failure ('test-retail-calendar.R:255:5'): retail calendar integration with ti functions / wow works with 445 calendar ──
Expected `{ ... }` not to throw any errors.
Actually got a <rlang_error> with message:
i In argument: `margin = sum(margin, na.rm = TRUE)`
Caused by error:
! Object `margin` not found.
── Failure ('test-retail-calendar.R:265:5'): retail calendar integration with ti functions / dod works with 445 calendar ──
Expected `{ ... }` not to throw any errors.
Actually got a <rlang_error> with message:
i In argument: `margin = sum(margin, na.rm = TRUE)`
Caused by error:
! Object `margin` not found.
── Failure ('test-retail-calendar.R:275:5'): retail calendar integration with ti functions / yoytd works with 445 calendar ──
Expected `{ ... }` not to throw any errors.
Actually got a <rlang_error> with message:
i In argument: `margin = sum(margin, na.rm = TRUE)`
Caused by error:
! Object `margin` not found.
── Failure ('test-retail-calendar.R:286:5'): retail calendar integration with ti functions / qoqtd works with 445 calendar ──
Expected `{ ... }` not to throw any errors.
Actually got a <rlang_error> with message:
i In argument: `margin = sum(margin, na.rm = TRUE)`
Caused by error:
! Object `margin` not found.
── Failure ('test-retail-calendar.R:297:5'): retail calendar integration with ti functions / momtd works with 445 calendar ──
Expected `{ ... }` not to throw any errors.
Actually got a <rlang_error> with message:
i In argument: `margin = sum(margin, na.rm = TRUE)`
Caused by error:
! Object `margin` not found.
── Failure ('test-retail-calendar.R:308:5'): retail calendar integration with ti functions / wowtd works with 445 calendar ──
Expected `{ ... }` not to throw any errors.
Actually got a <rlang_error> with message:
i In argument: `margin = sum(margin, na.rm = TRUE)`
Caused by error:
! Object `margin` not found.
── Failure ('test-retail-calendar.R:317:5'): retail calendar integration with ti functions / ytdopy works with 445 calendar ──
Expected `{ ... }` not to throw any errors.
Actually got a <rlang_error> with message:
i In argument: `margin = sum(margin, na.rm = TRUE)`
Caused by error:
! Object `margin` not found.
── Failure ('test-retail-calendar.R:327:5'): retail calendar integration with ti functions / qtdopq works with 445 calendar ──
Expected `{ ... }` not to throw any errors.
Actually got a <rlang_error> with message:
i In argument: `margin = sum(margin, na.rm = TRUE)`
Caused by error:
! Object `margin` not found.
── Failure ('test-retail-calendar.R:337:5'): retail calendar integration with ti functions / mtdopm works with 445 calendar ──
Expected `{ ... }` not to throw any errors.
Actually got a <rlang_error> with message:
i In argument: `margin = sum(margin, na.rm = TRUE)`
Caused by error:
! Object `margin` not found.
── Failure ('test-retail-calendar.R:347:5'): retail calendar integration with ti functions / wtdopw works with 445 calendar ──
Expected `{ ... }` not to throw any errors.
Actually got a <rlang_error> with message:
i In argument: `margin = sum(margin, na.rm = TRUE)`
Caused by error:
! Object `margin` not found.
── Failure ('test-retail-calendar.R:361:5'): 544 calendar integration / ytd works with 544 calendar ──
Expected `{ ... }` not to throw any errors.
Actually got a <rlang_error> with message:
i In argument: `margin = sum(margin, na.rm = TRUE)`
Caused by error:
! Object `margin` not found.
── Failure ('test-retail-calendar.R:371:5'): 544 calendar integration / qoq works with 544 calendar ──
Expected `{ ... }` not to throw any errors.
Actually got a <rlang_error> with message:
i In argument: `margin = sum(margin, na.rm = TRUE)`
Caused by error:
! Object `margin` not found.
── Failure ('test-retail-calendar.R:382:5'): 544 calendar integration / momtd works with 544 calendar ──
Expected `{ ... }` not to throw any errors.
Actually got a <rlang_error> with message:
i In argument: `margin = sum(margin, na.rm = TRUE)`
Caused by error:
! Object `margin` not found.
── Failure ('test-retail-calendar.R:392:5'): 544 calendar integration / wtdopw works with 544 calendar ──
Expected `{ ... }` not to throw any errors.
Actually got a <rlang_error> with message:
i In argument: `margin = sum(margin, na.rm = TRUE)`
Caused by error:
! Object `margin` not found.
── Failure ('test-retail-calendar.R:406:5'): fiscal_year_start variations / ytd works with fiscal_year_start = 7 ──
Expected `{ ... }` not to throw any errors.
Actually got a <rlang_error> with message:
i In argument: `margin = sum(margin, na.rm = TRUE)`
Caused by error:
! Object `margin` not found.
── Failure ('test-retail-calendar.R:416:5'): fiscal_year_start variations / qoq works with fiscal_year_start = 10 ──
Expected `{ ... }` not to throw any errors.
Actually got a <rlang_error> with message:
i In argument: `margin = sum(margin, na.rm = TRUE)`
Caused by error:
! Object `margin` not found.
── Failure ('test-retail-calendar.R:426:5'): fiscal_year_start variations / mtd works with fiscal_year_start = 4 ──
Expected `{ ... }` not to throw any errors.
Actually got a <rlang_error> with message:
i In argument: `margin = sum(margin, na.rm = TRUE)`
Caused by error:
! Object `margin` not found.
── Failure ('test-ti_fn.R:6:5'): ti functions / ytd works ──────────────────────
Expected `{ ... }` not to throw any errors.
Actually got a <rlang_error> with message:
i In argument: `margin = sum(margin, na.rm = TRUE)`
Caused by error:
! Object `margin` not found.
── Failure ('test-ti_fn.R:18:5'): ti functions / qtd works ─────────────────────
Expected `{ ... }` not to throw any errors.
Actually got a <rlang_error> with message:
i In argument: `margin = sum(margin, na.rm = TRUE)`
Caused by error:
! Object `margin` not found.
── Failure ('test-ti_fn.R:29:5'): ti functions / mtd works ─────────────────────
Expected `{ ... }` not to throw any errors.
Actually got a <rlang_error> with message:
i In argument: `margin = sum(margin, na.rm = TRUE)`
Caused by error:
! Object `margin` not found.
── Failure ('test-ti_fn.R:40:5'): ti functions / wtd works ─────────────────────
Expected `{ ... }` not to throw any errors.
Actually got a <rlang_error> with message:
i In argument: `margin = sum(margin, na.rm = TRUE)`
Caused by error:
! Object `margin` not found.
── Failure ('test-ti_fn.R:51:5'): ti functions / atd works ─────────────────────
Expected `{ ... }` not to throw any errors.
Actually got a <rlang_error> with message:
i In argument: `margin = sum(margin, na.rm = TRUE)`
Caused by error:
! Object `margin` not found.
── Failure ('test-ti_fn.R:63:5'): ti functions / yoy works ─────────────────────
Expected `{ ... }` not to throw any errors.
Actually got a <rlang_error> with message:
i In argument: `margin = sum(margin, na.rm = TRUE)`
Caused by error:
! Object `margin` not found.
── Failure ('test-ti_fn.R:75:5'): ti functions / qoq works ─────────────────────
Expected `{ ... }` not to throw any errors.
Actually got a <rlang_error> with message:
i In argument: `margin = sum(margin, na.rm = TRUE)`
Caused by error:
! Object `margin` not found.
── Failure ('test-ti_fn.R:86:5'): ti functions / mom works ─────────────────────
Expected `{ ... }` not to throw any errors.
Actually got a <rlang_error> with message:
i In argument: `margin = sum(margin, na.rm = TRUE)`
Caused by error:
! Object `margin` not found.
── Failure ('test-ti_fn.R:97:5'): ti functions / wow works ─────────────────────
Expected `{ ... }` not to throw any errors.
Actually got a <rlang_error> with message:
i In argument: `margin = sum(margin, na.rm = TRUE)`
Caused by error:
! Object `margin` not found.
── Failure ('test-ti_fn.R:108:5'): ti functions / dod works ────────────────────
Expected `{ ... }` not to throw any errors.
Actually got a <rlang_error> with message:
i In argument: `margin = sum(margin, na.rm = TRUE)`
Caused by error:
! Object `margin` not found.
── Failure ('test-ti_fn.R:119:5'): ti functions / yoytd works ──────────────────
Expected `{ ... }` not to throw any errors.
Actually got a <rlang_error> with message:
i In argument: `margin = sum(margin, na.rm = TRUE)`
Caused by error:
! Object `margin` not found.
── Failure ('test-ti_fn.R:131:5'): ti functions / qoqtd works ──────────────────
Expected `{ ... }` not to throw any errors.
Actually got a <rlang_error> with message:
i In argument: `margin = sum(margin, na.rm = TRUE)`
Caused by error:
! Object `margin` not found.
── Failure ('test-ti_fn.R:141:5'): ti functions / momtd works ──────────────────
Expected `{ ... }` not to throw any errors.
Actually got a <rlang_error> with message:
i In argument: `margin = sum(margin, na.rm = TRUE)`
Caused by error:
! Object `margin` not found.
── Failure ('test-ti_fn.R:151:5'): ti functions / wowtd works ──────────────────
Expected `{ ... }` not to throw any errors.
Actually got a <rlang_error> with message:
i In argument: `margin = sum(margin, na.rm = TRUE)`
Caused by error:
! Object `margin` not found.
── Failure ('test-ti_fn.R:159:5'): ti functions / pytd works ───────────────────
Expected `{ ... }` not to throw any errors.
Actually got a <rlang_error> with message:
i In argument: `margin = sum(margin, na.rm = TRUE)`
Caused by error:
! Object `margin` not found.
── Failure ('test-ti_fn.R:170:5'): ti functions / pqtd works ───────────────────
Expected `{ ... }` not to throw any errors.
Actually got a <rlang_error> with message:
i In argument: `margin = sum(margin, na.rm = TRUE)`
Caused by error:
! Object `margin` not found.
── Failure ('test-ti_fn.R:181:5'): ti functions / pmtd works ───────────────────
Expected `{ ... }` not to throw any errors.
Actually got a <rlang_error> with message:
i In argument: `margin = sum(margin, na.rm = TRUE)`
Caused by error:
! Object `margin` not found.
── Failure ('test-ti_fn.R:193:5'): ti functions / pwtd works ───────────────────
Expected `{ ... }` not to throw any errors.
Actually got a <rlang_error> with message:
i In argument: `margin = sum(margin, na.rm = TRUE)`
Caused by error:
! Object `margin` not found.
── Failure ('test-ti_fn.R:204:5'): ti functions / ytdopy works ─────────────────
Expected `{ ... }` not to throw any errors.
Actually got a <rlang_error> with message:
i In argument: `margin = sum(margin, na.rm = TRUE)`
Caused by error:
! Object `margin` not found.
── Failure ('test-ti_fn.R:215:5'): ti functions / mtdopm works ─────────────────
Expected `{ ... }` not to throw any errors.
Actually got a <rlang_error> with message:
i In argument: `margin = sum(margin, na.rm = TRUE)`
Caused by error:
! Object `margin` not found.
── Failure ('test-ti_fn.R:227:5'): ti functions / qtdopq works ─────────────────
Expected `{ ... }` not to throw any errors.
Actually got a <rlang_error> with message:
i In argument: `margin = sum(margin, na.rm = TRUE)`
Caused by error:
! Object `margin` not found.
── Failure ('test-ti_fn.R:237:5'): ti functions / wtdopw works ─────────────────
Expected `{ ... }` not to throw any errors.
Actually got a <rlang_error> with message:
i In argument: `margin = sum(margin, na.rm = TRUE)`
Caused by error:
! Object `margin` not found.
── Failure ('test-ti_fn.R:247:5'): ti functions / abc works ────────────────────
Expected `{ ... }` not to throw any errors.
Actually got a <rlang_error> with message:
i In argument: `abc_margin = sum(margin, na.rm = TRUE)`
Caused by error:
! Object `margin` not found.
── Failure ('test-ti_fn.R:256:5'): ti functions / cohort works ─────────────────
Expected `{ ... }` not to throw any errors.
Actually got a <rlang_error> with message:
i In argument: `margin`
Caused by error:
! Object `margin` not found.
[ FAIL 55 | WARN 0 | SKIP 0 | PASS 6 ]
Error:
! Test failures.
Execution halted
Flavor: r-patched-linux-x86_64
Version: 4.0.0
Check: tests
Result: ERROR
Running ‘testthat.R’ [19s/25s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
> # This file is part of the standard setup for testthat.
> # It is recommended that you do not modify it.
> #
> # Where should you do additional test configuration?
> # Learn more about the roles of various files in:
> # * https://r-pkgs.org/testing-design.html#sec-tests-files-overview
> # * https://testthat.r-lib.org/articles/special-files.html
>
> library(testthat)
> library(ti)
>
> test_check("ti")
Saving _problems/test-retail-calendar-114.R
Saving _problems/test-retail-calendar-124.R
Saving _problems/test-retail-calendar-134.R
Saving _problems/test-retail-calendar-142.R
Saving _problems/test-retail-calendar-159.R
Saving _problems/test-retail-calendar-169.R
Saving _problems/test-retail-calendar-179.R
Saving _problems/test-retail-calendar-189.R
Saving _problems/test-retail-calendar-199.R
Saving _problems/test-retail-calendar-210.R
Saving _problems/test-retail-calendar-221.R
Saving _problems/test-retail-calendar-231.R
Saving _problems/test-retail-calendar-241.R
Saving _problems/test-retail-calendar-251.R
Saving _problems/test-retail-calendar-261.R
Saving _problems/test-retail-calendar-271.R
Saving _problems/test-retail-calendar-281.R
Saving _problems/test-retail-calendar-292.R
Saving _problems/test-retail-calendar-303.R
Saving _problems/test-retail-calendar-313.R
Saving _problems/test-retail-calendar-323.R
Saving _problems/test-retail-calendar-333.R
Saving _problems/test-retail-calendar-343.R
Saving _problems/test-retail-calendar-353.R
Saving _problems/test-retail-calendar-367.R
Saving _problems/test-retail-calendar-377.R
Saving _problems/test-retail-calendar-388.R
Saving _problems/test-retail-calendar-398.R
Saving _problems/test-retail-calendar-412.R
Saving _problems/test-retail-calendar-422.R
Saving _problems/test-retail-calendar-432.R
Saving _problems/test-ti_fn-14.R
Saving _problems/test-ti_fn-25.R
Saving _problems/test-ti_fn-36.R
Saving _problems/test-ti_fn-47.R
Saving _problems/test-ti_fn-59.R
Saving _problems/test-ti_fn-71.R
Saving _problems/test-ti_fn-82.R
Saving _problems/test-ti_fn-93.R
Saving _problems/test-ti_fn-104.R
Saving _problems/test-ti_fn-115.R
Saving _problems/test-ti_fn-127.R
Saving _problems/test-ti_fn-137.R
Saving _problems/test-ti_fn-147.R
Saving _problems/test-ti_fn-155.R
Saving _problems/test-ti_fn-166.R
Saving _problems/test-ti_fn-177.R
Saving _problems/test-ti_fn-189.R
Saving _problems/test-ti_fn-200.R
Saving _problems/test-ti_fn-211.R
Saving _problems/test-ti_fn-223.R
Saving _problems/test-ti_fn-233.R
Saving _problems/test-ti_fn-243.R
Saving _problems/test-ti_fn-252.R
Saving _problems/test-ti_fn-261.R
[ FAIL 55 | WARN 0 | SKIP 0 | PASS 6 ]
══ Failed tests ════════════════════════════════════════════════════════════════
── Failure ('test-retail-calendar.R:108:5'): retail calendar integration with ti functions / ytd works with 445 calendar ──
Expected `{ ... }` not to throw any errors.
Actually got a <rlang_error> with message:
i In argument: `margin = sum(margin, na.rm = TRUE)`
Caused by error:
! Object `margin` not found.
── Failure ('test-retail-calendar.R:118:5'): retail calendar integration with ti functions / qtd works with 445 calendar ──
Expected `{ ... }` not to throw any errors.
Actually got a <rlang_error> with message:
i In argument: `margin = sum(margin, na.rm = TRUE)`
Caused by error:
! Object `margin` not found.
── Failure ('test-retail-calendar.R:128:5'): retail calendar integration with ti functions / mtd works with 445 calendar ──
Expected `{ ... }` not to throw any errors.
Actually got a <rlang_error> with message:
i In argument: `margin = sum(margin, na.rm = TRUE)`
Caused by error:
! Object `margin` not found.
── Error ('test-retail-calendar.R:138:5'): retail calendar integration with ti functions / ytd with 445 returns fiscal year values ──
Error in `dplyr::summarise(dplyr::mutate(make_db_tbl(dplyr::ungroup(x@datum@data)), date = lubridate::floor_date(!!x@datum@date_quo, unit = !!x@time_unit@value, week_start = 7), time_unit = !!x@time_unit@value), `:=`(!!x@value@value_vec, sum(!!x@value@value_quo, na.rm = TRUE)), .by = c(date, !!!x@datum@group_quo))`: i In argument: `margin = sum(margin, na.rm = TRUE)`
Caused by error:
! Object `margin` not found.
── Failure ('test-retail-calendar.R:151:5'): retail calendar integration with ti functions / grouped ytd works with 454 calendar ──
Expected `{ ... }` not to throw any errors.
Actually got a <rlang_error> with message:
i In argument: `margin = sum(margin, na.rm = TRUE)`
Caused by error:
! Object `margin` not found.
── Failure ('test-retail-calendar.R:163:5'): retail calendar integration with ti functions / wtd works with 445 calendar ──
Expected `{ ... }` not to throw any errors.
Actually got a <rlang_error> with message:
i In argument: `margin = sum(margin, na.rm = TRUE)`
Caused by error:
! Object `margin` not found.
── Failure ('test-retail-calendar.R:173:5'): retail calendar integration with ti functions / atd works with 445 calendar ──
Expected `{ ... }` not to throw any errors.
Actually got a <rlang_error> with message:
i In argument: `margin = sum(margin, na.rm = TRUE)`
Caused by error:
! Object `margin` not found.
── Failure ('test-retail-calendar.R:183:5'): retail calendar integration with ti functions / pytd works with 445 calendar ──
Expected `{ ... }` not to throw any errors.
Actually got a <rlang_error> with message:
i In argument: `margin = sum(margin, na.rm = TRUE)`
Caused by error:
! Object `margin` not found.
── Failure ('test-retail-calendar.R:193:5'): retail calendar integration with ti functions / pqtd works with 445 calendar ──
Expected `{ ... }` not to throw any errors.
Actually got a <rlang_error> with message:
i In argument: `margin = sum(margin, na.rm = TRUE)`
Caused by error:
! Object `margin` not found.
── Failure ('test-retail-calendar.R:204:5'): retail calendar integration with ti functions / pmtd works with 445 calendar ──
Expected `{ ... }` not to throw any errors.
Actually got a <rlang_error> with message:
i In argument: `margin = sum(margin, na.rm = TRUE)`
Caused by error:
! Object `margin` not found.
── Failure ('test-retail-calendar.R:215:5'): retail calendar integration with ti functions / pwtd works with 445 calendar ──
Expected `{ ... }` not to throw any errors.
Actually got a <rlang_error> with message:
i In argument: `margin = sum(margin, na.rm = TRUE)`
Caused by error:
! Object `margin` not found.
── Failure ('test-retail-calendar.R:225:5'): retail calendar integration with ti functions / yoy works with 445 calendar ──
Expected `{ ... }` not to throw any errors.
Actually got a <rlang_error> with message:
i In argument: `margin = sum(margin, na.rm = TRUE)`
Caused by error:
! Object `margin` not found.
── Failure ('test-retail-calendar.R:235:5'): retail calendar integration with ti functions / qoq works with 445 calendar ──
Expected `{ ... }` not to throw any errors.
Actually got a <rlang_error> with message:
i In argument: `margin = sum(margin, na.rm = TRUE)`
Caused by error:
! Object `margin` not found.
── Failure ('test-retail-calendar.R:245:5'): retail calendar integration with ti functions / mom works with 445 calendar ──
Expected `{ ... }` not to throw any errors.
Actually got a <rlang_error> with message:
i In argument: `margin = sum(margin, na.rm = TRUE)`
Caused by error:
! Object `margin` not found.
── Failure ('test-retail-calendar.R:255:5'): retail calendar integration with ti functions / wow works with 445 calendar ──
Expected `{ ... }` not to throw any errors.
Actually got a <rlang_error> with message:
i In argument: `margin = sum(margin, na.rm = TRUE)`
Caused by error:
! Object `margin` not found.
── Failure ('test-retail-calendar.R:265:5'): retail calendar integration with ti functions / dod works with 445 calendar ──
Expected `{ ... }` not to throw any errors.
Actually got a <rlang_error> with message:
i In argument: `margin = sum(margin, na.rm = TRUE)`
Caused by error:
! Object `margin` not found.
── Failure ('test-retail-calendar.R:275:5'): retail calendar integration with ti functions / yoytd works with 445 calendar ──
Expected `{ ... }` not to throw any errors.
Actually got a <rlang_error> with message:
i In argument: `margin = sum(margin, na.rm = TRUE)`
Caused by error:
! Object `margin` not found.
── Failure ('test-retail-calendar.R:286:5'): retail calendar integration with ti functions / qoqtd works with 445 calendar ──
Expected `{ ... }` not to throw any errors.
Actually got a <rlang_error> with message:
i In argument: `margin = sum(margin, na.rm = TRUE)`
Caused by error:
! Object `margin` not found.
── Failure ('test-retail-calendar.R:297:5'): retail calendar integration with ti functions / momtd works with 445 calendar ──
Expected `{ ... }` not to throw any errors.
Actually got a <rlang_error> with message:
i In argument: `margin = sum(margin, na.rm = TRUE)`
Caused by error:
! Object `margin` not found.
── Failure ('test-retail-calendar.R:308:5'): retail calendar integration with ti functions / wowtd works with 445 calendar ──
Expected `{ ... }` not to throw any errors.
Actually got a <rlang_error> with message:
i In argument: `margin = sum(margin, na.rm = TRUE)`
Caused by error:
! Object `margin` not found.
── Failure ('test-retail-calendar.R:317:5'): retail calendar integration with ti functions / ytdopy works with 445 calendar ──
Expected `{ ... }` not to throw any errors.
Actually got a <rlang_error> with message:
i In argument: `margin = sum(margin, na.rm = TRUE)`
Caused by error:
! Object `margin` not found.
── Failure ('test-retail-calendar.R:327:5'): retail calendar integration with ti functions / qtdopq works with 445 calendar ──
Expected `{ ... }` not to throw any errors.
Actually got a <rlang_error> with message:
i In argument: `margin = sum(margin, na.rm = TRUE)`
Caused by error:
! Object `margin` not found.
── Failure ('test-retail-calendar.R:337:5'): retail calendar integration with ti functions / mtdopm works with 445 calendar ──
Expected `{ ... }` not to throw any errors.
Actually got a <rlang_error> with message:
i In argument: `margin = sum(margin, na.rm = TRUE)`
Caused by error:
! Object `margin` not found.
── Failure ('test-retail-calendar.R:347:5'): retail calendar integration with ti functions / wtdopw works with 445 calendar ──
Expected `{ ... }` not to throw any errors.
Actually got a <rlang_error> with message:
i In argument: `margin = sum(margin, na.rm = TRUE)`
Caused by error:
! Object `margin` not found.
── Failure ('test-retail-calendar.R:361:5'): 544 calendar integration / ytd works with 544 calendar ──
Expected `{ ... }` not to throw any errors.
Actually got a <rlang_error> with message:
i In argument: `margin = sum(margin, na.rm = TRUE)`
Caused by error:
! Object `margin` not found.
── Failure ('test-retail-calendar.R:371:5'): 544 calendar integration / qoq works with 544 calendar ──
Expected `{ ... }` not to throw any errors.
Actually got a <rlang_error> with message:
i In argument: `margin = sum(margin, na.rm = TRUE)`
Caused by error:
! Object `margin` not found.
── Failure ('test-retail-calendar.R:382:5'): 544 calendar integration / momtd works with 544 calendar ──
Expected `{ ... }` not to throw any errors.
Actually got a <rlang_error> with message:
i In argument: `margin = sum(margin, na.rm = TRUE)`
Caused by error:
! Object `margin` not found.
── Failure ('test-retail-calendar.R:392:5'): 544 calendar integration / wtdopw works with 544 calendar ──
Expected `{ ... }` not to throw any errors.
Actually got a <rlang_error> with message:
i In argument: `margin = sum(margin, na.rm = TRUE)`
Caused by error:
! Object `margin` not found.
── Failure ('test-retail-calendar.R:406:5'): fiscal_year_start variations / ytd works with fiscal_year_start = 7 ──
Expected `{ ... }` not to throw any errors.
Actually got a <rlang_error> with message:
i In argument: `margin = sum(margin, na.rm = TRUE)`
Caused by error:
! Object `margin` not found.
── Failure ('test-retail-calendar.R:416:5'): fiscal_year_start variations / qoq works with fiscal_year_start = 10 ──
Expected `{ ... }` not to throw any errors.
Actually got a <rlang_error> with message:
i In argument: `margin = sum(margin, na.rm = TRUE)`
Caused by error:
! Object `margin` not found.
── Failure ('test-retail-calendar.R:426:5'): fiscal_year_start variations / mtd works with fiscal_year_start = 4 ──
Expected `{ ... }` not to throw any errors.
Actually got a <rlang_error> with message:
i In argument: `margin = sum(margin, na.rm = TRUE)`
Caused by error:
! Object `margin` not found.
── Failure ('test-ti_fn.R:6:5'): ti functions / ytd works ──────────────────────
Expected `{ ... }` not to throw any errors.
Actually got a <rlang_error> with message:
i In argument: `margin = sum(margin, na.rm = TRUE)`
Caused by error:
! Object `margin` not found.
── Failure ('test-ti_fn.R:18:5'): ti functions / qtd works ─────────────────────
Expected `{ ... }` not to throw any errors.
Actually got a <rlang_error> with message:
i In argument: `margin = sum(margin, na.rm = TRUE)`
Caused by error:
! Object `margin` not found.
── Failure ('test-ti_fn.R:29:5'): ti functions / mtd works ─────────────────────
Expected `{ ... }` not to throw any errors.
Actually got a <rlang_error> with message:
i In argument: `margin = sum(margin, na.rm = TRUE)`
Caused by error:
! Object `margin` not found.
── Failure ('test-ti_fn.R:40:5'): ti functions / wtd works ─────────────────────
Expected `{ ... }` not to throw any errors.
Actually got a <rlang_error> with message:
i In argument: `margin = sum(margin, na.rm = TRUE)`
Caused by error:
! Object `margin` not found.
── Failure ('test-ti_fn.R:51:5'): ti functions / atd works ─────────────────────
Expected `{ ... }` not to throw any errors.
Actually got a <rlang_error> with message:
i In argument: `margin = sum(margin, na.rm = TRUE)`
Caused by error:
! Object `margin` not found.
── Failure ('test-ti_fn.R:63:5'): ti functions / yoy works ─────────────────────
Expected `{ ... }` not to throw any errors.
Actually got a <rlang_error> with message:
i In argument: `margin = sum(margin, na.rm = TRUE)`
Caused by error:
! Object `margin` not found.
── Failure ('test-ti_fn.R:75:5'): ti functions / qoq works ─────────────────────
Expected `{ ... }` not to throw any errors.
Actually got a <rlang_error> with message:
i In argument: `margin = sum(margin, na.rm = TRUE)`
Caused by error:
! Object `margin` not found.
── Failure ('test-ti_fn.R:86:5'): ti functions / mom works ─────────────────────
Expected `{ ... }` not to throw any errors.
Actually got a <rlang_error> with message:
i In argument: `margin = sum(margin, na.rm = TRUE)`
Caused by error:
! Object `margin` not found.
── Failure ('test-ti_fn.R:97:5'): ti functions / wow works ─────────────────────
Expected `{ ... }` not to throw any errors.
Actually got a <rlang_error> with message:
i In argument: `margin = sum(margin, na.rm = TRUE)`
Caused by error:
! Object `margin` not found.
── Failure ('test-ti_fn.R:108:5'): ti functions / dod works ────────────────────
Expected `{ ... }` not to throw any errors.
Actually got a <rlang_error> with message:
i In argument: `margin = sum(margin, na.rm = TRUE)`
Caused by error:
! Object `margin` not found.
── Failure ('test-ti_fn.R:119:5'): ti functions / yoytd works ──────────────────
Expected `{ ... }` not to throw any errors.
Actually got a <rlang_error> with message:
i In argument: `margin = sum(margin, na.rm = TRUE)`
Caused by error:
! Object `margin` not found.
── Failure ('test-ti_fn.R:131:5'): ti functions / qoqtd works ──────────────────
Expected `{ ... }` not to throw any errors.
Actually got a <rlang_error> with message:
i In argument: `margin = sum(margin, na.rm = TRUE)`
Caused by error:
! Object `margin` not found.
── Failure ('test-ti_fn.R:141:5'): ti functions / momtd works ──────────────────
Expected `{ ... }` not to throw any errors.
Actually got a <rlang_error> with message:
i In argument: `margin = sum(margin, na.rm = TRUE)`
Caused by error:
! Object `margin` not found.
── Failure ('test-ti_fn.R:151:5'): ti functions / wowtd works ──────────────────
Expected `{ ... }` not to throw any errors.
Actually got a <rlang_error> with message:
i In argument: `margin = sum(margin, na.rm = TRUE)`
Caused by error:
! Object `margin` not found.
── Failure ('test-ti_fn.R:159:5'): ti functions / pytd works ───────────────────
Expected `{ ... }` not to throw any errors.
Actually got a <rlang_error> with message:
i In argument: `margin = sum(margin, na.rm = TRUE)`
Caused by error:
! Object `margin` not found.
── Failure ('test-ti_fn.R:170:5'): ti functions / pqtd works ───────────────────
Expected `{ ... }` not to throw any errors.
Actually got a <rlang_error> with message:
i In argument: `margin = sum(margin, na.rm = TRUE)`
Caused by error:
! Object `margin` not found.
── Failure ('test-ti_fn.R:181:5'): ti functions / pmtd works ───────────────────
Expected `{ ... }` not to throw any errors.
Actually got a <rlang_error> with message:
i In argument: `margin = sum(margin, na.rm = TRUE)`
Caused by error:
! Object `margin` not found.
── Failure ('test-ti_fn.R:193:5'): ti functions / pwtd works ───────────────────
Expected `{ ... }` not to throw any errors.
Actually got a <rlang_error> with message:
i In argument: `margin = sum(margin, na.rm = TRUE)`
Caused by error:
! Object `margin` not found.
── Failure ('test-ti_fn.R:204:5'): ti functions / ytdopy works ─────────────────
Expected `{ ... }` not to throw any errors.
Actually got a <rlang_error> with message:
i In argument: `margin = sum(margin, na.rm = TRUE)`
Caused by error:
! Object `margin` not found.
── Failure ('test-ti_fn.R:215:5'): ti functions / mtdopm works ─────────────────
Expected `{ ... }` not to throw any errors.
Actually got a <rlang_error> with message:
i In argument: `margin = sum(margin, na.rm = TRUE)`
Caused by error:
! Object `margin` not found.
── Failure ('test-ti_fn.R:227:5'): ti functions / qtdopq works ─────────────────
Expected `{ ... }` not to throw any errors.
Actually got a <rlang_error> with message:
i In argument: `margin = sum(margin, na.rm = TRUE)`
Caused by error:
! Object `margin` not found.
── Failure ('test-ti_fn.R:237:5'): ti functions / wtdopw works ─────────────────
Expected `{ ... }` not to throw any errors.
Actually got a <rlang_error> with message:
i In argument: `margin = sum(margin, na.rm = TRUE)`
Caused by error:
! Object `margin` not found.
── Failure ('test-ti_fn.R:247:5'): ti functions / abc works ────────────────────
Expected `{ ... }` not to throw any errors.
Actually got a <rlang_error> with message:
i In argument: `abc_margin = sum(margin, na.rm = TRUE)`
Caused by error:
! Object `margin` not found.
── Failure ('test-ti_fn.R:256:5'): ti functions / cohort works ─────────────────
Expected `{ ... }` not to throw any errors.
Actually got a <rlang_error> with message:
i In argument: `margin`
Caused by error:
! Object `margin` not found.
[ FAIL 55 | WARN 0 | SKIP 0 | PASS 6 ]
Error:
! Test failures.
Execution halted
Flavor: r-release-linux-x86_64
Version: 4.0.0
Check: tests
Result: ERROR
Running 'testthat.R' [23s]
Running the tests in 'tests/testthat.R' failed.
Complete output:
> # This file is part of the standard setup for testthat.
> # It is recommended that you do not modify it.
> #
> # Where should you do additional test configuration?
> # Learn more about the roles of various files in:
> # * https://r-pkgs.org/testing-design.html#sec-tests-files-overview
> # * https://testthat.r-lib.org/articles/special-files.html
>
> library(testthat)
> library(ti)
>
> test_check("ti")
Saving _problems/test-retail-calendar-114.R
Saving _problems/test-retail-calendar-124.R
Saving _problems/test-retail-calendar-134.R
Saving _problems/test-retail-calendar-142.R
Saving _problems/test-retail-calendar-159.R
Saving _problems/test-retail-calendar-169.R
Saving _problems/test-retail-calendar-179.R
Saving _problems/test-retail-calendar-189.R
Saving _problems/test-retail-calendar-199.R
Saving _problems/test-retail-calendar-210.R
Saving _problems/test-retail-calendar-221.R
Saving _problems/test-retail-calendar-231.R
Saving _problems/test-retail-calendar-241.R
Saving _problems/test-retail-calendar-251.R
Saving _problems/test-retail-calendar-261.R
Saving _problems/test-retail-calendar-271.R
Saving _problems/test-retail-calendar-281.R
Saving _problems/test-retail-calendar-292.R
Saving _problems/test-retail-calendar-303.R
Saving _problems/test-retail-calendar-313.R
Saving _problems/test-retail-calendar-323.R
Saving _problems/test-retail-calendar-333.R
Saving _problems/test-retail-calendar-343.R
Saving _problems/test-retail-calendar-353.R
Saving _problems/test-retail-calendar-367.R
Saving _problems/test-retail-calendar-377.R
Saving _problems/test-retail-calendar-388.R
Saving _problems/test-retail-calendar-398.R
Saving _problems/test-retail-calendar-412.R
Saving _problems/test-retail-calendar-422.R
Saving _problems/test-retail-calendar-432.R
Saving _problems/test-ti_fn-14.R
Saving _problems/test-ti_fn-25.R
Saving _problems/test-ti_fn-36.R
Saving _problems/test-ti_fn-47.R
Saving _problems/test-ti_fn-59.R
Saving _problems/test-ti_fn-71.R
Saving _problems/test-ti_fn-82.R
Saving _problems/test-ti_fn-93.R
Saving _problems/test-ti_fn-104.R
Saving _problems/test-ti_fn-115.R
Saving _problems/test-ti_fn-127.R
Saving _problems/test-ti_fn-137.R
Saving _problems/test-ti_fn-147.R
Saving _problems/test-ti_fn-155.R
Saving _problems/test-ti_fn-166.R
Saving _problems/test-ti_fn-177.R
Saving _problems/test-ti_fn-189.R
Saving _problems/test-ti_fn-200.R
Saving _problems/test-ti_fn-211.R
Saving _problems/test-ti_fn-223.R
Saving _problems/test-ti_fn-233.R
Saving _problems/test-ti_fn-243.R
Saving _problems/test-ti_fn-252.R
Saving _problems/test-ti_fn-261.R
[ FAIL 55 | WARN 0 | SKIP 0 | PASS 6 ]
══ Failed tests ════════════════════════════════════════════════════════════════
── Failure ('test-retail-calendar.R:108:5'): retail calendar integration with ti functions / ytd works with 445 calendar ──
Expected `{ ... }` not to throw any errors.
Actually got a <rlang_error> with message:
i In argument: `margin = sum(margin, na.rm = TRUE)`
Caused by error:
! Object `margin` not found.
── Failure ('test-retail-calendar.R:118:5'): retail calendar integration with ti functions / qtd works with 445 calendar ──
Expected `{ ... }` not to throw any errors.
Actually got a <rlang_error> with message:
i In argument: `margin = sum(margin, na.rm = TRUE)`
Caused by error:
! Object `margin` not found.
── Failure ('test-retail-calendar.R:128:5'): retail calendar integration with ti functions / mtd works with 445 calendar ──
Expected `{ ... }` not to throw any errors.
Actually got a <rlang_error> with message:
i In argument: `margin = sum(margin, na.rm = TRUE)`
Caused by error:
! Object `margin` not found.
── Error ('test-retail-calendar.R:138:5'): retail calendar integration with ti functions / ytd with 445 returns fiscal year values ──
Error in `dplyr::summarise(dplyr::mutate(make_db_tbl(dplyr::ungroup(x@datum@data)), date = lubridate::floor_date(!!x@datum@date_quo, unit = !!x@time_unit@value, week_start = 7), time_unit = !!x@time_unit@value), `:=`(!!x@value@value_vec, sum(!!x@value@value_quo, na.rm = TRUE)), .by = c(date, !!!x@datum@group_quo))`: i In argument: `margin = sum(margin, na.rm = TRUE)`
Caused by error:
! Object `margin` not found.
── Failure ('test-retail-calendar.R:151:5'): retail calendar integration with ti functions / grouped ytd works with 454 calendar ──
Expected `{ ... }` not to throw any errors.
Actually got a <rlang_error> with message:
i In argument: `margin = sum(margin, na.rm = TRUE)`
Caused by error:
! Object `margin` not found.
── Failure ('test-retail-calendar.R:163:5'): retail calendar integration with ti functions / wtd works with 445 calendar ──
Expected `{ ... }` not to throw any errors.
Actually got a <rlang_error> with message:
i In argument: `margin = sum(margin, na.rm = TRUE)`
Caused by error:
! Object `margin` not found.
── Failure ('test-retail-calendar.R:173:5'): retail calendar integration with ti functions / atd works with 445 calendar ──
Expected `{ ... }` not to throw any errors.
Actually got a <rlang_error> with message:
i In argument: `margin = sum(margin, na.rm = TRUE)`
Caused by error:
! Object `margin` not found.
── Failure ('test-retail-calendar.R:183:5'): retail calendar integration with ti functions / pytd works with 445 calendar ──
Expected `{ ... }` not to throw any errors.
Actually got a <rlang_error> with message:
i In argument: `margin = sum(margin, na.rm = TRUE)`
Caused by error:
! Object `margin` not found.
── Failure ('test-retail-calendar.R:193:5'): retail calendar integration with ti functions / pqtd works with 445 calendar ──
Expected `{ ... }` not to throw any errors.
Actually got a <rlang_error> with message:
i In argument: `margin = sum(margin, na.rm = TRUE)`
Caused by error:
! Object `margin` not found.
── Failure ('test-retail-calendar.R:204:5'): retail calendar integration with ti functions / pmtd works with 445 calendar ──
Expected `{ ... }` not to throw any errors.
Actually got a <rlang_error> with message:
i In argument: `margin = sum(margin, na.rm = TRUE)`
Caused by error:
! Object `margin` not found.
── Failure ('test-retail-calendar.R:215:5'): retail calendar integration with ti functions / pwtd works with 445 calendar ──
Expected `{ ... }` not to throw any errors.
Actually got a <rlang_error> with message:
i In argument: `margin = sum(margin, na.rm = TRUE)`
Caused by error:
! Object `margin` not found.
── Failure ('test-retail-calendar.R:225:5'): retail calendar integration with ti functions / yoy works with 445 calendar ──
Expected `{ ... }` not to throw any errors.
Actually got a <rlang_error> with message:
i In argument: `margin = sum(margin, na.rm = TRUE)`
Caused by error:
! Object `margin` not found.
── Failure ('test-retail-calendar.R:235:5'): retail calendar integration with ti functions / qoq works with 445 calendar ──
Expected `{ ... }` not to throw any errors.
Actually got a <rlang_error> with message:
i In argument: `margin = sum(margin, na.rm = TRUE)`
Caused by error:
! Object `margin` not found.
── Failure ('test-retail-calendar.R:245:5'): retail calendar integration with ti functions / mom works with 445 calendar ──
Expected `{ ... }` not to throw any errors.
Actually got a <rlang_error> with message:
i In argument: `margin = sum(margin, na.rm = TRUE)`
Caused by error:
! Object `margin` not found.
── Failure ('test-retail-calendar.R:255:5'): retail calendar integration with ti functions / wow works with 445 calendar ──
Expected `{ ... }` not to throw any errors.
Actually got a <rlang_error> with message:
i In argument: `margin = sum(margin, na.rm = TRUE)`
Caused by error:
! Object `margin` not found.
── Failure ('test-retail-calendar.R:265:5'): retail calendar integration with ti functions / dod works with 445 calendar ──
Expected `{ ... }` not to throw any errors.
Actually got a <rlang_error> with message:
i In argument: `margin = sum(margin, na.rm = TRUE)`
Caused by error:
! Object `margin` not found.
── Failure ('test-retail-calendar.R:275:5'): retail calendar integration with ti functions / yoytd works with 445 calendar ──
Expected `{ ... }` not to throw any errors.
Actually got a <rlang_error> with message:
i In argument: `margin = sum(margin, na.rm = TRUE)`
Caused by error:
! Object `margin` not found.
── Failure ('test-retail-calendar.R:286:5'): retail calendar integration with ti functions / qoqtd works with 445 calendar ──
Expected `{ ... }` not to throw any errors.
Actually got a <rlang_error> with message:
i In argument: `margin = sum(margin, na.rm = TRUE)`
Caused by error:
! Object `margin` not found.
── Failure ('test-retail-calendar.R:297:5'): retail calendar integration with ti functions / momtd works with 445 calendar ──
Expected `{ ... }` not to throw any errors.
Actually got a <rlang_error> with message:
i In argument: `margin = sum(margin, na.rm = TRUE)`
Caused by error:
! Object `margin` not found.
── Failure ('test-retail-calendar.R:308:5'): retail calendar integration with ti functions / wowtd works with 445 calendar ──
Expected `{ ... }` not to throw any errors.
Actually got a <rlang_error> with message:
i In argument: `margin = sum(margin, na.rm = TRUE)`
Caused by error:
! Object `margin` not found.
── Failure ('test-retail-calendar.R:317:5'): retail calendar integration with ti functions / ytdopy works with 445 calendar ──
Expected `{ ... }` not to throw any errors.
Actually got a <rlang_error> with message:
i In argument: `margin = sum(margin, na.rm = TRUE)`
Caused by error:
! Object `margin` not found.
── Failure ('test-retail-calendar.R:327:5'): retail calendar integration with ti functions / qtdopq works with 445 calendar ──
Expected `{ ... }` not to throw any errors.
Actually got a <rlang_error> with message:
i In argument: `margin = sum(margin, na.rm = TRUE)`
Caused by error:
! Object `margin` not found.
── Failure ('test-retail-calendar.R:337:5'): retail calendar integration with ti functions / mtdopm works with 445 calendar ──
Expected `{ ... }` not to throw any errors.
Actually got a <rlang_error> with message:
i In argument: `margin = sum(margin, na.rm = TRUE)`
Caused by error:
! Object `margin` not found.
── Failure ('test-retail-calendar.R:347:5'): retail calendar integration with ti functions / wtdopw works with 445 calendar ──
Expected `{ ... }` not to throw any errors.
Actually got a <rlang_error> with message:
i In argument: `margin = sum(margin, na.rm = TRUE)`
Caused by error:
! Object `margin` not found.
── Failure ('test-retail-calendar.R:361:5'): 544 calendar integration / ytd works with 544 calendar ──
Expected `{ ... }` not to throw any errors.
Actually got a <rlang_error> with message:
i In argument: `margin = sum(margin, na.rm = TRUE)`
Caused by error:
! Object `margin` not found.
── Failure ('test-retail-calendar.R:371:5'): 544 calendar integration / qoq works with 544 calendar ──
Expected `{ ... }` not to throw any errors.
Actually got a <rlang_error> with message:
i In argument: `margin = sum(margin, na.rm = TRUE)`
Caused by error:
! Object `margin` not found.
── Failure ('test-retail-calendar.R:382:5'): 544 calendar integration / momtd works with 544 calendar ──
Expected `{ ... }` not to throw any errors.
Actually got a <rlang_error> with message:
i In argument: `margin = sum(margin, na.rm = TRUE)`
Caused by error:
! Object `margin` not found.
── Failure ('test-retail-calendar.R:392:5'): 544 calendar integration / wtdopw works with 544 calendar ──
Expected `{ ... }` not to throw any errors.
Actually got a <rlang_error> with message:
i In argument: `margin = sum(margin, na.rm = TRUE)`
Caused by error:
! Object `margin` not found.
── Failure ('test-retail-calendar.R:406:5'): fiscal_year_start variations / ytd works with fiscal_year_start = 7 ──
Expected `{ ... }` not to throw any errors.
Actually got a <rlang_error> with message:
i In argument: `margin = sum(margin, na.rm = TRUE)`
Caused by error:
! Object `margin` not found.
── Failure ('test-retail-calendar.R:416:5'): fiscal_year_start variations / qoq works with fiscal_year_start = 10 ──
Expected `{ ... }` not to throw any errors.
Actually got a <rlang_error> with message:
i In argument: `margin = sum(margin, na.rm = TRUE)`
Caused by error:
! Object `margin` not found.
── Failure ('test-retail-calendar.R:426:5'): fiscal_year_start variations / mtd works with fiscal_year_start = 4 ──
Expected `{ ... }` not to throw any errors.
Actually got a <rlang_error> with message:
i In argument: `margin = sum(margin, na.rm = TRUE)`
Caused by error:
! Object `margin` not found.
── Failure ('test-ti_fn.R:6:5'): ti functions / ytd works ──────────────────────
Expected `{ ... }` not to throw any errors.
Actually got a <rlang_error> with message:
i In argument: `margin = sum(margin, na.rm = TRUE)`
Caused by error:
! Object `margin` not found.
── Failure ('test-ti_fn.R:18:5'): ti functions / qtd works ─────────────────────
Expected `{ ... }` not to throw any errors.
Actually got a <rlang_error> with message:
i In argument: `margin = sum(margin, na.rm = TRUE)`
Caused by error:
! Object `margin` not found.
── Failure ('test-ti_fn.R:29:5'): ti functions / mtd works ─────────────────────
Expected `{ ... }` not to throw any errors.
Actually got a <rlang_error> with message:
i In argument: `margin = sum(margin, na.rm = TRUE)`
Caused by error:
! Object `margin` not found.
── Failure ('test-ti_fn.R:40:5'): ti functions / wtd works ─────────────────────
Expected `{ ... }` not to throw any errors.
Actually got a <rlang_error> with message:
i In argument: `margin = sum(margin, na.rm = TRUE)`
Caused by error:
! Object `margin` not found.
── Failure ('test-ti_fn.R:51:5'): ti functions / atd works ─────────────────────
Expected `{ ... }` not to throw any errors.
Actually got a <rlang_error> with message:
i In argument: `margin = sum(margin, na.rm = TRUE)`
Caused by error:
! Object `margin` not found.
── Failure ('test-ti_fn.R:63:5'): ti functions / yoy works ─────────────────────
Expected `{ ... }` not to throw any errors.
Actually got a <rlang_error> with message:
i In argument: `margin = sum(margin, na.rm = TRUE)`
Caused by error:
! Object `margin` not found.
── Failure ('test-ti_fn.R:75:5'): ti functions / qoq works ─────────────────────
Expected `{ ... }` not to throw any errors.
Actually got a <rlang_error> with message:
i In argument: `margin = sum(margin, na.rm = TRUE)`
Caused by error:
! Object `margin` not found.
── Failure ('test-ti_fn.R:86:5'): ti functions / mom works ─────────────────────
Expected `{ ... }` not to throw any errors.
Actually got a <rlang_error> with message:
i In argument: `margin = sum(margin, na.rm = TRUE)`
Caused by error:
! Object `margin` not found.
── Failure ('test-ti_fn.R:97:5'): ti functions / wow works ─────────────────────
Expected `{ ... }` not to throw any errors.
Actually got a <rlang_error> with message:
i In argument: `margin = sum(margin, na.rm = TRUE)`
Caused by error:
! Object `margin` not found.
── Failure ('test-ti_fn.R:108:5'): ti functions / dod works ────────────────────
Expected `{ ... }` not to throw any errors.
Actually got a <rlang_error> with message:
i In argument: `margin = sum(margin, na.rm = TRUE)`
Caused by error:
! Object `margin` not found.
── Failure ('test-ti_fn.R:119:5'): ti functions / yoytd works ──────────────────
Expected `{ ... }` not to throw any errors.
Actually got a <rlang_error> with message:
i In argument: `margin = sum(margin, na.rm = TRUE)`
Caused by error:
! Object `margin` not found.
── Failure ('test-ti_fn.R:131:5'): ti functions / qoqtd works ──────────────────
Expected `{ ... }` not to throw any errors.
Actually got a <rlang_error> with message:
i In argument: `margin = sum(margin, na.rm = TRUE)`
Caused by error:
! Object `margin` not found.
── Failure ('test-ti_fn.R:141:5'): ti functions / momtd works ──────────────────
Expected `{ ... }` not to throw any errors.
Actually got a <rlang_error> with message:
i In argument: `margin = sum(margin, na.rm = TRUE)`
Caused by error:
! Object `margin` not found.
── Failure ('test-ti_fn.R:151:5'): ti functions / wowtd works ──────────────────
Expected `{ ... }` not to throw any errors.
Actually got a <rlang_error> with message:
i In argument: `margin = sum(margin, na.rm = TRUE)`
Caused by error:
! Object `margin` not found.
── Failure ('test-ti_fn.R:159:5'): ti functions / pytd works ───────────────────
Expected `{ ... }` not to throw any errors.
Actually got a <rlang_error> with message:
i In argument: `margin = sum(margin, na.rm = TRUE)`
Caused by error:
! Object `margin` not found.
── Failure ('test-ti_fn.R:170:5'): ti functions / pqtd works ───────────────────
Expected `{ ... }` not to throw any errors.
Actually got a <rlang_error> with message:
i In argument: `margin = sum(margin, na.rm = TRUE)`
Caused by error:
! Object `margin` not found.
── Failure ('test-ti_fn.R:181:5'): ti functions / pmtd works ───────────────────
Expected `{ ... }` not to throw any errors.
Actually got a <rlang_error> with message:
i In argument: `margin = sum(margin, na.rm = TRUE)`
Caused by error:
! Object `margin` not found.
── Failure ('test-ti_fn.R:193:5'): ti functions / pwtd works ───────────────────
Expected `{ ... }` not to throw any errors.
Actually got a <rlang_error> with message:
i In argument: `margin = sum(margin, na.rm = TRUE)`
Caused by error:
! Object `margin` not found.
── Failure ('test-ti_fn.R:204:5'): ti functions / ytdopy works ─────────────────
Expected `{ ... }` not to throw any errors.
Actually got a <rlang_error> with message:
i In argument: `margin = sum(margin, na.rm = TRUE)`
Caused by error:
! Object `margin` not found.
── Failure ('test-ti_fn.R:215:5'): ti functions / mtdopm works ─────────────────
Expected `{ ... }` not to throw any errors.
Actually got a <rlang_error> with message:
i In argument: `margin = sum(margin, na.rm = TRUE)`
Caused by error:
! Object `margin` not found.
── Failure ('test-ti_fn.R:227:5'): ti functions / qtdopq works ─────────────────
Expected `{ ... }` not to throw any errors.
Actually got a <rlang_error> with message:
i In argument: `margin = sum(margin, na.rm = TRUE)`
Caused by error:
! Object `margin` not found.
── Failure ('test-ti_fn.R:237:5'): ti functions / wtdopw works ─────────────────
Expected `{ ... }` not to throw any errors.
Actually got a <rlang_error> with message:
i In argument: `margin = sum(margin, na.rm = TRUE)`
Caused by error:
! Object `margin` not found.
── Failure ('test-ti_fn.R:247:5'): ti functions / abc works ────────────────────
Expected `{ ... }` not to throw any errors.
Actually got a <rlang_error> with message:
i In argument: `abc_margin = sum(margin, na.rm = TRUE)`
Caused by error:
! Object `margin` not found.
── Failure ('test-ti_fn.R:256:5'): ti functions / cohort works ─────────────────
Expected `{ ... }` not to throw any errors.
Actually got a <rlang_error> with message:
i In argument: `margin`
Caused by error:
! Object `margin` not found.
[ FAIL 55 | WARN 0 | SKIP 0 | PASS 6 ]
Error:
! Test failures.
Execution halted
Flavor: r-release-windows-x86_64
Version: 4.0.0
Check: tests
Result: ERROR
Running 'testthat.R' [29s]
Running the tests in 'tests/testthat.R' failed.
Complete output:
> # This file is part of the standard setup for testthat.
> # It is recommended that you do not modify it.
> #
> # Where should you do additional test configuration?
> # Learn more about the roles of various files in:
> # * https://r-pkgs.org/testing-design.html#sec-tests-files-overview
> # * https://testthat.r-lib.org/articles/special-files.html
>
> library(testthat)
> library(ti)
>
> test_check("ti")
Saving _problems/test-retail-calendar-114.R
Saving _problems/test-retail-calendar-124.R
Saving _problems/test-retail-calendar-134.R
Saving _problems/test-retail-calendar-142.R
Saving _problems/test-retail-calendar-159.R
Saving _problems/test-retail-calendar-169.R
Saving _problems/test-retail-calendar-179.R
Saving _problems/test-retail-calendar-189.R
Saving _problems/test-retail-calendar-199.R
Saving _problems/test-retail-calendar-210.R
Saving _problems/test-retail-calendar-221.R
Saving _problems/test-retail-calendar-231.R
Saving _problems/test-retail-calendar-241.R
Saving _problems/test-retail-calendar-251.R
Saving _problems/test-retail-calendar-261.R
Saving _problems/test-retail-calendar-271.R
Saving _problems/test-retail-calendar-281.R
Saving _problems/test-retail-calendar-292.R
Saving _problems/test-retail-calendar-303.R
Saving _problems/test-retail-calendar-313.R
Saving _problems/test-retail-calendar-323.R
Saving _problems/test-retail-calendar-333.R
Saving _problems/test-retail-calendar-343.R
Saving _problems/test-retail-calendar-353.R
Saving _problems/test-retail-calendar-367.R
Saving _problems/test-retail-calendar-377.R
Saving _problems/test-retail-calendar-388.R
Saving _problems/test-retail-calendar-398.R
Saving _problems/test-retail-calendar-412.R
Saving _problems/test-retail-calendar-422.R
Saving _problems/test-retail-calendar-432.R
Saving _problems/test-ti_fn-14.R
Saving _problems/test-ti_fn-25.R
Saving _problems/test-ti_fn-36.R
Saving _problems/test-ti_fn-47.R
Saving _problems/test-ti_fn-59.R
Saving _problems/test-ti_fn-71.R
Saving _problems/test-ti_fn-82.R
Saving _problems/test-ti_fn-93.R
Saving _problems/test-ti_fn-104.R
Saving _problems/test-ti_fn-115.R
Saving _problems/test-ti_fn-127.R
Saving _problems/test-ti_fn-137.R
Saving _problems/test-ti_fn-147.R
Saving _problems/test-ti_fn-155.R
Saving _problems/test-ti_fn-166.R
Saving _problems/test-ti_fn-177.R
Saving _problems/test-ti_fn-189.R
Saving _problems/test-ti_fn-200.R
Saving _problems/test-ti_fn-211.R
Saving _problems/test-ti_fn-223.R
Saving _problems/test-ti_fn-233.R
Saving _problems/test-ti_fn-243.R
Saving _problems/test-ti_fn-252.R
Saving _problems/test-ti_fn-261.R
[ FAIL 55 | WARN 0 | SKIP 0 | PASS 6 ]
══ Failed tests ════════════════════════════════════════════════════════════════
── Failure ('test-retail-calendar.R:108:5'): retail calendar integration with ti functions / ytd works with 445 calendar ──
Expected `{ ... }` not to throw any errors.
Actually got a <rlang_error> with message:
i In argument: `margin = sum(margin, na.rm = TRUE)`
Caused by error:
! Object `margin` not found.
── Failure ('test-retail-calendar.R:118:5'): retail calendar integration with ti functions / qtd works with 445 calendar ──
Expected `{ ... }` not to throw any errors.
Actually got a <rlang_error> with message:
i In argument: `margin = sum(margin, na.rm = TRUE)`
Caused by error:
! Object `margin` not found.
── Failure ('test-retail-calendar.R:128:5'): retail calendar integration with ti functions / mtd works with 445 calendar ──
Expected `{ ... }` not to throw any errors.
Actually got a <rlang_error> with message:
i In argument: `margin = sum(margin, na.rm = TRUE)`
Caused by error:
! Object `margin` not found.
── Error ('test-retail-calendar.R:138:5'): retail calendar integration with ti functions / ytd with 445 returns fiscal year values ──
Error in `dplyr::summarise(dplyr::mutate(make_db_tbl(dplyr::ungroup(x@datum@data)), date = lubridate::floor_date(!!x@datum@date_quo, unit = !!x@time_unit@value, week_start = 7), time_unit = !!x@time_unit@value), `:=`(!!x@value@value_vec, sum(!!x@value@value_quo, na.rm = TRUE)), .by = c(date, !!!x@datum@group_quo))`: i In argument: `margin = sum(margin, na.rm = TRUE)`
Caused by error:
! Object `margin` not found.
── Failure ('test-retail-calendar.R:151:5'): retail calendar integration with ti functions / grouped ytd works with 454 calendar ──
Expected `{ ... }` not to throw any errors.
Actually got a <rlang_error> with message:
i In argument: `margin = sum(margin, na.rm = TRUE)`
Caused by error:
! Object `margin` not found.
── Failure ('test-retail-calendar.R:163:5'): retail calendar integration with ti functions / wtd works with 445 calendar ──
Expected `{ ... }` not to throw any errors.
Actually got a <rlang_error> with message:
i In argument: `margin = sum(margin, na.rm = TRUE)`
Caused by error:
! Object `margin` not found.
── Failure ('test-retail-calendar.R:173:5'): retail calendar integration with ti functions / atd works with 445 calendar ──
Expected `{ ... }` not to throw any errors.
Actually got a <rlang_error> with message:
i In argument: `margin = sum(margin, na.rm = TRUE)`
Caused by error:
! Object `margin` not found.
── Failure ('test-retail-calendar.R:183:5'): retail calendar integration with ti functions / pytd works with 445 calendar ──
Expected `{ ... }` not to throw any errors.
Actually got a <rlang_error> with message:
i In argument: `margin = sum(margin, na.rm = TRUE)`
Caused by error:
! Object `margin` not found.
── Failure ('test-retail-calendar.R:193:5'): retail calendar integration with ti functions / pqtd works with 445 calendar ──
Expected `{ ... }` not to throw any errors.
Actually got a <rlang_error> with message:
i In argument: `margin = sum(margin, na.rm = TRUE)`
Caused by error:
! Object `margin` not found.
── Failure ('test-retail-calendar.R:204:5'): retail calendar integration with ti functions / pmtd works with 445 calendar ──
Expected `{ ... }` not to throw any errors.
Actually got a <rlang_error> with message:
i In argument: `margin = sum(margin, na.rm = TRUE)`
Caused by error:
! Object `margin` not found.
── Failure ('test-retail-calendar.R:215:5'): retail calendar integration with ti functions / pwtd works with 445 calendar ──
Expected `{ ... }` not to throw any errors.
Actually got a <rlang_error> with message:
i In argument: `margin = sum(margin, na.rm = TRUE)`
Caused by error:
! Object `margin` not found.
── Failure ('test-retail-calendar.R:225:5'): retail calendar integration with ti functions / yoy works with 445 calendar ──
Expected `{ ... }` not to throw any errors.
Actually got a <rlang_error> with message:
i In argument: `margin = sum(margin, na.rm = TRUE)`
Caused by error:
! Object `margin` not found.
── Failure ('test-retail-calendar.R:235:5'): retail calendar integration with ti functions / qoq works with 445 calendar ──
Expected `{ ... }` not to throw any errors.
Actually got a <rlang_error> with message:
i In argument: `margin = sum(margin, na.rm = TRUE)`
Caused by error:
! Object `margin` not found.
── Failure ('test-retail-calendar.R:245:5'): retail calendar integration with ti functions / mom works with 445 calendar ──
Expected `{ ... }` not to throw any errors.
Actually got a <rlang_error> with message:
i In argument: `margin = sum(margin, na.rm = TRUE)`
Caused by error:
! Object `margin` not found.
── Failure ('test-retail-calendar.R:255:5'): retail calendar integration with ti functions / wow works with 445 calendar ──
Expected `{ ... }` not to throw any errors.
Actually got a <rlang_error> with message:
i In argument: `margin = sum(margin, na.rm = TRUE)`
Caused by error:
! Object `margin` not found.
── Failure ('test-retail-calendar.R:265:5'): retail calendar integration with ti functions / dod works with 445 calendar ──
Expected `{ ... }` not to throw any errors.
Actually got a <rlang_error> with message:
i In argument: `margin = sum(margin, na.rm = TRUE)`
Caused by error:
! Object `margin` not found.
── Failure ('test-retail-calendar.R:275:5'): retail calendar integration with ti functions / yoytd works with 445 calendar ──
Expected `{ ... }` not to throw any errors.
Actually got a <rlang_error> with message:
i In argument: `margin = sum(margin, na.rm = TRUE)`
Caused by error:
! Object `margin` not found.
── Failure ('test-retail-calendar.R:286:5'): retail calendar integration with ti functions / qoqtd works with 445 calendar ──
Expected `{ ... }` not to throw any errors.
Actually got a <rlang_error> with message:
i In argument: `margin = sum(margin, na.rm = TRUE)`
Caused by error:
! Object `margin` not found.
── Failure ('test-retail-calendar.R:297:5'): retail calendar integration with ti functions / momtd works with 445 calendar ──
Expected `{ ... }` not to throw any errors.
Actually got a <rlang_error> with message:
i In argument: `margin = sum(margin, na.rm = TRUE)`
Caused by error:
! Object `margin` not found.
── Failure ('test-retail-calendar.R:308:5'): retail calendar integration with ti functions / wowtd works with 445 calendar ──
Expected `{ ... }` not to throw any errors.
Actually got a <rlang_error> with message:
i In argument: `margin = sum(margin, na.rm = TRUE)`
Caused by error:
! Object `margin` not found.
── Failure ('test-retail-calendar.R:317:5'): retail calendar integration with ti functions / ytdopy works with 445 calendar ──
Expected `{ ... }` not to throw any errors.
Actually got a <rlang_error> with message:
i In argument: `margin = sum(margin, na.rm = TRUE)`
Caused by error:
! Object `margin` not found.
── Failure ('test-retail-calendar.R:327:5'): retail calendar integration with ti functions / qtdopq works with 445 calendar ──
Expected `{ ... }` not to throw any errors.
Actually got a <rlang_error> with message:
i In argument: `margin = sum(margin, na.rm = TRUE)`
Caused by error:
! Object `margin` not found.
── Failure ('test-retail-calendar.R:337:5'): retail calendar integration with ti functions / mtdopm works with 445 calendar ──
Expected `{ ... }` not to throw any errors.
Actually got a <rlang_error> with message:
i In argument: `margin = sum(margin, na.rm = TRUE)`
Caused by error:
! Object `margin` not found.
── Failure ('test-retail-calendar.R:347:5'): retail calendar integration with ti functions / wtdopw works with 445 calendar ──
Expected `{ ... }` not to throw any errors.
Actually got a <rlang_error> with message:
i In argument: `margin = sum(margin, na.rm = TRUE)`
Caused by error:
! Object `margin` not found.
── Failure ('test-retail-calendar.R:361:5'): 544 calendar integration / ytd works with 544 calendar ──
Expected `{ ... }` not to throw any errors.
Actually got a <rlang_error> with message:
i In argument: `margin = sum(margin, na.rm = TRUE)`
Caused by error:
! Object `margin` not found.
── Failure ('test-retail-calendar.R:371:5'): 544 calendar integration / qoq works with 544 calendar ──
Expected `{ ... }` not to throw any errors.
Actually got a <rlang_error> with message:
i In argument: `margin = sum(margin, na.rm = TRUE)`
Caused by error:
! Object `margin` not found.
── Failure ('test-retail-calendar.R:382:5'): 544 calendar integration / momtd works with 544 calendar ──
Expected `{ ... }` not to throw any errors.
Actually got a <rlang_error> with message:
i In argument: `margin = sum(margin, na.rm = TRUE)`
Caused by error:
! Object `margin` not found.
── Failure ('test-retail-calendar.R:392:5'): 544 calendar integration / wtdopw works with 544 calendar ──
Expected `{ ... }` not to throw any errors.
Actually got a <rlang_error> with message:
i In argument: `margin = sum(margin, na.rm = TRUE)`
Caused by error:
! Object `margin` not found.
── Failure ('test-retail-calendar.R:406:5'): fiscal_year_start variations / ytd works with fiscal_year_start = 7 ──
Expected `{ ... }` not to throw any errors.
Actually got a <rlang_error> with message:
i In argument: `margin = sum(margin, na.rm = TRUE)`
Caused by error:
! Object `margin` not found.
── Failure ('test-retail-calendar.R:416:5'): fiscal_year_start variations / qoq works with fiscal_year_start = 10 ──
Expected `{ ... }` not to throw any errors.
Actually got a <rlang_error> with message:
i In argument: `margin = sum(margin, na.rm = TRUE)`
Caused by error:
! Object `margin` not found.
── Failure ('test-retail-calendar.R:426:5'): fiscal_year_start variations / mtd works with fiscal_year_start = 4 ──
Expected `{ ... }` not to throw any errors.
Actually got a <rlang_error> with message:
i In argument: `margin = sum(margin, na.rm = TRUE)`
Caused by error:
! Object `margin` not found.
── Failure ('test-ti_fn.R:6:5'): ti functions / ytd works ──────────────────────
Expected `{ ... }` not to throw any errors.
Actually got a <rlang_error> with message:
i In argument: `margin = sum(margin, na.rm = TRUE)`
Caused by error:
! Object `margin` not found.
── Failure ('test-ti_fn.R:18:5'): ti functions / qtd works ─────────────────────
Expected `{ ... }` not to throw any errors.
Actually got a <rlang_error> with message:
i In argument: `margin = sum(margin, na.rm = TRUE)`
Caused by error:
! Object `margin` not found.
── Failure ('test-ti_fn.R:29:5'): ti functions / mtd works ─────────────────────
Expected `{ ... }` not to throw any errors.
Actually got a <rlang_error> with message:
i In argument: `margin = sum(margin, na.rm = TRUE)`
Caused by error:
! Object `margin` not found.
── Failure ('test-ti_fn.R:40:5'): ti functions / wtd works ─────────────────────
Expected `{ ... }` not to throw any errors.
Actually got a <rlang_error> with message:
i In argument: `margin = sum(margin, na.rm = TRUE)`
Caused by error:
! Object `margin` not found.
── Failure ('test-ti_fn.R:51:5'): ti functions / atd works ─────────────────────
Expected `{ ... }` not to throw any errors.
Actually got a <rlang_error> with message:
i In argument: `margin = sum(margin, na.rm = TRUE)`
Caused by error:
! Object `margin` not found.
── Failure ('test-ti_fn.R:63:5'): ti functions / yoy works ─────────────────────
Expected `{ ... }` not to throw any errors.
Actually got a <rlang_error> with message:
i In argument: `margin = sum(margin, na.rm = TRUE)`
Caused by error:
! Object `margin` not found.
── Failure ('test-ti_fn.R:75:5'): ti functions / qoq works ─────────────────────
Expected `{ ... }` not to throw any errors.
Actually got a <rlang_error> with message:
i In argument: `margin = sum(margin, na.rm = TRUE)`
Caused by error:
! Object `margin` not found.
── Failure ('test-ti_fn.R:86:5'): ti functions / mom works ─────────────────────
Expected `{ ... }` not to throw any errors.
Actually got a <rlang_error> with message:
i In argument: `margin = sum(margin, na.rm = TRUE)`
Caused by error:
! Object `margin` not found.
── Failure ('test-ti_fn.R:97:5'): ti functions / wow works ─────────────────────
Expected `{ ... }` not to throw any errors.
Actually got a <rlang_error> with message:
i In argument: `margin = sum(margin, na.rm = TRUE)`
Caused by error:
! Object `margin` not found.
── Failure ('test-ti_fn.R:108:5'): ti functions / dod works ────────────────────
Expected `{ ... }` not to throw any errors.
Actually got a <rlang_error> with message:
i In argument: `margin = sum(margin, na.rm = TRUE)`
Caused by error:
! Object `margin` not found.
── Failure ('test-ti_fn.R:119:5'): ti functions / yoytd works ──────────────────
Expected `{ ... }` not to throw any errors.
Actually got a <rlang_error> with message:
i In argument: `margin = sum(margin, na.rm = TRUE)`
Caused by error:
! Object `margin` not found.
── Failure ('test-ti_fn.R:131:5'): ti functions / qoqtd works ──────────────────
Expected `{ ... }` not to throw any errors.
Actually got a <rlang_error> with message:
i In argument: `margin = sum(margin, na.rm = TRUE)`
Caused by error:
! Object `margin` not found.
── Failure ('test-ti_fn.R:141:5'): ti functions / momtd works ──────────────────
Expected `{ ... }` not to throw any errors.
Actually got a <rlang_error> with message:
i In argument: `margin = sum(margin, na.rm = TRUE)`
Caused by error:
! Object `margin` not found.
── Failure ('test-ti_fn.R:151:5'): ti functions / wowtd works ──────────────────
Expected `{ ... }` not to throw any errors.
Actually got a <rlang_error> with message:
i In argument: `margin = sum(margin, na.rm = TRUE)`
Caused by error:
! Object `margin` not found.
── Failure ('test-ti_fn.R:159:5'): ti functions / pytd works ───────────────────
Expected `{ ... }` not to throw any errors.
Actually got a <rlang_error> with message:
i In argument: `margin = sum(margin, na.rm = TRUE)`
Caused by error:
! Object `margin` not found.
── Failure ('test-ti_fn.R:170:5'): ti functions / pqtd works ───────────────────
Expected `{ ... }` not to throw any errors.
Actually got a <rlang_error> with message:
i In argument: `margin = sum(margin, na.rm = TRUE)`
Caused by error:
! Object `margin` not found.
── Failure ('test-ti_fn.R:181:5'): ti functions / pmtd works ───────────────────
Expected `{ ... }` not to throw any errors.
Actually got a <rlang_error> with message:
i In argument: `margin = sum(margin, na.rm = TRUE)`
Caused by error:
! Object `margin` not found.
── Failure ('test-ti_fn.R:193:5'): ti functions / pwtd works ───────────────────
Expected `{ ... }` not to throw any errors.
Actually got a <rlang_error> with message:
i In argument: `margin = sum(margin, na.rm = TRUE)`
Caused by error:
! Object `margin` not found.
── Failure ('test-ti_fn.R:204:5'): ti functions / ytdopy works ─────────────────
Expected `{ ... }` not to throw any errors.
Actually got a <rlang_error> with message:
i In argument: `margin = sum(margin, na.rm = TRUE)`
Caused by error:
! Object `margin` not found.
── Failure ('test-ti_fn.R:215:5'): ti functions / mtdopm works ─────────────────
Expected `{ ... }` not to throw any errors.
Actually got a <rlang_error> with message:
i In argument: `margin = sum(margin, na.rm = TRUE)`
Caused by error:
! Object `margin` not found.
── Failure ('test-ti_fn.R:227:5'): ti functions / qtdopq works ─────────────────
Expected `{ ... }` not to throw any errors.
Actually got a <rlang_error> with message:
i In argument: `margin = sum(margin, na.rm = TRUE)`
Caused by error:
! Object `margin` not found.
── Failure ('test-ti_fn.R:237:5'): ti functions / wtdopw works ─────────────────
Expected `{ ... }` not to throw any errors.
Actually got a <rlang_error> with message:
i In argument: `margin = sum(margin, na.rm = TRUE)`
Caused by error:
! Object `margin` not found.
── Failure ('test-ti_fn.R:247:5'): ti functions / abc works ────────────────────
Expected `{ ... }` not to throw any errors.
Actually got a <rlang_error> with message:
i In argument: `abc_margin = sum(margin, na.rm = TRUE)`
Caused by error:
! Object `margin` not found.
── Failure ('test-ti_fn.R:256:5'): ti functions / cohort works ─────────────────
Expected `{ ... }` not to throw any errors.
Actually got a <rlang_error> with message:
i In argument: `margin`
Caused by error:
! Object `margin` not found.
[ FAIL 55 | WARN 0 | SKIP 0 | PASS 6 ]
Error:
! Test failures.
Execution halted
Flavor: r-oldrel-windows-x86_64
These binaries (installable software) and packages are in development.
They may not be fully stable and should be used with caution. We make no claims about them.
Health stats visible at Monitor.