R session Aborted with changing prior

<a class=“attachment”
I am working on fitting a hierarchical ODE model to data collected from different subjects and getting an error message saying “R session Aborted” if I increase the number of hyper priors.
The error occurs once sampling starts.
I tried deleting the .rds files before running the code but that didnt solve the problem.

Attached are the stan and R codes.

Could someone please help.


The code is not attached. If you are using Rstudio, running an R session in the terminal might help. I noticed memory overhead in Rstudio lately which can crash R.

Thanks @stijn

I removed lines -mtune=native -march =native from Makevars,win file and sampling did complete.
I use Windows operating system , so was wondering if the error was due to using windows.


1 Like