Open psyxusheng opened 3 years ago
Unfortunately, I cannot reproduce this issue on Windows or Linux (using TreeBUGS 1.4.5, R 4.0.3, JAGS 4.3.0 and RStudio 1.3.1073). Did you update all packages? In specific, did you check whether JAGS is correctly installed and works within R (you can do this by installing and loading the rjags
package)?
The function fitModel
is an internal function of the TreeBUGS package. If the package has been loaded with library(TreeBUGS)
, the function should be available within the scope of the other functions such as betaMPT
. Can you run the code when using traitMPT(...)
instead of betaMPT(...)
?
I runed an example code like:
how ever it gets : could not find function "fitModel"
What causes this?