* using log directory 'd:/RCompile/CRANincoming/R-devel/r2typ.Rcheck' * using R Under development (unstable) (2025-12-11 r89147 ucrt) * using platform: x86_64-w64-mingw32 * R was compiled by gcc.exe (GCC) 14.3.0 GNU Fortran (GCC) 14.3.0 * running under: Windows Server 2022 x64 (build 20348) * using session charset: UTF-8 * checking for file 'r2typ/DESCRIPTION' ... OK * this is package 'r2typ' version '0.2.0' * package encoding: UTF-8 * checking CRAN incoming feasibility ... NOTE Maintainer: 'Joseph Barbier ' New submission Non-FOSS package license (file LICENSE) Possibly misspelled words in DESCRIPTION: Typst (2:36, 6:70, 6:146) typ (6:16) The Title field should be in title case. Current version is: 'An R Package For Generating Typst Markup' In title case that is: 'An R Package for Generating Typst Markup' The Description field should not start with the package name, 'This package' or similar. * checking package namespace information ... OK * checking package dependencies ... OK * checking if this is a source package ... OK * checking if there is a namespace ... OK * checking for hidden files and directories ... OK * checking for portable file names ... OK * checking whether package 'r2typ' can be installed ... OK * checking installed package size ... OK * checking package directory ... OK * checking for future file timestamps ... OK * checking 'build' directory ... OK * checking DESCRIPTION meta-information ... OK * checking top-level files ... OK * checking for left-over files ... OK * checking index information ... OK * checking package subdirectories ... OK * checking code files for non-ASCII characters ... OK * checking R files for syntax errors ... OK * checking whether the package can be loaded ... OK * checking whether the package can be loaded with stated dependencies ... OK * checking whether the package can be unloaded cleanly ... OK * checking whether the namespace can be loaded with stated dependencies ... OK * checking whether the namespace can be unloaded cleanly ... OK * checking loading without being on the library search path ... OK * checking use of S3 registration ... OK * checking dependencies in R code ... OK * checking S3 generic/method consistency ... OK * checking replacement functions ... OK * checking foreign function calls ... OK * checking R code for possible problems ... OK * checking Rd files ... OK * checking Rd metadata ... OK * checking Rd line widths ... OK * checking Rd cross-references ... OK * checking for missing documentation entries ... OK * checking for code/documentation mismatches ... OK * checking Rd \usage sections ... OK * checking Rd contents ... OK * checking for unstated dependencies in examples ... OK * checking installed files from 'inst/doc' ... OK * checking files in 'vignettes' ... OK * checking examples ... OK * checking for unstated dependencies in 'tests' ... OK * checking tests ... [41s] ERROR Running 'testthat.R' [41s] 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(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 * checking for unstated dependencies in vignettes ... OK * checking package vignettes ... OK * checking re-building of vignette outputs ... [20s] OK * checking PDF version of manual ... [12s] OK * checking HTML version of manual ... OK * DONE Status: 1 ERROR, 1 NOTE