* using log directory 'd:/Rcompile/CRANpkg/local/4.5/gsDesign.Rcheck'
* using R Under development (unstable) (2025-02-27 r87839 ucrt)
* using platform: x86_64-w64-mingw32
* R was compiled by
    gcc.exe (GCC) 13.3.0
    GNU Fortran (GCC) 13.3.0
* running under: Windows Server 2022 x64 (build 20348)
* 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 hidden files and directories ... OK
* checking for portable file names ... OK
* checking whether package 'gsDesign' can be installed ... OK
See 'https://www.r-project.org/nosvn/R.check/r-devel-windows-x86_64/gsDesign-00install.html' for details.
* used C compiler: 'gcc.exe (GCC) 13.3.0'
* checking installed package size ... OK
* checking package directory ... 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 ... [1s] OK
* checking whether the package can be loaded with stated dependencies ... [1s] OK
* checking whether the package can be unloaded cleanly ... [1s] OK
* checking whether the namespace can be loaded with stated dependencies ... [1s] OK
* checking whether the namespace can be unloaded cleanly ... [1s] OK
* checking loading without being on the library search path ... [1s] 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 ... [19s] OK
* checking Rd files ... [2s] OK
* checking Rd metadata ... 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 compiled code ... OK
* checking installed files from 'inst/doc' ... OK
* checking files in 'vignettes' ... OK
* checking examples ... [3s] ERROR
Running examples in 'gsDesign-Ex.R' failed
The error most likely occurred in:

> ### 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 ... [159s] OK
  Running 'testthat.R' [158s]
* checking for unstated dependencies in vignettes ... OK
* checking package vignettes ... OK
* checking re-building of vignette outputs ... [56s] OK
* checking PDF version of manual ... [32s] OK
* checking HTML version of manual ... [12s] OK
* DONE
Status: 1 ERROR