I am testing an RMarkdown document that includes a Stan simulation run under cmdstanr. It fails when I try to execute this command:
Gfit <- mod$sample( data = dsg, refresh = -1, chains = n_chains, seed = 2, init = init_ll, adapt_delta = 0.95, step_size = 0.1 )
and this error message appears:
Error in validate_cmdstan_args(self) :
Assertion on ‘self$refresh’ failed: Element 1 is not >= 0.
The error message is quite incomprehensible so I don’t know where to look for the cause of the problem in my code.
I hesitate to post the whole code because it is very long but let me know if more is needed.
Basically it would be helpful just to know what the error message is about!