• using R version 4.5.0 beta (2025-03-29 r88069)
  • using platform: aarch64-apple-darwin20
  • R was compiled by     Apple clang version 14.0.0 (clang-1400.0.29.202)     GNU Fortran (GCC) 14.2.0
  • running under: macOS Ventura 13.4
  • using session charset: UTF-8
  • checking for file ‘cbcTools/DESCRIPTION’ ... OK
  • this is package ‘cbcTools’ version ‘0.5.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 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 ‘cbcTools’ can be installed ... [2s/3s] OK See the install log for details.
  • 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 ... [1s/1s] OK
  • checking whether the package can be loaded with stated dependencies ... [0s/1s] OK
  • checking whether the package can be unloaded cleanly ... [0s/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 whether startup messages can be suppressed ... [1s/1s] 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 ... [2s/3s] OK
  • checking Rd files ... [0s/0s] NOTE checkRd: (-1) cbc_design.Rd:160: Lost braces; missing escapes or markup?    160 | see \code{?DoE.base::fac.design} as well as the JSS article on the {DoE.base}        | ^ checkRd: (-1) cbc_design.Rd:174: Lost braces; missing escapes or markup?    174 | well as the JSS article on the {DoE.base} package (Grömping, 2018).        | ^ checkRd: (-1) cbc_design.Rd:197: Lost braces; missing escapes or markup?    197 | {idefix} package (Traets et al, 2020).        | ^ checkRd: (-1) cbc_power.Rd:70: Lost braces; missing escapes or markup?     70 | estimation. See the {logitr} documentation for details about other        | ^
  • 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 ... [4s/5s] ERROR Running examples in ‘cbcTools-Ex.R’ failed The error most likely occurred in: > ### Name: cbc_design > ### Title: Make a choice-based conjoint survey design > ### Aliases: cbc_design > ### Keywords: DoE.base design experiment idefix logit logitr mixed mnl mxl > > ### ** Examples > > library(cbcTools) > > # A simple conjoint experiment about apples > > # Generate all possible profiles > profiles <- cbc_profiles( + price = c(1, 1.5, 2, 2.5, 3, 3.5, 4, 4.5, 5), + type = c("Fuji", "Gala", "Honeycrisp"), + freshness = c('Poor', 'Average', 'Excellent') + ) > > # Make a survey by randomly sampling from all possible profiles > # (This is the default setting where method = 'random') > design_random <- cbc_design( + profiles = profiles, + n_resp = 100, # Number of respondents + n_alts = 3, # Number of alternatives per question + n_q = 6 # Number of questions per respondent + ) > > # Make a survey using a full factorial design and include a "no choice" option > design_full <- cbc_design( + profiles = profiles, + n_resp = 100, # Number of respondents + n_alts = 3, # Number of alternatives per question + n_q = 6, # Number of questions per respondent + method = 'full', # Change this to use a different method, e.g. 'orthogonal', or 'dopt' + no_choice = TRUE + ) > > # Make a survey by randomly sampling from all possible profiles > # with each level of the "type" attribute appearing as an alternative > design_random_labeled <- cbc_design( + profiles = profiles, + n_resp = 100, # Number of respondents + n_alts = 3, # Number of alternatives per question + n_q = 6, # Number of questions per respondent + label = "type" + ) > > # Make a Bayesian D-efficient design with a prior model specified > # Note that by speed can be improved by setting parallel = TRUE > design_bayesian <- cbc_design( + profiles = profiles, + n_resp = 100, # Number of respondents + n_alts = 3, # Number of alternatives per question + n_q = 6, # Number of questions per respondent + n_start = 1, # Defaults to 5, set to 1 here for a quick example + priors = list( + price = -0.1, + type = c(0.1, 0.2), + freshness = c(0.1, 0.2) + ), + method = "CEA", + parallel = FALSE + ) Error in idefix::Decode(des = D$design, n.alts = n_alts, alt.cte = alt_cte, :   'n.alts' does not seem correct based on nrow(des) Calls: cbc_design -> make_design_bayesian -> <Anonymous> Execution halted
  • checking for unstated dependencies in ‘tests’ ... OK
  • checking tests ... [1s/1s] OK   Running ‘testthat.R’ [1s/1s]
  • checking for unstated dependencies in vignettes ... OK
  • checking package vignettes ... OK
  • checking re-building of vignette outputs ... [14s/27s] ERROR Error(s) in re-building vignettes: --- re-building ‘usage.Rmd’ using rmarkdown Quitting from usage.Rmd:206-222 [unnamed-chunk-7] ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ <error/rlang_error> Error in `idefix::Decode()`: ! 'n.alts' does not seem correct based on nrow(des) --- Backtrace:     ▆  1. └─cbcTools::cbc_design(...)  2. └─cbcTools:::make_design_bayesian(...)  3. └─idefix::Decode(...) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Error: processing vignette 'usage.Rmd' failed with diagnostics: 'n.alts' does not seem correct based on nrow(des) --- failed re-building ‘usage.Rmd’ SUMMARY: processing the following file failed:   ‘usage.Rmd’ Error: Vignette re-building failed. Execution halted
  • checking PDF version of manual ... [5s/6s] OK
  • DONE Status: 2 ERRORs, 1 NOTE
  • using check arguments '--no-clean-on-error '