profandyfield / discovr

discovr package for R to accompany Discovering Statistics Using R and RStudio
132 stars 25 forks source link

issue with running tutorial discovr_08 #18

Open AhmedAli8829 opened 7 months ago

AhmedAli8829 commented 7 months ago

processing file: discovr_08.Rmd solution]

Quitting from lines at lines 1984-2007 [unnamed-chunk-22] (discovr_08.Rmd) Error in validObject(): ! invalid class "ddenseModelMatrix" object: superclass "xMatrix" not defined in the environment of the object's class Backtrace:

  1. base::summary(BayesFactor::posterior(album_full_bf, iterations = 10000))
  2. BayesFactor::posterior(album_full_bf, iterations = 10000)
  3. BayesFactor::posterior(...)
  4. BayesFactor:::fullDesignMatrix(formula, data, dataTypes)
  5. base::lapply(...) ...
    1. MatrixModels::model.Matrix(formula(fmla), data = data, sparse = sparse)
    2. methods::new(...)
    3. Matrix (local) initialize(value, ...)
    4. methods (local) .nextMethod(.Object = .Object, ... = ...)
    5. methods::validObject(.Object) Warning messages: 1: In eval(parse_only(code), envir = envir) : 2: In eval(parse_only(code), envir = envir) : Execution halted
profandyfield commented 7 months ago

This is an issue with BayesFactor -see https://github.com/richarddmorey/BayesFactor/issues/169