Genentech / jmpost

https://genentech.github.io/jmpost/
17 stars 4 forks source link

Potential export issue with `as.CmdStanMCMC` #387

Closed gowerc closed 1 month ago

gowerc commented 2 months ago

Not 100% sure whats going on but looks like there might be a Namespace issue with as.CmdStanMCMC.

devtools::load_all(export_all = FALSE)

Error in UseMethod("as.CmdStanMCMC") : 
  no applicable method for 'as.CmdStanMCMC' applied to an object of class "JointModelSamples"
gowerc commented 2 months ago

Ah, on reflection I think this might be because cmdstanr now provide their own as.CmdStanMCMC method and I loaded cmdstanr after jmpost. I think the simple solution is to import and re-export the cmdstanr::as.CmdStanMCMC method of defining our own.