R Studio Crashes when running SIAR model

The first time i ever ran this model it worked fine. Later when I reopened and tried to rerun, every time I run the siarmcmcdirichletv4 model it crashes, and gives the popup "R session aborted, R encountered a fatal error, and session was terminated". Ive uninstalled and reinstalled R (now have 3.5.0), and cant resolve the error. The data set isnt very large, only 50 observations for the consumer model. Ive tried running it in R console, and it also crashed. Code below:

library(siar)
graphics.off()
head(dimid_consumer_age)
ï..Dimid_Age C13 N15
1 2 -10.4 5.5
2 2 -12.2 6.4
3 3 -9.5 6.4
4 1 -9.9 6.7
5 3 -9.9 5.7
6 1 -10.2 5.9
head(Source)
Species Mean_C13 SD_C13 Mean_N15 SD_N15
1 Macroalgae -15.1333 0.3983 4.7500 0.2588
2 Sargassum -16.9667 1.4289 4.0289 0.5679
3 Seagrass -8.3333 1.4566 4.5467 1.8623
head(TEF)
Species Mean_C13 SD_C13 Mean_N15 SD_N15
1 Macroalgae 1.63 0.63 3.54 0.74
2 Sargassum 1.63 0.63 3.54 0.74
3 Seagrass 1.63 0.63 3.54 0.74
concs<-0
model_dimid_age<-siarmcmcdirichletv4(dimid_consumer_age, Source, TEF, concs)

runs to up to group 7 out of 7 and then crashes every time.

Hi KTS, sorry to hear about that!

You might try to test this model in just R to see if it is an issue with R, or RStudio. Also, if you haven't updated RStudio in a while, an uninstall reinstall may help.


The RStudio IDE team usually needs a bit of background info to see if they can help you and/or improve the IDE.

System Information:

  • RStudio Edition: (Desktop or Server)
  • RStudio Version:
  • OS Version:
  • R Version:
  • Your sessionInfo():

Also