Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

R session aborted #375

Open
paulchittaro-NOAA opened this issue Apr 8, 2024 · 2 comments
Open

R session aborted #375

paulchittaro-NOAA opened this issue Apr 8, 2024 · 2 comments

Comments

@paulchittaro-NOAA
Copy link

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 = #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)

@ersandov8
Copy link

I have come across the same issue. Did you find a workaround or is it still an issue when you execute output_JAGS?

@paulchittaro-NOAA
Copy link
Author

Unfortunately, I did not find a solution yet.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants