Error when loading premade priors

Hey,

I get the following error message when running brms models with a CSC supercomputer. I am running a R script and I load the priors into the script with load(Priors.RData).

Error in rbind(deparse.level, ...) : 
  numbers of columns of arguments do not match
Calls: brm ... .validate_prior -> which -> duplicated -> rbind -> rbind
Execution halted

I think the issue is due to the supercomputer having different brms version to my local computer which I use to produce the “Priors.RData” file. CSC has brms version 2.22.0 and my computer has brms version 2.23.0.

However, if I copy-paste the code producing the priors from my local script to the CSC supercomputer script it works fine. So the problem is with the model objects. I would prefer to produce the priors on my local computer and then just send/drop the RData files to the supercomputer so I don’t have to keep updating two scripts separately. Is there anything I can do to solve this issue? I don’t think I can update the R packages within the supercomputer as they control the version of R it runs on?

Why is there such a stark difference between the prior objects in the brms version 2.22.0 and 2.23.0?