Closed danielturek closed 9 months ago
Fixes #1345
@paciorek @perrydv I think this is a pretty reasonable change, and I'm ok with this getting merged, pending any thoughts from either of you.
Closing this without merging given discussion in issue #1345
Modified the type-checking in
registerDistributions
, to allow a default value for thex
argument of user-defined distributions. For example, the following is now ok:This should never affect model calculations, but does result in a user-defined density function (in the R environment) which has a default value for the
x
argument.