a lot of your functions have default arguments like:
options()$BFprogress
an issue with this is that if BFprogress hasn't been set, these functions will fail. these options are set when the user calls library(BayesFactor) (the code for this lives in onAttach.R), but this does not occur when BayesFactor is imported/used by another package.
the solution is to replace these defaults with:
getOption('BFprogress', interactive())
which has the added advantage that the default shows up in the documentation.
hi rich,
a lot of your functions have default arguments like:
an issue with this is that if BFprogress hasn't been set, these functions will fail. these options are set when the user calls
library(BayesFactor)
(the code for this lives in onAttach.R), but this does not occur when BayesFactor is imported/used by another package.the solution is to replace these defaults with:
which has the added advantage that the default shows up in the documentation.
cheers