* using log directory ‘/home/hornik/tmp/R.check/r-devel-clang/Work/PKGS/gsDesign.Rcheck’
* using R Under development (unstable) (2025-02-23 r87804)
* using platform: x86_64-pc-linux-gnu
* R was compiled by
    Debian clang version 19.1.7 (1+b1)
    Debian flang-new version 19.1.7 (1+b1)
* running under: Debian GNU/Linux trixie/sid
* using session charset: UTF-8
* checking for file ‘gsDesign/DESCRIPTION’ ... OK
* this is package ‘gsDesign’ version ‘3.6.6’
* package encoding: UTF-8
* 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 executable files ... OK
* checking for hidden files and directories ... OK
* checking for portable file names ... OK
* checking for sufficient/correct file permissions ... OK
* checking whether package ‘gsDesign’ can be installed ... OK
See 'https://www.r-project.org/nosvn/R.check/r-devel-linux-x86_64-debian-clang/gsDesign-00install.html' for details.
* used C compiler: ‘Debian clang version 19.1.7 (1+b1)’
* 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 ... [2s/2s] OK
* checking whether the package can be loaded with stated dependencies ... [1s/2s] OK
* checking whether the package can be unloaded cleanly ... [1s/2s] OK
* checking whether the namespace can be loaded with stated dependencies ... [1s/2s] OK
* checking whether the namespace can be unloaded cleanly ... [2s/2s] OK
* checking loading without being on the library search path ... [2s/2s] 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 ... [37s/49s] OK
* checking Rd files ... [1s/1s] 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 line endings in C/C++/Fortran sources/headers ... OK
* checking pragmas in C/C++ headers and code ... OK
* checking compilation flags used ... OK
* checking compiled code ... OK
* checking installed files from ‘inst/doc’ ... OK
* checking files in ‘vignettes’ ... OK
* checking examples ... [3s/4s] ERROR
Running examples in ‘gsDesign-Ex.R’ failed
The error most likely occurred in:

> base::assign(".ptime", proc.time(), pos = "CheckExEnv")
> ### Name: as_rtf
> ### Title: Save a summary table object as an RTF file
> ### Aliases: as_rtf as_rtf.gsBinomialExactTable as_rtf.gsBoundSummary
> 
> ### ** Examples
> 
> # as_rtf for gsBinomialExact
> zz <- gsBinomialExact(
+   k = 3, theta = seq(0.1, 0.9, 0.1), n.I = c(12, 24, 36),
+   a = c(-1, 0, 11), b = c(5, 9, 12)
+ )
> zz %>%
+   as_table() %>%
+   as_rtf(
+     file = tempfile(fileext = ".rtf"),
+     title = "Power/Type I Error and Expected Sample Size for a Group Sequential Design"
+   )
> 
> safety_design <- binomialSPRT(
+   p0 = .04, p1 = .1, alpha = .04, beta = .2, minn = 4, maxn = 75
+ )
> safety_power <- gsBinomialExact(
+   k = length(safety_design$n.I),
+   theta = seq(.02, .16, .02),
+   n.I = safety_design$n.I,
+   a = safety_design$lower$bound,
+   b = safety_design$upper$bound
+ )
> safety_power %>%
+   as_table() %>%
+   as_rtf(
+     file = tempfile(fileext = ".rtf"),
+     theta_label = "Underlying\nAE Rate",
+     prob_decimals = 3,
+     bound_label = c("Low Rate", "High Rate")
+   )
> # as_rtf for gsBoundSummary
> xgs <- gsSurv(lambdaC = .2, hr = .5, eta = .1, T = 2, minfup = 1.5)
> gsBoundSummary(xgs, timename = "Year", tdigits = 1) %>% as_rtf(file = tempfile(fileext = ".rtf"))
Error in unlist(attr(text, "text_indent_first"), attr(text, "text_indent_left"),  : 
  'recursive' must be a length-1 vector
Calls: %>% ... rtf_encode_table -> paste -> as_rtf_footnote -> unlist
Execution halted
* checking for unstated dependencies in ‘tests’ ... OK
* checking tests ... [170s/238s] OK
  Running ‘testthat.R’ [170s/238s]
* checking for unstated dependencies in vignettes ... OK
* checking package vignettes ... OK
* checking re-building of vignette outputs ... [69s/101s] OK
* checking PDF version of manual ... [11s/15s] OK
* checking HTML version of manual ... [5s/8s] OK
* checking for non-standard things in the check directory ... OK
* DONE
Status: 1 ERROR