brianstock / MixSIAR

A framework for Bayesian mixing models in R:
http://brianstock.github.io/MixSIAR/
90 stars 75 forks source link

error in output_JAGS(jags.1, mix, source, output_options) #364

Open Xc-Qin opened 8 months ago

Xc-Qin commented 8 months ago

output_options <- list(summary_save = TRUE,

  • summary_name = "summary_statistics",
  • sup_post = FALSE,
  • plot_post_save_pdf = TRUE,
  • plot_post_name = "posterior_density",
  • sup_pairs = FALSE,
  • plot_pairs_save_pdf = TRUE,
  • plot_pairs_name = "pairs_plot",
  • sup_xy = TRUE,
  • plot_xy_save_pdf = FALSE,
  • plot_xy_name = "xy_plot",
  • gelman = TRUE,
  • heidel = FALSE,
  • geweke = TRUE,
  • diag_save = TRUE,
  • diag_name = "diagnostics",
  • indiv_effect = FALSE,
  • plot_post_save_png = FALSE,
  • plot_pairs_save_png = FALSE,
  • plot_xy_save_png = FALSE,
  • diag_save_ggmcmc = FALSE) output_JAGS(jags.1, mix, source, output_options) Error in UseMethod("depth") : no applicable method for 'depth' applied to an object of class "NULL" In addition: Warning messages: 1: In par(usr) : argument 1 does not name a graphical parameter 2: In par(usr) : argument 1 does not name a graphical parameter 3: In par(usr) : argument 1 does not name a graphical parameter 4: In par(usr) : argument 1 does not name a graphical parameter 5: In par(usr) : argument 1 does not name a graphical parameter 6: In par(usr) : argument 1 does not name a graphical parameter 7: The dot-dot notation (..scaled..) was deprecated in ggplot2 3.4.0. ℹ Please use after_stat(scaled) instead. ℹ The deprecated feature was likely used in the MixSIAR package. Please report the issue at https://github.com/brianstock/MixSIAR/issues. This warning is displayed once every 8 hours. Call lifecycle::last_lifecycle_warnings() to see where this warning was generated.
nattycep commented 4 months ago

I also got this error. I'm not sure how to proceed.

output_JAGS(jags.1, mix, source) Error in UseMethod("depth") : no applicable method for 'depth' applied to an object of class "NULL" In addition: Warning messages: 1: In par(usr) : argument 1 does not name a graphical parameter 2: In par(usr) : argument 1 does not name a graphical parameter 3: In par(usr) : argument 1 does not name a graphical parameter 4: The dot-dot notation (..scaled..) was deprecated in ggplot2 3.4.0. ℹ Please use after_stat(scaled) instead. ℹ The deprecated feature was likely used in the MixSIAR package. Please report the issue at https://github.com/brianstock/MixSIAR/issues. This warning is displayed once every 8 hours. Call lifecycle::last_lifecycle_warnings() to see where this warning was generated.