It is my understanding that the sim2jam function within the mgcv package uses a simulation output from rjags, and the top answer here says that the only way to use the function