- using R version 4.4.1 Patched (2024-06-25 r86831)
- using platform: x86_64-pc-linux-gnu
- R was compiled by
gcc-13 (Debian 13.3.0-1) 13.3.0
GNU Fortran (Debian 13.3.0-1) 13.3.0
- running under: Debian GNU/Linux trixie/sid
- using session charset: UTF-8
- checking for file ‘tables/DESCRIPTION’ ... OK
- this is package ‘tables’ version ‘0.9.25’
- 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 serialization versions ... OK
- checking whether package ‘tables’ can be installed ... OK
See the install log for details.
- 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 ... [1s/1s] OK
- checking whether the package can be loaded with stated dependencies ... [1s/1s] OK
- checking whether the package can be unloaded cleanly ... [1s/1s] OK
- checking whether the namespace can be loaded with stated dependencies ... [0s/1s] OK
- checking whether the namespace can be unloaded cleanly ... [1s/1s] OK
- checking loading without being on the library search path ... [1s/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 ... [15s/18s] 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 sizes of PDF files under ‘inst/doc’ ... OK
- checking installed files from ‘inst/doc’ ... OK
- checking files in ‘vignettes’ ... OK
- checking examples ... [5s/6s] ERROR
Running examples in ‘tables-Ex.R’ failed
The error most likely occurred in:
> base::assign(".ptime", proc.time(), pos = "CheckExEnv")
> ### Name: matrix_form.tabular
> ### Title: Transform tabular object to matrices printable by formatters
> ### package
> ### Aliases: matrix_form.tabular
>
> ### ** Examples
>
> if (requireNamespace("formatters")) {
+ Sex <- factor(sample(c("Male", "Female"), 100, rep=TRUE))
+ Status <- factor(sample(c("low", "medium", "high"), 100, rep=TRUE))
+ z <- rnorm(100) + 5
+ fmt <- function(x) {
+ s <- format(x, digits=2)
+ even <- ((1:length(s)) %% 2) == 0
+ s[even] <- sprintf("(%s)", s[even])
+ s
+ }
+ tab <- tabular( Justify(c)*Heading()*z*Sex*Heading(Statistic)*Format(fmt())*(mean+sd)
+ ~ Status )
+ mform <- matrix_form.tabular(tab)
+ page <- 1
+ cat("Page ", page, " Full table\n\n")
+ cat(formatters::toString(mform))
+
+ # This shows automatic pagination, breaking up the
+ # table by rows
+ byrow <- formatters::pag_indices_inner(formatters::mf_rinfo(mform),
+ rlpp = 2,
+ min_siblings = 1)
+ for (i in seq_along(byrow)) {
+ mform2 <- matrix_form.tabular(tab[byrow[[i]], ])
+ page <- page + 1
+ cat("\nPage ", page, " Rows", byrow[[i]], "\n\n")
+ cat(formatters::toString(mform2))
+ }
+
+ # This gives the breaks by columns, counting the
+ # row label columns:
+ bycol <- formatters::vert_pag_indices(mform, cpp = 30, rep_cols = 2)
+ # Display the table with both kinds of breaks
+ for (i in seq_along(byrow)) {
+ rows <- byrow[[i]]
+ for (j in seq_along(bycol)) {
+ cols <- bycol[[j]]
+ cols <- cols[cols > 2] - 2 # cols includes the row labels
+ mform3 <- matrix_form.tabular(tab[rows, cols, drop = FALSE])
+ page <- page + 1
+ cat("\nPage ", page, "Rows", rows, "column", cols, "\n\n")
+ cat(formatters::toString(mform3))
+ }
+ }
+ }
Loading required namespace: formatters
Page 1 Full table
Status
high low medium
————————————————————————————————————————
Female mean 4.85 5.11 5.03
sd (0.80) (1.05) (1.06)
Male mean 4.97 4.71 5.33
sd (0.85) (0.87) (1.10)
Page 2 Rows 1 2
Status
high low medium
——————————————————————————————————————
Female mean 4.9 5.1 5.0
sd (0.8) (1.1) (1.1)
Page 3 Rows 3 4
Status
high low medium
——————————————————————————————————————
Male mean 4.97 4.71 5.33
sd (0.85) (0.87) (1.10)
Error in formatters::vert_pag_indices(mform, cpp = 30, rep_cols = 2) :
argument "fontspec" is missing, with no default
Calls: <Anonymous> -> matrix_form -> matrix_form
Execution halted
- checking for unstated dependencies in vignettes ... OK
- checking package vignettes ... OK
- checking running R code from vignettes ... [6s/7s] OK
‘tables.Rnw’... [6s/7s] OK
- checking re-building of vignette outputs ... [32s/44s] OK
- checking PDF version of manual ... [9s/11s] OK
- checking HTML version of manual ... [2s/3s] OK
- checking for non-standard things in the check directory ... OK
- DONE
Status: 1 ERROR