brianstock / MixSIAR

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

Functions not found: Modifying MixSIAR plots #367

Closed amroco closed 7 months ago

amroco commented 8 months ago

Hi there,

I am running MixSIAR 3.2.12 in R version 4.3.2.

I would like to access the posterior chains to modify plots sensu the vignette: https://brianstock.github.io/MixSIAR/articles/modify_output.html

When I run: ls("package: MixSIAR")

I get the following functions listed as available:

 "calc_area"           "combine_sources"     "compare_models"      "load_discr_data"     "load_mix_data"       "load_source_data"    "output_JAGS"         "plot_continuous_var"
"plot_data"           "plot_data_one_iso"   "plot_data_two_iso"   "plot_intervals"      "plot_prior"          "run_model"           "summary_stat"        "write_JAGS_model"  

Note that the functions "output_diagnostics" and "output_stats" are not listed. I would like to use these functions as shown in the vingnette above, am I doing something incorrectly?

Thanks so much for any help.

Best, A

brianstock commented 8 months ago

Did you install the latest version from GitHub? From the vignette:

Install MixSIAR from Github The latest changes are not yet on CRAN. Install the GitHub version: install.packages("devtools") remotes::install_github("brianstock/MixSIAR", dependencies=T)

On Tue, Feb 6, 2024, 6:18 AM Amy Rose Coghlan @.***> wrote:

Hi there,

I am running MixSIAR 3.2.12 in R version 4.3.2.

I would like to access the posterior chains to modify plots sensu the vignette: https://brianstock.github.io/MixSIAR/articles/modify_output.html

When I run: ls("package: MixSIAR")

I get the following functions listed as available:

"calc_area" "combine_sources" "compare_models" "load_discr_data" "load_mix_data" "load_source_data" "output_JAGS" "plot_continuous_var" "plot_data" "plot_data_one_iso" "plot_data_two_iso" "plot_intervals" "plot_prior" "run_model" "summary_stat" "write_JAGS_model"

Note that the functions "output_diagnostics" and "output_stats" are not listed. I would like to use these functions as shown in the vingnette above, am I doing something incorrectly?

Thanks so much for any help.

Best, A

— Reply to this email directly, view it on GitHub https://github.com/brianstock/MixSIAR/issues/367, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABHDA4YLEMWEIUIHO4NAEXTYSG4JBAVCNFSM6AAAAABC3KTPB6VHI2DSMVQWIX3LMV43ASLTON2WKOZSGEYTSOJYGE2TCNI . You are receiving this because you are subscribed to this thread.Message ID: @.***>

amroco commented 7 months ago

Hi when I reinstall from Github again I get the following message:

remotes::install_github("brianstock/MixSIAR", dependencies=T) Skipping install of 'MixSIAR' from a github remote, the SHA1 (037978f3) has not changed since last install. Useforce = TRUEto force installation

And I then ran: force = TRUE

and the functions are back!

Thank you :)