* using log directory 'd:/Rcompile/CRANpkg/local/3.6/decisionSupport.Rcheck' * using R version 3.6.3 (2020-02-29) * using platform: x86_64-w64-mingw32 (64-bit) * using session charset: ISO8859-1 * checking for file 'decisionSupport/DESCRIPTION' ... OK * checking extension type ... Package * this is package 'decisionSupport' version '1.106' * 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 'decisionSupport' can be installed ... OK * 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 R 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 ... [24s] OK * checking Rd files ... 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 installed files from 'inst/doc' ... OK * checking files in 'vignettes' ... OK * checking examples ... ERROR Running examples in 'decisionSupport-Ex.R' failed The error most likely occurred in: > ### Name: compound_figure > ### Title: Compound figure for decision support > ### Aliases: compound_figure > ### Keywords: Monte-Carlo NPV decision-analysis decisionSupport > ### net-present-value risk uncertainty > > ### ** Examples > > ############################################################## > # Example 1 (Creating the estimate from the command line): > ############################################################# > # Create the estimate object: > > cost_benefit_table <- data.frame(label = c("Revenue", "Costs"), + variable = c("revenue", "costs"), + distribution = c("norm", "norm"), + lower = c(100, 500), + median = c(NA, NA), + upper = c(10000, 5000)) > > # (a) Define the model function without name for the return value: > > profit1 <- function() { + Decision <- revenue - costs + cashflow <- rnorm(rep(revenue, 20)) + return(list(Revenues = revenue, + Costs = costs, + cashflow = cashflow, + Decision = Decision)) + } > > compound_figure(model = profit1, + input_table = cost_benefit_table, + decision_var_name = "Decision", + cashflow_var_name = "cashflow", + model_runs = 1e2, + distribution_method = 'smooth_simple_overlay') Error in estimate(distribution = marginal[["distribution"]], lower = marginal[["lower"]], : "distribution" must be supplied as character string. Calls: compound_figure -> -> random -> -> estimate Execution halted * checking for unstated dependencies in 'tests' ... OK * checking tests ... [20s] OK Running 'testthat.R' [20s] * checking for unstated dependencies in vignettes ... OK * checking package vignettes in 'inst/doc' ... OK * checking re-building of vignette outputs ... [55s] OK * checking PDF version of manual ... OK * DONE Status: 1 ERROR