R Under development (unstable) (2025-12-11 r89147 ucrt) -- "Unsuffered Consequences" Copyright (C) 2025 The R Foundation for Statistical Computing Platform: x86_64-w64-mingw32/x64 R is free software and comes with ABSOLUTELY NO WARRANTY. You are welcome to redistribute it under certain conditions. Type 'license()' or 'licence()' for distribution details. R is a collaborative project with many contributors. Type 'contributors()' for more information and 'citation()' on how to cite R or R packages in publications. Type 'demo()' for some demos, 'help()' for on-line help, or 'help.start()' for an HTML browser interface to help. Type 'q()' to quit R. > # 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(r2typ) Attaching package: 'r2typ' The following objects are masked from 'package:stats': line, pt The following objects are masked from 'package:graphics': box, grid, image, par, rect, text The following objects are masked from 'package:grDevices': cm, rgb The following objects are masked from 'package:utils': page, stack > > test_check("r2typ") Saving _problems/test-foundations-39.R Saving _problems/test-layout-204.R Saving _problems/test-model-83.R Saving _problems/test-model-89.R Saving _problems/test-model-139.R Saving _problems/test-model-152.R Saving _problems/test-text-12.R [ FAIL 7 | WARN 0 | SKIP 0 | PASS 251 ] ══ Failed tests ════════════════════════════════════════════════════════════════ ── Error ('test-foundations.R:39:3'): Test foundations functions ─────────────── Error: Typst compilation failed: error: unexpected argument: costs ┌─ \\?\D:\temp\2025_12_11_23_05_16_16848\RtmpUXGVLJ\file634427ca33ba.typ:1:6 │ 1 │ #text(costs: (hyphenation: 100%, runt: 100%))[hey] │ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ Backtrace: ▆ 1. ├─testthat::expect_true(is_valid_typst(out, error_on_failure = TRUE)) at test-foundations.R:39:3 2. │ └─testthat::quasi_label(enquo(object), label) 3. │ └─rlang::eval_bare(expr, quo_get_env(quo)) 4. └─r2typ::is_valid_typst(out, error_on_failure = TRUE) 5. └─base::tryCatch(...) 6. └─base (local) tryCatchList(expr, classes, parentenv, handlers) 7. └─base (local) tryCatchOne(expr, names, parentenv, handlers[[1L]]) 8. └─value[[3L]](cond) ── Error ('test-layout.R:204:3'): Test layout functions ──────────────────────── Error: Typst compilation failed: error: unknown variable: skew ┌─ \\?\D:\temp\2025_12_11_23_05_16_16848\RtmpUXGVLJ\file63443cada11.typ:1:5 │ 1 │ #set skew(ax: -12deg) │ ^^^^ Backtrace: ▆ 1. ├─testthat::expect_true(is_valid_typst(out, error_on_failure = TRUE)) at test-layout.R:204:3 2. │ └─testthat::quasi_label(enquo(object), label) 3. │ └─rlang::eval_bare(expr, quo_get_env(quo)) 4. └─r2typ::is_valid_typst(out, error_on_failure = TRUE) 5. └─base::tryCatch(...) 6. └─base (local) tryCatchList(expr, classes, parentenv, handlers) 7. └─base (local) tryCatchOne(expr, names, parentenv, handlers[[1L]]) 8. └─value[[3L]](cond) ── Failure ('test-model.R:83:3'): Test model functions ───────────────────────── Expected `is_valid_typst(out)` to be TRUE. Differences: `actual`: FALSE `expected`: TRUE ── Failure ('test-model.R:89:3'): Test model functions ───────────────────────── Expected `is_valid_typst(out)` to be TRUE. Differences: `actual`: FALSE `expected`: TRUE ── Failure ('test-model.R:139:3'): Test model functions ──────────────────────── Expected `is_valid_typst(out)` to be TRUE. Differences: `actual`: FALSE `expected`: TRUE ── Failure ('test-model.R:152:3'): Test model functions ──────────────────────── Expected `is_valid_typst(out)` to be TRUE. Differences: `actual`: FALSE `expected`: TRUE ── Error ('test-text.R:12:3'): Test text functions ───────────────────────────── Error: Typst compilation failed: error: expected integer or none, found array ┌─ \\?\D:\temp\2025_12_11_23_05_16_16848\RtmpUXGVLJ\file634479098c3.typ:1:21 │ 1 │ #text(stylistic-set: (1, 2, 3))[10 years ago] │ ^^^^^^^^^ Backtrace: ▆ 1. ├─testthat::expect_true(is_valid_typst(out, error_on_failure = TRUE)) at test-text.R:12:3 2. │ └─testthat::quasi_label(enquo(object), label) 3. │ └─rlang::eval_bare(expr, quo_get_env(quo)) 4. └─r2typ::is_valid_typst(out, error_on_failure = TRUE) 5. └─base::tryCatch(...) 6. └─base (local) tryCatchList(expr, classes, parentenv, handlers) 7. └─base (local) tryCatchOne(expr, names, parentenv, handlers[[1L]]) 8. └─value[[3L]](cond) [ FAIL 7 | WARN 0 | SKIP 0 | PASS 251 ] Error: ! Test failures. Execution halted