- using R Under development (unstable) (2025-03-13 r87967)
- using platform: x86_64-pc-linux-gnu
- R was compiled by
clang version 20.1.0
flang version 20.1.0
- running under: Fedora Linux 40 (Workstation Edition)
- using session charset: UTF-8
- using option ‘--no-stop-on-test-error’
- 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 ... [10s/12s] 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 ... 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 whether startup messages can be suppressed ... 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 ... [17s/17s] OK
- checking Rd files ... 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 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 ... [22s/22s] 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 ... OK
Running ‘testthat.R’
- checking for unstated dependencies in vignettes ... OK
- checking package vignettes ... OK
- checking re-building of vignette outputs ... OK
- checking PDF version of manual ... OK
- checking HTML version of manual ... OK
- checking for non-standard things in the check directory ... OK
- checking for detritus in the temp directory ... OK
- DONE
Status: 1 ERROR, 1 NOTE