Have you resolved this issue yet? I got the exact same issue when I was running my code on the cluster. I don’t think it’s caused by the readRDS function. When I ran the readRDS function separately, it worked fine. But whenever I called the stan_model function on the cluster, the same error occurred.