MixSIAR icon indicating copy to clipboard operation
MixSIAR copied to clipboard

R session aborted

Open paulchittaro-NOAA opened this issue 10 months ago • 2 comments

R session aborted - R encountered a fatal error. Rsession-arm64 quit unexpectedly

I get the above error messages after 'output_JAGS(jags.1, mix, source, output_options)' is executed regardless of whether I use RStudio or R, as well as if I use example data (Ex 2: Geese) or my own dataset. In fact, it seems that the error occurs when I execute dev.off() or graphics.off(), so does that mean that the error is related to plots?

Also, the following error appears (which has been noted in previous posts = https://github.com/brianstock/MixSIAR/issues/323): 'Error in UseMethod("depth") : no applicable method for 'depth' applied to an object of class "NULL" '

Any suggestions on how to correct this issue would be greatly appreciated.

R version 4.3.3 (2024-02-29) -- "Angel Food Cake" Platform: aarch64-apple-darwin20 (64-bit) RStudio: Version 2023.12.1+402 (2023.12.1+402) MacBook Air (M1, 2020): macOS Monterey; version 12.7.4

traceback() 13: depth(path) 12: upViewport(depth(vp), recording = FALSE) 11: popgrobvp.viewport(x$vp) 10: popgrobvp(x$vp) 9: postDraw.grob(x) 8: postDraw(x) 7: drawGTree(x) 6: recordGraphics(drawGTree(x), list(x = x), getNamespace("grid")) 5: grid.draw.gTree(gtable) 4: grid.draw(gtable) 3: print.ggplot(ggplot2::ggplot(df, ggplot2::aes(x = x, fill = sources, colour = sources)) + ggplot2::geom_density(alpha = 0.3, ggplot2::aes(y = ..scaled..)) + ggplot2::xlim(0, 1) + ggplot2::theme_bw() + ggplot2::xlab("Proportion of Diet") + ggplot2::ylab("Scaled Posterior Density") + ggplot2::labs(title = my.title) + ggplot2::theme(legend.position = c(1, 1), legend.justification = c(1, 1), legend.title = ggplot2::element_blank())) 2: print(ggplot2::ggplot(df, ggplot2::aes(x = x, fill = sources, colour = sources)) + ggplot2::geom_density(alpha = 0.3, ggplot2::aes(y = ..scaled..)) + ggplot2::xlim(0, 1) + ggplot2::theme_bw() + ggplot2::xlab("Proportion of Diet") + ggplot2::ylab("Scaled Posterior Density") + ggplot2::labs(title = my.title) + ggplot2::theme(legend.position = c(1, 1), legend.justification = c(1, 1), legend.title = ggplot2::element_blank())) 1: output_JAGS(jags.1, mix, source)

paulchittaro-NOAA avatar Apr 08 '24 23:04 paulchittaro-NOAA