* using log directory ‘/srv/hornik/tmp/CRAN_pretest/jsmodule.Rcheck’ * using R Under development (unstable) (2025-07-01 r88373) * using platform: x86_64-pc-linux-gnu * R was compiled by Debian clang version 19.1.7 (3) Debian flang-new version 19.1.7 (3) * running under: Debian GNU/Linux 13 (trixie) * using session charset: UTF-8 * checking for file ‘jsmodule/DESCRIPTION’ ... OK * this is package ‘jsmodule’ version ‘1.6.11’ * package encoding: UTF-8 * checking CRAN incoming feasibility ... [5s/7s] OK * 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 ‘jsmodule’ can be installed ... [18s/18s] 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 ... [3s/3s] OK * checking whether the package can be loaded with stated dependencies ... [3s/3s] OK * checking whether the package can be unloaded cleanly ... [3s/3s] OK * checking whether the namespace can be loaded with stated dependencies ... [3s/3s] OK * checking whether the namespace can be unloaded cleanly ... [3s/3s] OK * checking loading without being on the library search path ... [3s/3s] 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 ... [29s/29s] OK * checking Rd files ... [0s/0s] 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 ... [0m/30m] ERROR Running examples in ‘jsmodule-Ex.R’ failed The error most likely occurred in: > base::assign(".ptime", proc.time(), pos = "CheckExEnv") > ### Name: timerocModule > ### Title: timerocModule: shiny module server for time-dependent roc > ### analysis > ### Aliases: timerocModule timerocModule2 > > ### ** Examples > > library(shiny) > library(DT) Attaching package: ‘DT’ The following objects are masked from ‘package:shiny’: dataTableOutput, renderDataTable > library(data.table) > library(jstable) > library(ggplot2) > library(timeROC) > library(survIDINRI) Loading required package: survC1 Loading required package: survival > > ui <- fluidPage(sidebarLayout( + sidebarPanel(timerocUI("timeroc")), + mainPanel( + plotOutput("plot_timeroc"), + ggplotdownUI("timeroc"), + DTOutput("table_timeroc") + ) + )) > > > server <- function(input, output, session) { + data <- reactive({ + dt_data <- as.data.table(pbc) + + factor_vars <- names(dt_data)[sapply(dt_data, function(x){length(table(x))}) <= 6] + dt_data[, (factor_vars) := lapply(.SD, factor), .SDcols = factor_vars] + + return(dt_data) + }) + + data.label <- reactive({ + jstable::mk.lev(data()) + }) + + out_timeroc <- callModule( + timerocModule, + "timeroc", + data = data, + data_label = data.label, + data_varStruct = NULL + ) + + observe({ + tb <- tryCatch(out_timeroc()$tb, error = function(e) NULL) + print(tb) + }) + + output$plot_timeroc <- renderPlot({ + { + print(out_timeroc()$plot) + } + }) + + + output$table_timeroc <- renderDT({ + datatable( + out_timeroc()$tb, + rownames = F, + editable = F, + extensions = "Buttons", + caption = "ROC results", + options = c(jstable::opt.tbreg("roctable"), list(scrollX = TRUE)) + ) + }) + + + } > > > library(shiny) > library(DT) > library(data.table) > library(jstable) > library(ggplot2) > library(timeROC) > library(survIDINRI) > > ui <- fluidPage(sidebarLayout( + sidebarPanel(timerocUI("timeroc")), + mainPanel( + plotOutput("plot_timeroc"), + ggplotdownUI("timeroc"), + DTOutput("table_timeroc") + ) + )) > > > server <- function(input, output, session) { + data <- reactive({ + dt_data <- as.data.table(pbc) + + factor_vars <- names(dt_data)[sapply(dt_data, function(x){length(table(x))}) <= 6] + dt_data[, (factor_vars) := lapply(.SD, factor), .SDcols = factor_vars] + + return(dt_data) + }) + + data.label <- reactive({ + jstable::mk.lev(data()) + }) + + out_timeroc <- callModule( + timerocModule2, + "timeroc", + data = data, + data_label = data.label, + data_varStruct = NULL + ) + + observe({ + tb <- tryCatch(out_timeroc()$tb, error = function(e) NULL) + print(tb) + }) + + output$plot_timeroc <- renderPlot({ + { + print(out_timeroc()$plot) + } + }) + + + output$table_timeroc <- renderDT({ + datatable( + out_timeroc()$tb, + rownames = F, + editable = F, + extensions = "Buttons", + caption = "ROC results", + options = c(jstable::opt.tbreg("roctable"), list(scrollX = TRUE)) + ) + }) + + + } > > shinyApp(ui, server) Listening on http://127.0.0.1:4589 Execution halted * checking for unstated dependencies in ‘tests’ ... OK * checking tests ... [4s/4s] OK Running ‘testthat.R’ [3s/3s] * checking for unstated dependencies in vignettes ... OK * checking package vignettes ... OK * checking re-building of vignette outputs ... [2s/2s] OK * checking PDF version of manual ... [3s/3s] OK * checking HTML version of manual ... [1s/1s] OK * checking for non-standard things in the check directory ... OK * checking for detritus in the temp directory ... OK * DONE Status: 1 ERROR