datacloning / dclone

Data Cloning and MCMC Tools for Maximum Likelihood Methods
https://github.com/datacloning/dclone
7 stars 2 forks source link

Registered S3 method overwritten by 'R2WinBUGS': #14

Closed skhan-math-uw closed 1 year ago

skhan-math-uw commented 5 years ago

jags.parfit does not work without R2WinBUGS. If R2WinBUGS is not installed, it gives "Error in loadNamespace(name) : there is no package called ‘R2WinBUGS’". It works if R2WinBUGS is installed, though it shows the message

Registered S3 method overwritten by 'R2WinBUGS': method from
as.mcmc.list.bugs dclone

the first time I run jags.parfit.

psolymos commented 5 years ago

I think the error is related to jags.parfit using R2WinBUGS::write.model when the model is supplied as a character vector or function. I will investigate further.