- using R version 4.5.1 (2025-06-13 ucrt)
- using platform: x86_64-w64-mingw32
- R was compiled by
gcc.exe (GCC) 14.2.0
GNU Fortran (GCC) 14.2.0
- running under: Windows Server 2022 x64 (build 20348)
- using session charset: UTF-8
- checking for file 'maraca/DESCRIPTION' ... OK
- checking extension type ... Package
- this is package 'maraca' version '1.0.0'
- 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 'maraca' can be installed ... OK
See the install log for details.
- checking installed package size ... INFO
installed size is 8.4Mb
sub-directories of 1Mb or more:
doc 7.3Mb
- 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 ... [2s] 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 ... [2s] OK
- checking loading without being on the library search path ... [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 ... [6s] OK
- checking Rd files ... [1s] 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 contents of 'data' directory ... OK
- checking data for non-ASCII characters ... [0s] OK
- checking LazyData ... OK
- checking data for ASCII and uncompressed saves ... OK
- checking installed files from 'inst/doc' ... OK
- checking files in 'vignettes' ... OK
- checking examples ... [3s] ERROR
Running examples in 'maraca-Ex.R' failed
The error most likely occurred in:
> ### Name: component_plot
> ### Title: Plotting components of win odds
> ### Aliases: component_plot component_plot.default component_plot.maraca
> ### component_plot.hce
>
> ### ** Examples
>
>
> data(hce_scenario_a)
>
> maraca_dat <- maraca(data = hce_scenario_a,
+ step_outcomes = c("Outcome I", "Outcome II",
+ "Outcome III", "Outcome IV"),
+ last_outcome = "Continuous outcome",
+ fixed_followup_days = 3 * 365,
+ column_names = c(outcome = "GROUP",
+ arm = "TRTP",
+ value = "AVAL0"),
+ arm_levels = c(active = "Active",
+ control = "Control"),
+ compute_win_odds = TRUE
+ )
>
> component_plot(maraca_dat)
>
> Rates_A <- c(1.72, 1.74, 0.58, 1.5, 1)
> Rates_P <- c(2.47, 2.24, 2.9, 4, 6)
> hce_dat <- hce::simHCE(n = 2500, TTE_A = Rates_A, TTE_P = Rates_P,
+ CM_A = -3, CM_P = -6, CSD_A = 16, CSD_P = 15, fixedfy = 3,
+ seed = 31337)
>
> component_plot(hce_dat)
Error in maraca(data = x, step_outcomes = step_outcomes, last_outcome = last_outcome, :
Assertion on 'step_outcomes' failed: Must be of type 'character', not 'factor'.
Calls: component_plot ... .maraca_from_hce_data -> maraca -> <Anonymous> -> makeAssertion -> mstop
Execution halted
- checking for unstated dependencies in vignettes ... OK
- checking package vignettes ... OK
- checking re-building of vignette outputs ... [45s] ERROR
Error(s) in re-building vignettes:
--- re-building 'faq.Rmd' using rmarkdown
Quitting from faq.Rmd:34-64 [unnamed-chunk-1]
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
<error/rlang_error>
Error in `maraca()`:
! Assertion on 'step_outcomes' failed: Must be of type 'character', not 'factor'.
---
Backtrace:
▆
1. ├─base::plot(hce_dat, compute_win_odds = FALSE)
2. └─maraca:::plot.hce(hce_dat, compute_win_odds = FALSE)
3. └─maraca:::.maraca_from_hce_data(...)
4. └─maraca::maraca(...)
5. └─checkmate::assert_character(step_outcomes, any.missing = FALSE)
6. └─checkmate::makeAssertion(x, res, .var.name, add)
7. └─checkmate:::mstop(...)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Error: processing vignette 'faq.Rmd' failed with diagnostics:
Assertion on 'step_outcomes' failed: Must be of type 'character', not 'factor'.
--- failed re-building 'faq.Rmd'
--- re-building 'maraca.Rmd' using rmarkdown
Quitting from maraca.Rmd:172-180 [unnamed-chunk-2]
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
<error/rlang_error>
Error in `maraca()`:
! Assertion on 'step_outcomes' failed: Must be of type 'character', not 'factor'.
---
Backtrace:
▆
1. ├─base::plot(...)
2. └─maraca:::plot.hce(...)
3. └─maraca:::.maraca_from_hce_data(...)
4. └─maraca::maraca(...)
5. └─checkmate::assert_character(step_outcomes, any.missing = FALSE)
6. └─checkmate::makeAssertion(x, res, .var.name, add)
7. └─checkmate:::mstop(...)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Error: processing vignette 'maraca.Rmd' failed with diagnostics:
Assertion on 'step_outcomes' failed: Must be of type 'character', not 'factor'.
--- failed re-building 'maraca.Rmd'
--- re-building 'mosaic.Rmd' using rmarkdown
Quitting from mosaic.Rmd:133-144 [unnamed-chunk-7]
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
<error/rlang_error>
Error in `maraca()`:
! Assertion on 'step_outcomes' failed: Must be of type 'character', not 'factor'.
---
Backtrace:
▆
1. ├─maraca::mosaic_plot(hce_dat)
2. └─maraca:::mosaic_plot.hce(hce_dat)
3. └─maraca:::.maraca_from_hce_data(...)
4. └─maraca::maraca(...)
5. └─checkmate::assert_character(step_outcomes, any.missing = FALSE)
6. └─checkmate::makeAssertion(x, res, .var.name, add)
7. └─checkmate:::mstop(...)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Error: processing vignette 'mosaic.Rmd' failed with diagnostics:
Assertion on 'step_outcomes' failed: Must be of type 'character', not 'factor'.
--- failed re-building 'mosaic.Rmd'
--- re-building 'otherEndpoints.Rmd' using rmarkdown
--- finished re-building 'otherEndpoints.Rmd'
--- re-building 'themes.Rmd' using rmarkdown
--- finished re-building 'themes.Rmd'
--- re-building 'validation.Rmd' using rmarkdown
--- finished re-building 'validation.Rmd'
--- re-building 'winOdds.Rmd' using rmarkdown
Quitting from winOdds.Rmd:66-77 [unnamed-chunk-3]
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
<error/rlang_error>
Error in `maraca()`:
! Assertion on 'step_outcomes' failed: Must be of type 'character', not 'factor'.
---
Backtrace:
▆
1. ├─maraca::component_plot(hce_dat)
2. └─maraca:::component_plot.hce(hce_dat)
3. └─maraca:::.maraca_from_hce_data(...)
4. └─maraca::maraca(...)
5. └─checkmate::assert_character(step_outcomes, any.missing = FALSE)
6. └─checkmate::makeAssertion(x, res, .var.name, add)
7. └─checkmate:::mstop(...)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Error: processing vignette 'winOdds.Rmd' failed with diagnostics:
Assertion on 'step_outcomes' failed: Must be of type 'character', not 'factor'.
--- failed re-building 'winOdds.Rmd'
SUMMARY: processing the following files failed:
'faq.Rmd' 'maraca.Rmd' 'mosaic.Rmd' 'winOdds.Rmd'
Error: Vignette re-building failed.
Execution halted
- checking PDF version of manual ... [20s] OK
- checking HTML version of manual ... [3s] OK
- DONE
Status: 2 ERRORs