- using R Under development (unstable) (2025-02-21 r87787)
- using platform: x86_64-pc-linux-gnu
- R was compiled by
clang version 20.1.0-rc2
flang version 20.1.0-rc2
- running under: Fedora Linux 40 (Workstation Edition)
- using session charset: UTF-8
- using option ‘--no-stop-on-test-error’
- 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 ... [28s/38s] OK
See the install log for details.
- used C compiler: ‘clang version 20.1.0-rc2’
- 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 ... 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 ... [57s/76s] 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 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 ... 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 of length 1
Calls: %>% ... rtf_encode_table -> paste -> as_rtf_footnote -> unlist
Execution halted
- checking for unstated dependencies in ‘tests’ ... OK
- checking tests ... [280s/348s] OK
Running ‘testthat.R’ [280s/347s]
- checking for unstated dependencies in vignettes ... OK
- checking package vignettes ... OK
- checking re-building of vignette outputs ... [97s/122s] OK
- checking PDF version of manual ... [10s/10s] OK
- checking HTML version of manual ... OK
- checking for non-standard things in the check directory ... OK
- checking for detritus in the temp directory ... OK
- DONE
Status: 1 ERROR