New Upstream Snapshot - r-cran-shinystan

Ready changes

Summary

Merged new upstream version: 2.6.0+git20220804.1.f8ec132 (was: 2.6.0).

Resulting package

Built on 2023-02-08T13:37 (took 8m57s)

The resulting binary packages can be installed (if you have the apt repository enabled) by running one of:

apt install -t fresh-snapshots r-cran-shinystan

Lintian Result

Diff

diff --git a/DESCRIPTION b/DESCRIPTION
index be5e010..e1e06ba 100644
--- a/DESCRIPTION
+++ b/DESCRIPTION
@@ -26,7 +26,7 @@ Description: A graphical user interface for interactive Markov chain Monte
     packages).
 URL: https://mc-stan.org/shinystan/, https://discourse.mc-stan.org
 BugReports: https://github.com/stan-dev/shinystan/issues/
-License: GPL (>= 3)
+License: GPL (>=3)
 Depends: R (>= 3.1.0), shiny (>= 1.0.3)
 Imports: bayesplot (>= 1.5.0), colourpicker, DT (>= 0.2), dygraphs (>=
         1.1.1.2), ggplot2 (>= 2.1.1), gridExtra, gtools, markdown (>=
@@ -42,7 +42,7 @@ Encoding: UTF-8
 VignetteBuilder: knitr
 RoxygenNote: 7.1.2
 NeedsCompilation: no
-Packaged: 2022-03-02 19:40:48 UTC; jgabry
+Packaged: 2023-02-08 13:33:43 UTC; janitor
 Author: Jonah Gabry [aut, cre],
   Duco Veen [aut],
   Stan Development Team [ctb],
@@ -55,5 +55,3 @@ Author: Jonah Gabry [aut, cre],
   Daniel Lee [ctb],
   Dongying Song [ctb],
   Rob Trangucci [ctb]
-Repository: CRAN
-Date/Publication: 2022-03-03 00:10:02 UTC
diff --git a/MD5 b/MD5
deleted file mode 100644
index 39421ee..0000000
--- a/MD5
+++ /dev/null
@@ -1,155 +0,0 @@
-74aec21b19632c0f3b282de76cfc5d5f *DESCRIPTION
-b40a3187979c17f0bced342f1b19f019 *NAMESPACE
-138651be9886f97932aaa2a74330b506 *NEWS.md
-cb8b4c1da01511ffa9e4a52672197340 *R/deploy_shinystan.R
-6d38e2fe3d17712cd3e78c2937796651 *R/drop_parameters.R
-303de9371e8553a5abb14d0c3de4d442 *R/generate_quantity.R
-7b55a3cd7cbaab2556d8dc8746926d8e *R/launch_shinystan.R
-ac3edad54d03c6ae415b65dc4a9aaf6a *R/misc.R
-20dd8adffafc07f4863911cea57474c1 *R/retrieve.R
-26cf8e523b2df0a83ca7b816dc257946 *R/rhat_ess_monitor_fns.R
-86f3b24c3203b71c911f5585ed2695cc *R/shinystan-objects.R
-44a235ef322770c76ebe57fc285c120a *R/shinystan-package.R
-4a8c2649e4d0cb5bf52ba7e5e57852ea *R/sso-metadata.R
-5fea67518aa2479492ccf20972a858f5 *R/update_sso.R
-20dd674ef44d52319c33b0a7281377c4 *R/zzz.R
-bcda841c275f9280665eadcc63dd7cf1 *build/vignette.rds
-1fbaa2c537a63e4793a4eefb6d16eefa *data/eight_schools.rda
-fb4e1e387e7798fcd0d6c38f2610e3ae *inst/ShinyStan/css/ShinyStan.css
-df890d242ab7c26f95611ec69ecd3cf6 *inst/ShinyStan/css/ShinyStan_datatables.css
-60795af784b4fa949fe75ae03f92ed3a *inst/ShinyStan/css/ShinyStan_dygraphs.css
-84c246911ac509d380a8b8727d9b90cc *inst/ShinyStan/ggplot_fns.rda
-a0a80243a36b3c137be0c22a5e5db320 *inst/ShinyStan/global.R
-6b24790fd796b2bb8c3e5d7388f6bb09 *inst/ShinyStan/global_utils.R
-3c73834104b7c2aca4764abf771a9437 *inst/ShinyStan/helper_functions/gg_theme_elements.R
-6263d2f53f1f5f43568b163d8ae14939 *inst/ShinyStan/helper_functions/hmc_diagnostics_helpers.R
-c73ca0e1c576545d4666d3f8de58432a *inst/ShinyStan/helper_functions/shinystan_helpers.R
-eefcc7b3d6b0611f835b723d9b5b3c76 *inst/ShinyStan/helper_functions/summary_stats_helpers.R
-bc6d6f8d3f0fcbb679a1eb2838edca9e *inst/ShinyStan/html/accept_stat.html
-cab1a1971d748c7bc3a626dd463ddd20 *inst/ShinyStan/html/citation.html
-8c1710f4248dc751e6a9c4cca497e153 *inst/ShinyStan/html/contribs.html
-94a44fc865512c22980951379a7e1eb3 *inst/ShinyStan/html/energy.html
-376a60bd9304dd73201683be15d82e7f *inst/ShinyStan/html/home_page_links.html
-7acf1289ca348dbfacf4597d2fd868ac *inst/ShinyStan/html/mcse.html
-d8186416dfe866d76d04868b3d799ad9 *inst/ShinyStan/html/ndivergent.html
-abd86af9d3d53b91fb4598fd6bc8c235 *inst/ShinyStan/html/neff.html
-600b369f8bfdb9730d4132dee77bfa09 *inst/ShinyStan/html/nleapfrog.html
-b0ae8ae8c70e66f5dab2f23db758431d *inst/ShinyStan/html/nuts.html
-f14734d2e99859a7fb95664794991b0b *inst/ShinyStan/html/rhat.html
-ea03a15c96efeffacb3248455b879278 *inst/ShinyStan/html/stepsize.html
-fd118196e9934416767b5f2a93ace456 *inst/ShinyStan/html/treedepth.html
-9768aac58d82fc5ac5a791271b7ff080 *inst/ShinyStan/markdown/pp_check_tutorial.md
-e6401fdb6fdd16e37f5f214d3a9b645c *inst/ShinyStan/server.R
-eb966c57588e5d088035644d3c7df07e *inst/ShinyStan/server_files/debounce.R
-daf806b5eef588656c5de1e1f0e7f7c9 *inst/ShinyStan/server_files/pages/diagnose/ppcheck/ppcheck_helpers.R
-38e2c427669595ce1477976500f05fa7 *inst/ShinyStan/server_files/pages/diagnose/ppcheck/server/hists_rep_vs_obs.R
-79e9342c477626fadd8a4b2d9f21b303 *inst/ShinyStan/server_files/pages/diagnose/ppcheck/server/hists_resids.R
-c6c3eb9a9ae681f694bf7c44703f3b61 *inst/ShinyStan/server_files/pages/diagnose/ppcheck/server/hists_test_statistics.R
-eab2576ab75dd6d8fb496c3626643bdb *inst/ShinyStan/server_files/pages/diagnose/ppcheck/server/pp_utils.R
-b2cf0ae8be0539b60f6ff1cb989d371d *inst/ShinyStan/server_files/pages/diagnose/ppcheck/server/rep_vs_resid_rep.R
-93f6331e55f0cdfd110707ca4b4217a5 *inst/ShinyStan/server_files/pages/diagnose/ppcheck/server/rstanarm.R
-3aad62ed42681f45ce1c56f98a309bea *inst/ShinyStan/server_files/pages/diagnose/ppcheck/server/y_vs_avg_rep.R
-58b21a38cd2283bdf0c29adacd4f8d9a *inst/ShinyStan/server_files/pages/diagnose/ppcheck/ui/pp_get_y_and_yrep.R
-b434174524b89e91507615c969aece28 *inst/ShinyStan/server_files/pages/diagnose/server/autocorr.R
-36fd4593ae41c45f8067da605d882451 *inst/ShinyStan/server_files/pages/diagnose/server/diagnostics.R
-8aa60d3ddc4f3a60ac37d546f1084427 *inst/ShinyStan/server_files/pages/diagnose/server/multitrace.R
-e521c8fc8e3366acf72619bbf42c0ce0 *inst/ShinyStan/server_files/pages/diagnose/server/rhat_neff_mcse.R
-4542189cee5560a6738748c097584a48 *inst/ShinyStan/server_files/pages/diagnose/server/summary_stats_sampler.R
-e0592b41cff2f3bdc31d8ddded9d3f63 *inst/ShinyStan/server_files/pages/diagnose/ui/multitrace_customize.R
-43e9b1c4176277724be0c09341acacdd *inst/ShinyStan/server_files/pages/estimate/server/multiparameter_plot.R
-9612cb126c9f9f8b32cf88b05e4d015a *inst/ShinyStan/server_files/pages/estimate/server/summary_stats.R
-b620825673f5b876b859a808c2d6bd69 *inst/ShinyStan/server_files/pages/estimate/server/summary_stats_latex.R
-81e4fd5db762614b65a41d22d66f31a2 *inst/ShinyStan/server_files/pages/estimate/ui/multiparam_selectize.R
-36e6f41c23d377a7ffbf767c25256393 *inst/ShinyStan/server_files/pages/explore/server/bivariate.R
-8b067fe96414210049e12b4f279d269a *inst/ShinyStan/server_files/pages/explore/server/density.R
-9418e4b5ca1d4ab65c6e57c50a1e5cbf *inst/ShinyStan/server_files/pages/explore/server/histogram.R
-271f8307023c913f42823db91a37b218 *inst/ShinyStan/server_files/pages/explore/server/multiview.R
-eb22552e151cef9b16545db03826479f *inst/ShinyStan/server_files/pages/explore/server/summary_stats_param.R
-68c3ddd0e860782f470bf76ff1c2fece *inst/ShinyStan/server_files/pages/explore/server/trivariate.R
-e607e8b2b4c4e95cacebf66e65d68cbe *inst/ShinyStan/server_files/pages/explore/ui/ui_trivariate_select_x.R
-e238988ebca40ffc48484535fa7a21ba *inst/ShinyStan/server_files/pages/more/notes_and_code.R
-3a827028c9e83ba17f814c290e92bc37 *inst/ShinyStan/server_files/tooltips/tooltips.R
-2fc27877b0096f6c4f38075e4b9ca392 *inst/ShinyStan/server_files/utilities/extract_sso.R
-3c9202de42814945ecd3b782dd0bed24 *inst/ShinyStan/server_files/utilities/make_param_list_with_groups_sort.R
-0aca08d63e24eec7b567756eeb3b1c6e *inst/ShinyStan/server_files/utilities/par_samps_reactive.R
-b8aa7ca10835c5fcf42a7827a83bd1bc *inst/ShinyStan/server_utils.R
-d7b648b52d97e70625e7988a7af34ade *inst/ShinyStan/text/quick_mcse.txt
-337e2ae8d10746e993a2fdb2b136c8a3 *inst/ShinyStan/text/quick_neff.txt
-fca20976dc3b72a472afddce44fe79a9 *inst/ShinyStan/text/quick_rhat.txt
-eb5656c67ab6877ea5b40af0e6580163 *inst/ShinyStan/ui.R
-75c829804b96e6c70d35147b079ac31b *inst/ShinyStan/ui_files/PAGE_diagnose.R
-4f4f346325da651c9e8b438057c1e169 *inst/ShinyStan/ui_files/PAGE_estimate.R
-6710d82bfe91b64012d12a9ef591a660 *inst/ShinyStan/ui_files/PAGE_explore.R
-e9904a61b0b16eaca29cd56d55c86d83 *inst/ShinyStan/ui_files/PAGE_home.R
-c5ddf162c3efe6c0f75c5ba07173341a *inst/ShinyStan/ui_files/PAGE_more_menu.R
-e7a75e77d770e9a54f865b784b856964 *inst/ShinyStan/ui_files/about.R
-f1a83a6e00ae0677a1099e86a6543c97 *inst/ShinyStan/ui_files/autocorr_customize.R
-a8c37a1b02a4ee4a44fe1a06d0f8044c *inst/ShinyStan/ui_files/bivariate_customize.R
-f0cb7b8f79960e20e2ff7051ef41c287 *inst/ShinyStan/ui_files/density_customize.R
-c46ffd035f7a9dac87ea582fa6eda8cf *inst/ShinyStan/ui_files/diagnostics_by_parameter.R
-a375c9ee69367645692dd46603fad458 *inst/ShinyStan/ui_files/diagnostics_customize.R
-001ae1855d4c107873c0008edd53a229 *inst/ShinyStan/ui_files/diagnostics_energy.R
-8d45423aa63419b09bea8be1daadeb00 *inst/ShinyStan/ui_files/diagnostics_help.R
-fc7a1a5173e7f293866106a82eb53224 *inst/ShinyStan/ui_files/diagnostics_ndivergent.R
-337a8bfd1634d4f91a2db1fb664b7978 *inst/ShinyStan/ui_files/diagnostics_sample.R
-2cd496a8510a40bb19142e587b9ab409 *inst/ShinyStan/ui_files/diagnostics_stepsize.R
-43e3bf53d5cb8be61070b1bc5e30922a *inst/ShinyStan/ui_files/diagnostics_treedepth.R
-5446b6c251b8598491874c70d0108342 *inst/ShinyStan/ui_files/dynamic_trace_helptext.R
-b738df356601d0178ba40075c2af3aa1 *inst/ShinyStan/ui_files/glossary.R
-dbd45d8ee82df04345114e721bd53edd *inst/ShinyStan/ui_files/help.R
-02e5bae9ebd33ff5577dafcd5ca4fe35 *inst/ShinyStan/ui_files/hist_customize.R
-5acd6ce1acc80320fd826e33c8d633aa *inst/ShinyStan/ui_files/model_code.R
-f11b56c1dd6dcb9dc0ea09c1e31d112e *inst/ShinyStan/ui_files/multiparam_customize.R
-cfae13da6e0917b582de53051ea1d99f *inst/ShinyStan/ui_files/notepad.R
-1742a9bcbc6d2b1098eeadad69bb586e *inst/ShinyStan/ui_files/pp_about.R
-6dd5d24771c0b17c7cf8817ac7a16c07 *inst/ShinyStan/ui_files/pp_navlist.R
-9cb04e6edd9282f67bb54df6faeb5db5 *inst/ShinyStan/ui_files/pp_navlist_rstanarm.R
-baa6e49e6beb6265e5f0803eca51ef25 *inst/ShinyStan/ui_files/rhat_neff_mcse_layout.R
-3cbab0743e66f145011504dbf325120f *inst/ShinyStan/ui_files/sampler_stats_customize.R
-62adb9c92606365b6801f0204667b851 *inst/ShinyStan/ui_files/table_customize.R
-ef97d58fc0f6f8dccc1d76294c271109 *inst/ShinyStan/ui_files/table_latex_main.R
-56d0bf8789764b1eb947d80a24c52e51 *inst/ShinyStan/ui_files/table_latex_sidebar.R
-d853252f8d250f53c17ab13250061742 *inst/ShinyStan/ui_files/trivariate_customize.R
-f6b74991a2f27a894046f239079d75a5 *inst/ShinyStan/ui_files/trivariate_select.R
-ee99e64bf4bddb1903c51bf5a7dcb198 *inst/ShinyStan/ui_utils.R
-285908bfe77d8c5c8fcc32f4f247c0ad *inst/ShinyStan/www/stan_logo.png
-e93f803f7651ad9b964bc09fc09a8079 *inst/ShinyStan/www/wide_ensemble.png
-a1c3f55c26e29bb5364e67241d35ea42 *inst/ShinyStan/www/wide_funnel.png
-4a9ce3eb16c892abc49600a74d6a2f30 *inst/doc/deploy_shinystan.Rmd
-3d7a33f1db76c1386d694fdf3ec5b7b1 *inst/doc/deploy_shinystan.html
-0eb63ab1569c71d54c127de9d6384272 *inst/doc/shinystan-package.Rmd
-a76aa3373991a6e63c57f134d952d599 *inst/doc/shinystan-package.html
-c0dc4af637b875424b795442905a8abb *man/as.shinystan.Rd
-86b4ec5d6952f68c154763ff205717e5 *man/deploy_shinystan.Rd
-e4661a59bba2ff960e58cf9f00ea5cfb *man/drop_parameters.Rd
-5fad10a5cc62c59ea429a5ce90191e2e *man/figures/stanlogo.png
-22ca5e4b3c5c1502e743760475bbdb5e *man/generate_quantity.Rd
-b674d772b72bc10cf7a9b9b6791d8e61 *man/launch_shinystan.Rd
-5d7c8ea41e0439c2497bacf36ace0c53 *man/launch_shinystan_demo.Rd
-558e64931ac284c2f47efee46de9f1eb *man/rename_model.Rd
-66c52c5369ec45c39f7525b15f161d90 *man/retrieve.Rd
-abc3b3b9eaf85b3c1d291300dbc9c48f *man/shinystan-class.Rd
-ca95ebd3b3f4d19fec22199544f14faf *man/shinystan-metadata.Rd
-446e0e6993ac0d1642acb1670643f02c *man/shinystan-package.Rd
-657c9d10a24b3b564832a7adfe3fbe31 *man/update_sso.Rd
-de325b5bb126532699562a9f7b24187e *tests/testthat.R
-1ff52cc95107988fd70f12c38c03d3d1 *tests/testthat/data_for_retrieve_tests.R
-b704cae7c63f4016208d945467ee03c6 *tests/testthat/old_sso_for_tests.rda
-a219a69b94699bf81d7601f529039bc1 *tests/testthat/retrieve_sso_answers/test_answer_accept_stat.rds
-6be0416b236605b424effff8abfbe7b7 *tests/testthat/retrieve_sso_answers/test_answer_divergent.rds
-f242bff41c04687271918252b2677dd6 *tests/testthat/retrieve_sso_answers/test_answer_ess.rds
-e5dad9a76957b1e886c9836074b8eb64 *tests/testthat/retrieve_sso_answers/test_answer_mcse.rds
-550f8a548dd405a9b7a7fb5cc6d14be4 *tests/testthat/retrieve_sso_answers/test_answer_mean.rds
-ee52f53c3be7a33ff961ab2bb45e840d *tests/testthat/retrieve_sso_answers/test_answer_median.rds
-881b16b86609a689c8aa86ae5ef232a4 *tests/testthat/retrieve_sso_answers/test_answer_quantiles.rds
-b68616f4a30b736b9f190947bb7bfa84 *tests/testthat/retrieve_sso_answers/test_answer_rhat.rds
-be60b2e8534b0058c9147c2b97cdd979 *tests/testthat/retrieve_sso_answers/test_answer_sd.rds
-fd1f5cb720653b61cb5c3e7920141726 *tests/testthat/retrieve_sso_answers/test_answer_stepsize.rds
-682020d12d5f10b0b2d8a6dc5c563334 *tests/testthat/retrieve_sso_answers/test_answer_treedepth.rds
-cfce938b96f4f759407b063e81fa4f0d *tests/testthat/stanfit2_for_tests.rda
-205fadf40e75041510180558a9bcf409 *tests/testthat/test_creating_sso.R
-29ccf627e3843649d4220f31937228c9 *tests/testthat/test_deploy_shinystan.R
-bc62d4f470e55daff5403ccddb2ad9e4 *tests/testthat/test_misc.R
-dc806b96eb29f0d7feb2b853e6b86ff4 *tests/testthat/test_using_sso.R
-4a9ce3eb16c892abc49600a74d6a2f30 *vignettes/deploy_shinystan.Rmd
-0eb63ab1569c71d54c127de9d6384272 *vignettes/shinystan-package.Rmd
diff --git a/build/vignette.rds b/build/vignette.rds
index 00bdd26..145af21 100644
Binary files a/build/vignette.rds and b/build/vignette.rds differ
diff --git a/debian/changelog b/debian/changelog
index 0dd4743..a8a27ce 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,8 +1,12 @@
-r-cran-shinystan (2.6.0-2) UNRELEASED; urgency=medium
+r-cran-shinystan (2.6.0+git20220804.1.f8ec132-1) UNRELEASED; urgency=medium
 
+  [ Andreas Tille ]
   * Disable reprotest
 
- -- Andreas Tille <tille@debian.org>  Fri, 11 Mar 2022 12:10:43 +0100
+  [ Debian Janitor ]
+  * New upstream snapshot.
+
+ -- Andreas Tille <tille@debian.org>  Wed, 08 Feb 2023 13:33:48 -0000
 
 r-cran-shinystan (2.6.0-1) unstable; urgency=medium
 
diff --git a/inst/doc/deploy_shinystan.html b/inst/doc/deploy_shinystan.html
index bf5ddf9..6454598 100644
--- a/inst/doc/deploy_shinystan.html
+++ b/inst/doc/deploy_shinystan.html
@@ -15,7 +15,19 @@
 
 <title>Deploying to shinyapps.io</title>
 
-<script src="data:application/javascript;base64,Ly8gUGFuZG9jIDIuOSBhZGRzIGF0dHJpYnV0ZXMgb24gYm90aCBoZWFkZXIgYW5kIGRpdi4gV2UgcmVtb3ZlIHRoZSBmb3JtZXIgKHRvCi8vIGJlIGNvbXBhdGlibGUgd2l0aCB0aGUgYmVoYXZpb3Igb2YgUGFuZG9jIDwgMi44KS4KZG9jdW1lbnQuYWRkRXZlbnRMaXN0ZW5lcignRE9NQ29udGVudExvYWRlZCcsIGZ1bmN0aW9uKGUpIHsKICB2YXIgaHMgPSBkb2N1bWVudC5xdWVyeVNlbGVjdG9yQWxsKCJkaXYuc2VjdGlvbltjbGFzcyo9J2xldmVsJ10gPiA6Zmlyc3QtY2hpbGQiKTsKICB2YXIgaSwgaCwgYTsKICBmb3IgKGkgPSAwOyBpIDwgaHMubGVuZ3RoOyBpKyspIHsKICAgIGggPSBoc1tpXTsKICAgIGlmICghL15oWzEtNl0kL2kudGVzdChoLnRhZ05hbWUpKSBjb250aW51ZTsgIC8vIGl0IHNob3VsZCBiZSBhIGhlYWRlciBoMS1oNgogICAgYSA9IGguYXR0cmlidXRlczsKICAgIHdoaWxlIChhLmxlbmd0aCA+IDApIGgucmVtb3ZlQXR0cmlidXRlKGFbMF0ubmFtZSk7CiAgfQp9KTsK"></script>
+<script>// Pandoc 2.9 adds attributes on both header and div. We remove the former (to
+// be compatible with the behavior of Pandoc < 2.8).
+document.addEventListener('DOMContentLoaded', function(e) {
+  var hs = document.querySelectorAll("div.section[class*='level'] > :first-child");
+  var i, h, a;
+  for (i = 0; i < hs.length; i++) {
+    h = hs[i];
+    if (!/^h[1-6]$/i.test(h.tagName)) continue;  // it should be a header h1-h6
+    a = h.attributes;
+    while (a.length > 0) h.removeAttribute(a[0].name);
+  }
+});
+</script>
 
 <style type="text/css">
   code{white-space: pre-wrap;}
@@ -27,6 +39,7 @@
     </style>
 
 
+
 <style type="text/css">
   code {
     white-space: pre;
@@ -74,7 +87,7 @@ code span.al { color: #ff0000; font-weight: bold; } /* Alert */
 code span.an { color: #60a0b0; font-weight: bold; font-style: italic; } /* Annotation */
 code span.at { color: #7d9029; } /* Attribute */
 code span.bn { color: #40a070; } /* BaseN */
-code span.bu { } /* BuiltIn */
+code span.bu { color: #008000; } /* BuiltIn */
 code span.cf { color: #007020; font-weight: bold; } /* ControlFlow */
 code span.ch { color: #4070a0; } /* Char */
 code span.cn { color: #880000; } /* Constant */
@@ -87,7 +100,7 @@ code span.er { color: #ff0000; font-weight: bold; } /* Error */
 code span.ex { } /* Extension */
 code span.fl { color: #40a070; } /* Float */
 code span.fu { color: #06287e; } /* Function */
-code span.im { } /* Import */
+code span.im { color: #008000; font-weight: bold; } /* Import */
 code span.in { color: #60a0b0; font-weight: bold; font-style: italic; } /* Information */
 code span.kw { color: #007020; font-weight: bold; } /* Keyword */
 code span.op { color: #666666; } /* Operator */
@@ -108,13 +121,20 @@ code span.wa { color: #60a0b0; font-weight: bold; font-style: italic; } /* Warni
   for (var i = 0; i < sheets.length; i++) {
     if (sheets[i].ownerNode.dataset["origin"] !== "pandoc") continue;
     try { var rules = sheets[i].cssRules; } catch (e) { continue; }
-    for (var j = 0; j < rules.length; j++) {
+    var j = 0;
+    while (j < rules.length) {
       var rule = rules[j];
       // check if there is a div.sourceCode rule
-      if (rule.type !== rule.STYLE_RULE || rule.selectorText !== "div.sourceCode") continue;
+      if (rule.type !== rule.STYLE_RULE || rule.selectorText !== "div.sourceCode") {
+        j++;
+        continue;
+      }
       var style = rule.style.cssText;
       // check if color or background-color is set
-      if (rule.style.color === '' && rule.style.backgroundColor === '') continue;
+      if (rule.style.color === '' && rule.style.backgroundColor === '') {
+        j++;
+        continue;
+      }
       // replace div.sourceCode by a pre.sourceCode rule
       sheets[i].deleteRule(j);
       sheets[i].insertRule('pre.sourceCode{' + style + '}', j);
@@ -126,7 +146,187 @@ code span.wa { color: #60a0b0; font-weight: bold; font-style: italic; } /* Warni
 
 
 
-<link rel="stylesheet" href="data:text/css,body%20%7B%0Abackground%2Dcolor%3A%20%23fff%3B%0Amargin%3A%201em%20auto%3B%0Amax%2Dwidth%3A%20700px%3B%0Aoverflow%3A%20visible%3B%0Apadding%2Dleft%3A%202em%3B%0Apadding%2Dright%3A%202em%3B%0Afont%2Dfamily%3A%20%22Open%20Sans%22%2C%20%22Helvetica%20Neue%22%2C%20Helvetica%2C%20Arial%2C%20sans%2Dserif%3B%0Afont%2Dsize%3A%2014px%3B%0Aline%2Dheight%3A%201%2E35%3B%0A%7D%0A%23TOC%20%7B%0Aclear%3A%20both%3B%0Amargin%3A%200%200%2010px%2010px%3B%0Apadding%3A%204px%3B%0Awidth%3A%20400px%3B%0Aborder%3A%201px%20solid%20%23CCCCCC%3B%0Aborder%2Dradius%3A%205px%3B%0Abackground%2Dcolor%3A%20%23f6f6f6%3B%0Afont%2Dsize%3A%2013px%3B%0Aline%2Dheight%3A%201%2E3%3B%0A%7D%0A%23TOC%20%2Etoctitle%20%7B%0Afont%2Dweight%3A%20bold%3B%0Afont%2Dsize%3A%2015px%3B%0Amargin%2Dleft%3A%205px%3B%0A%7D%0A%23TOC%20ul%20%7B%0Apadding%2Dleft%3A%2040px%3B%0Amargin%2Dleft%3A%20%2D1%2E5em%3B%0Amargin%2Dtop%3A%205px%3B%0Amargin%2Dbottom%3A%205px%3B%0A%7D%0A%23TOC%20ul%20ul%20%7B%0Amargin%2Dleft%3A%20%2D2em%3B%0A%7D%0A%23TOC%20li%20%7B%0Aline%2Dheight%3A%2016px%3B%0A%7D%0Atable%20%7B%0Amargin%3A%201em%20auto%3B%0Aborder%2Dwidth%3A%201px%3B%0Aborder%2Dcolor%3A%20%23DDDDDD%3B%0Aborder%2Dstyle%3A%20outset%3B%0Aborder%2Dcollapse%3A%20collapse%3B%0A%7D%0Atable%20th%20%7B%0Aborder%2Dwidth%3A%202px%3B%0Apadding%3A%205px%3B%0Aborder%2Dstyle%3A%20inset%3B%0A%7D%0Atable%20td%20%7B%0Aborder%2Dwidth%3A%201px%3B%0Aborder%2Dstyle%3A%20inset%3B%0Aline%2Dheight%3A%2018px%3B%0Apadding%3A%205px%205px%3B%0A%7D%0Atable%2C%20table%20th%2C%20table%20td%20%7B%0Aborder%2Dleft%2Dstyle%3A%20none%3B%0Aborder%2Dright%2Dstyle%3A%20none%3B%0A%7D%0Atable%20thead%2C%20table%20tr%2Eeven%20%7B%0Abackground%2Dcolor%3A%20%23f7f7f7%3B%0A%7D%0Ap%20%7B%0Amargin%3A%200%2E5em%200%3B%0A%7D%0Ablockquote%20%7B%0Abackground%2Dcolor%3A%20%23f6f6f6%3B%0Apadding%3A%200%2E25em%200%2E75em%3B%0A%7D%0Ahr%20%7B%0Aborder%2Dstyle%3A%20solid%3B%0Aborder%3A%20none%3B%0Aborder%2Dtop%3A%201px%20solid%20%23777%3B%0Amargin%3A%2028px%200%3B%0A%7D%0Adl%20%7B%0Amargin%2Dleft%3A%200%3B%0A%7D%0Adl%20dd%20%7B%0Amargin%2Dbottom%3A%2013px%3B%0Amargin%2Dleft%3A%2013px%3B%0A%7D%0Adl%20dt%20%7B%0Afont%2Dweight%3A%20bold%3B%0A%7D%0Aul%20%7B%0Amargin%2Dtop%3A%200%3B%0A%7D%0Aul%20li%20%7B%0Alist%2Dstyle%3A%20circle%20outside%3B%0A%7D%0Aul%20ul%20%7B%0Amargin%2Dbottom%3A%200%3B%0A%7D%0Apre%2C%20code%20%7B%0Abackground%2Dcolor%3A%20%23f7f7f7%3B%0Aborder%2Dradius%3A%203px%3B%0Acolor%3A%20%23333%3B%0Awhite%2Dspace%3A%20pre%2Dwrap%3B%20%0A%7D%0Apre%20%7B%0Aborder%2Dradius%3A%203px%3B%0Amargin%3A%205px%200px%2010px%200px%3B%0Apadding%3A%2010px%3B%0A%7D%0Apre%3Anot%28%5Bclass%5D%29%20%7B%0Abackground%2Dcolor%3A%20%23f7f7f7%3B%0A%7D%0Acode%20%7B%0Afont%2Dfamily%3A%20Consolas%2C%20Monaco%2C%20%27Courier%20New%27%2C%20monospace%3B%0Afont%2Dsize%3A%2085%25%3B%0A%7D%0Ap%20%3E%20code%2C%20li%20%3E%20code%20%7B%0Apadding%3A%202px%200px%3B%0A%7D%0Adiv%2Efigure%20%7B%0Atext%2Dalign%3A%20center%3B%0A%7D%0Aimg%20%7B%0Abackground%2Dcolor%3A%20%23FFFFFF%3B%0Apadding%3A%202px%3B%0Aborder%3A%201px%20solid%20%23DDDDDD%3B%0Aborder%2Dradius%3A%203px%3B%0Aborder%3A%201px%20solid%20%23CCCCCC%3B%0Amargin%3A%200%205px%3B%0A%7D%0Ah1%20%7B%0Amargin%2Dtop%3A%200%3B%0Afont%2Dsize%3A%2035px%3B%0Aline%2Dheight%3A%2040px%3B%0A%7D%0Ah2%20%7B%0Aborder%2Dbottom%3A%204px%20solid%20%23f7f7f7%3B%0Apadding%2Dtop%3A%2010px%3B%0Apadding%2Dbottom%3A%202px%3B%0Afont%2Dsize%3A%20145%25%3B%0A%7D%0Ah3%20%7B%0Aborder%2Dbottom%3A%202px%20solid%20%23f7f7f7%3B%0Apadding%2Dtop%3A%2010px%3B%0Afont%2Dsize%3A%20120%25%3B%0A%7D%0Ah4%20%7B%0Aborder%2Dbottom%3A%201px%20solid%20%23f7f7f7%3B%0Amargin%2Dleft%3A%208px%3B%0Afont%2Dsize%3A%20105%25%3B%0A%7D%0Ah5%2C%20h6%20%7B%0Aborder%2Dbottom%3A%201px%20solid%20%23ccc%3B%0Afont%2Dsize%3A%20105%25%3B%0A%7D%0Aa%20%7B%0Acolor%3A%20%230033dd%3B%0Atext%2Ddecoration%3A%20none%3B%0A%7D%0Aa%3Ahover%20%7B%0Acolor%3A%20%236666ff%3B%20%7D%0Aa%3Avisited%20%7B%0Acolor%3A%20%23800080%3B%20%7D%0Aa%3Avisited%3Ahover%20%7B%0Acolor%3A%20%23BB00BB%3B%20%7D%0Aa%5Bhref%5E%3D%22http%3A%22%5D%20%7B%0Atext%2Ddecoration%3A%20underline%3B%20%7D%0Aa%5Bhref%5E%3D%22https%3A%22%5D%20%7B%0Atext%2Ddecoration%3A%20underline%3B%20%7D%0A%0Acode%20%3E%20span%2Ekw%20%7B%20color%3A%20%23555%3B%20font%2Dweight%3A%20bold%3B%20%7D%20%0Acode%20%3E%20span%2Edt%20%7B%20color%3A%20%23902000%3B%20%7D%20%0Acode%20%3E%20span%2Edv%20%7B%20color%3A%20%2340a070%3B%20%7D%20%0Acode%20%3E%20span%2Ebn%20%7B%20color%3A%20%23d14%3B%20%7D%20%0Acode%20%3E%20span%2Efl%20%7B%20color%3A%20%23d14%3B%20%7D%20%0Acode%20%3E%20span%2Ech%20%7B%20color%3A%20%23d14%3B%20%7D%20%0Acode%20%3E%20span%2Est%20%7B%20color%3A%20%23d14%3B%20%7D%20%0Acode%20%3E%20span%2Eco%20%7B%20color%3A%20%23888888%3B%20font%2Dstyle%3A%20italic%3B%20%7D%20%0Acode%20%3E%20span%2Eot%20%7B%20color%3A%20%23007020%3B%20%7D%20%0Acode%20%3E%20span%2Eal%20%7B%20color%3A%20%23ff0000%3B%20font%2Dweight%3A%20bold%3B%20%7D%20%0Acode%20%3E%20span%2Efu%20%7B%20color%3A%20%23900%3B%20font%2Dweight%3A%20bold%3B%20%7D%20%0Acode%20%3E%20span%2Eer%20%7B%20color%3A%20%23a61717%3B%20background%2Dcolor%3A%20%23e3d2d2%3B%20%7D%20%0A" type="text/css" />
+<style type="text/css">body {
+background-color: #fff;
+margin: 1em auto;
+max-width: 700px;
+overflow: visible;
+padding-left: 2em;
+padding-right: 2em;
+font-family: "Open Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
+font-size: 14px;
+line-height: 1.35;
+}
+#TOC {
+clear: both;
+margin: 0 0 10px 10px;
+padding: 4px;
+width: 400px;
+border: 1px solid #CCCCCC;
+border-radius: 5px;
+background-color: #f6f6f6;
+font-size: 13px;
+line-height: 1.3;
+}
+#TOC .toctitle {
+font-weight: bold;
+font-size: 15px;
+margin-left: 5px;
+}
+#TOC ul {
+padding-left: 40px;
+margin-left: -1.5em;
+margin-top: 5px;
+margin-bottom: 5px;
+}
+#TOC ul ul {
+margin-left: -2em;
+}
+#TOC li {
+line-height: 16px;
+}
+table {
+margin: 1em auto;
+border-width: 1px;
+border-color: #DDDDDD;
+border-style: outset;
+border-collapse: collapse;
+}
+table th {
+border-width: 2px;
+padding: 5px;
+border-style: inset;
+}
+table td {
+border-width: 1px;
+border-style: inset;
+line-height: 18px;
+padding: 5px 5px;
+}
+table, table th, table td {
+border-left-style: none;
+border-right-style: none;
+}
+table thead, table tr.even {
+background-color: #f7f7f7;
+}
+p {
+margin: 0.5em 0;
+}
+blockquote {
+background-color: #f6f6f6;
+padding: 0.25em 0.75em;
+}
+hr {
+border-style: solid;
+border: none;
+border-top: 1px solid #777;
+margin: 28px 0;
+}
+dl {
+margin-left: 0;
+}
+dl dd {
+margin-bottom: 13px;
+margin-left: 13px;
+}
+dl dt {
+font-weight: bold;
+}
+ul {
+margin-top: 0;
+}
+ul li {
+list-style: circle outside;
+}
+ul ul {
+margin-bottom: 0;
+}
+pre, code {
+background-color: #f7f7f7;
+border-radius: 3px;
+color: #333;
+white-space: pre-wrap; 
+}
+pre {
+border-radius: 3px;
+margin: 5px 0px 10px 0px;
+padding: 10px;
+}
+pre:not([class]) {
+background-color: #f7f7f7;
+}
+code {
+font-family: Consolas, Monaco, 'Courier New', monospace;
+font-size: 85%;
+}
+p > code, li > code {
+padding: 2px 0px;
+}
+div.figure {
+text-align: center;
+}
+img {
+background-color: #FFFFFF;
+padding: 2px;
+border: 1px solid #DDDDDD;
+border-radius: 3px;
+border: 1px solid #CCCCCC;
+margin: 0 5px;
+}
+h1 {
+margin-top: 0;
+font-size: 35px;
+line-height: 40px;
+}
+h2 {
+border-bottom: 4px solid #f7f7f7;
+padding-top: 10px;
+padding-bottom: 2px;
+font-size: 145%;
+}
+h3 {
+border-bottom: 2px solid #f7f7f7;
+padding-top: 10px;
+font-size: 120%;
+}
+h4 {
+border-bottom: 1px solid #f7f7f7;
+margin-left: 8px;
+font-size: 105%;
+}
+h5, h6 {
+border-bottom: 1px solid #ccc;
+font-size: 105%;
+}
+a {
+color: #0033dd;
+text-decoration: none;
+}
+a:hover {
+color: #6666ff; }
+a:visited {
+color: #800080; }
+a:visited:hover {
+color: #BB00BB; }
+a[href^="http:"] {
+text-decoration: underline; }
+a[href^="https:"] {
+text-decoration: underline; }
+
+code > span.kw { color: #555; font-weight: bold; } 
+code > span.dt { color: #902000; } 
+code > span.dv { color: #40a070; } 
+code > span.bn { color: #d14; } 
+code > span.fl { color: #d14; } 
+code > span.ch { color: #d14; } 
+code > span.st { color: #d14; } 
+code > span.co { color: #888888; font-style: italic; } 
+code > span.ot { color: #007020; } 
+code > span.al { color: #ff0000; font-weight: bold; } 
+code > span.fu { color: #900; font-weight: bold; } 
+code > span.er { color: #a61717; background-color: #e3d2d2; } 
+</style>
 
 
 
@@ -143,40 +343,74 @@ code span.wa { color: #60a0b0; font-weight: bold; font-style: italic; } /* Warni
 
 
 
-<p>Create a ShinyStan app unique to your model and host it online with RStudio’s ShinyApps service (shinyapps.io). Each app you deploy will have a unique url.</p>
-<p><em>Note: R users who don’t use RStudio’s IDE can still deploy ShinyStan apps to shinyapps.io.</em></p>
+<p>Create a ShinyStan app unique to your model and host it online with
+RStudio’s ShinyApps service (shinyapps.io). Each app you deploy will
+have a unique url.</p>
+<p><em>Note: R users who don’t use RStudio’s IDE can still deploy
+ShinyStan apps to shinyapps.io.</em></p>
 <div id="step-1-shinyapps-account" class="section level2">
 <h2>Step 1: ShinyApps account</h2>
 <p><strong>Signup</strong></p>
-<p>To deploy your app to RStudio’s shinyapps.io you will need a ShinyApps account. If you don’t already have one you can sign up at <a href="https://www.shinyapps.io/" class="uri">https://www.shinyapps.io/</a>.</p>
-<p>The only limit to the number of different ShinyStan apps you can deploy is the limit set by RStudio for the <a href="https://www.shinyapps.io/#pricing">type of ShinyApps account</a> you sign up for.</p>
+<p>To deploy your app to RStudio’s shinyapps.io you will need a
+ShinyApps account. If you don’t already have one you can sign up at <a href="https://www.shinyapps.io/" class="uri">https://www.shinyapps.io/</a>.</p>
+<p>The only limit to the number of different ShinyStan apps you can
+deploy is the limit set by RStudio for the <a href="https://www.shinyapps.io/#pricing">type of ShinyApps account</a>
+you sign up for.</p>
 <p><strong>Setup</strong></p>
-<p>When you finish signing up for your ShinyApps account there will be instructions for setting up your account on your local system using <code>rsconnect::setAccountInfo()</code> (this requires first installing the <strong>rsconnect</strong> package)</p>
+<p>When you finish signing up for your ShinyApps account there will be
+instructions for setting up your account on your local system using
+<code>rsconnect::setAccountInfo()</code> (this requires first installing
+the <strong>rsconnect</strong> package)</p>
 <div class="sourceCode" id="cb1"><pre class="sourceCode r"><code class="sourceCode r"><span id="cb1-1"><a href="#cb1-1" aria-hidden="true" tabindex="-1"></a>rsconnect<span class="sc">::</span><span class="fu">setAccountInfo</span>(name, token, secret)</span></code></pre></div>
-<p>where <code>name</code> is your ShinyApps account name, and <code>token</code> and <code>secret</code> can be found from your ShinyApps account web page.</p>
+<p>where <code>name</code> is your ShinyApps account name, and
+<code>token</code> and <code>secret</code> can be found from your
+ShinyApps account web page.</p>
 </div>
 <div id="step-2-use-deploy_shinystan-to-deploy-your-app-to-shinyapps.io" class="section level2">
-<h2>Step 2: Use <code>deploy_shinystan</code> to deploy your app to shinyapps.io</h2>
-<p>The <code>deploy_shinystan</code> function will deploy a ShinyStan app unique to your model to RStudio’s ShinyApps service.</p>
+<h2>Step 2: Use <code>deploy_shinystan</code> to deploy your app to
+shinyapps.io</h2>
+<p>The <code>deploy_shinystan</code> function will deploy a ShinyStan
+app unique to your model to RStudio’s ShinyApps service.</p>
 <p>For the example below assume that</p>
 <ul>
 <li><code>my_sso</code> is the shinystan object you want to use</li>
 <li>the name you want to use for the app is <code>MyModel</code></li>
-<li>the username for your ShinyApps account (from Step 1) is <code>username</code>.</li>
+<li>the username for your ShinyApps account (from Step 1) is
+<code>username</code>.</li>
 </ul>
 <p>To deploy the app use the command</p>
 <div class="sourceCode" id="cb2"><pre class="sourceCode r"><code class="sourceCode r"><span id="cb2-1"><a href="#cb2-1" aria-hidden="true" tabindex="-1"></a><span class="fu">deploy_shinystan</span>(my_sso, <span class="at">appName =</span> <span class="st">&quot;MyModel&quot;</span>, <span class="at">account =</span> <span class="st">&quot;username&quot;</span>)</span></code></pre></div>
-<p><strong>When to specify the <code>account</code> argument</strong></p>
-<p>If you have multiple ShinyApps accounts configured on your local system then the <code>account</code> argument is required. If you only have a single account then you can omit <code>account</code></p>
+<p><strong>When to specify the <code>account</code>
+argument</strong></p>
+<p>If you have multiple ShinyApps accounts configured on your local
+system then the <code>account</code> argument is required. If you only
+have a single account then you can omit <code>account</code></p>
 <div class="sourceCode" id="cb3"><pre class="sourceCode r"><code class="sourceCode r"><span id="cb3-1"><a href="#cb3-1" aria-hidden="true" tabindex="-1"></a><span class="fu">deploy_shinystan</span>(my_sso, <span class="at">appName =</span> <span class="st">&quot;MyModel&quot;</span>)</span></code></pre></div>
-<p><strong>Graphical posterior predictive checks: the optional <code>ppcheck_data</code> and <code>ppcheck_yrep</code> arguments</strong></p>
-<p>If you have a vector of observations <code>y</code> that you want to use for ShinyStan’s graphical posterior predictive checks then you can also specify the optional <code>ppcheck_data</code> argument</p>
+<p><strong>Graphical posterior predictive checks: the optional
+<code>ppcheck_data</code> and <code>ppcheck_yrep</code>
+arguments</strong></p>
+<p>If you have a vector of observations <code>y</code> that you want to
+use for ShinyStan’s graphical posterior predictive checks then you can
+also specify the optional <code>ppcheck_data</code> argument</p>
 <div class="sourceCode" id="cb4"><pre class="sourceCode r"><code class="sourceCode r"><span id="cb4-1"><a href="#cb4-1" aria-hidden="true" tabindex="-1"></a><span class="fu">deploy_shinystan</span>(my_sso, <span class="at">appName =</span> <span class="st">&quot;MyModel&quot;</span>, </span>
 <span id="cb4-2"><a href="#cb4-2" aria-hidden="true" tabindex="-1"></a>                 <span class="at">ppcheck_data =</span> y)</span></code></pre></div>
-<p>If you’ve specified the <code>ppcheck_data</code> argument you can also use the <code>ppcheck_yrep</code> argument to tell ShinyStan the name of the parameter/quantity in your model containing the posterior predictive simulations/replications so that it is preselected as the parameter to use for doing the graphical posterior predictive checks. This is never required because you can also set this manually while using the app, but it is helpful if you want other people to view your model online because it avoids the need to communicate to them which parameter they need to select. If this parameter/quantity containing the posterior predictive replications is named <code>yRep</code> then you would use</p>
+<p>If you’ve specified the <code>ppcheck_data</code> argument you can
+also use the <code>ppcheck_yrep</code> argument to tell ShinyStan the
+name of the parameter/quantity in your model containing the posterior
+predictive simulations/replications so that it is preselected as the
+parameter to use for doing the graphical posterior predictive checks.
+This is never required because you can also set this manually while
+using the app, but it is helpful if you want other people to view your
+model online because it avoids the need to communicate to them which
+parameter they need to select. If this parameter/quantity containing the
+posterior predictive replications is named <code>yRep</code> then you
+would use</p>
 <div class="sourceCode" id="cb5"><pre class="sourceCode r"><code class="sourceCode r"><span id="cb5-1"><a href="#cb5-1" aria-hidden="true" tabindex="-1"></a><span class="fu">deploy_shinystan</span>(my_sso, <span class="at">appName =</span> <span class="st">&quot;MyModel&quot;</span>, </span>
 <span id="cb5-2"><a href="#cb5-2" aria-hidden="true" tabindex="-1"></a>                 <span class="at">ppcheck_data =</span> y, <span class="at">ppcheck_yrep =</span> <span class="st">&quot;yRep&quot;</span>)</span></code></pre></div>
-<p>If the deployment process is successful the url for your app will be printed to the console and it should open in your web browser. You can also view your app by going to <a href="https://www.shinyapps.io" class="uri">https://www.shinyapps.io</a> and logging into your account.</p>
+<p>If the deployment process is successful the url for your app will be
+printed to the console and it should open in your web browser. You can
+also view your app by going to <a href="https://www.shinyapps.io" class="uri">https://www.shinyapps.io</a> and logging into your
+account.</p>
 </div>
 
 
diff --git a/inst/doc/shinystan-package.html b/inst/doc/shinystan-package.html
index 18cf263..a49bcc8 100644
--- a/inst/doc/shinystan-package.html
+++ b/inst/doc/shinystan-package.html
@@ -11,11 +11,23 @@
 <meta name="viewport" content="width=device-width, initial-scale=1" />
 
 
-<meta name="date" content="2022-03-02" />
+<meta name="date" content="2023-02-08" />
 
 <title>Getting Started</title>
 
-<script src="data:application/javascript;base64,Ly8gUGFuZG9jIDIuOSBhZGRzIGF0dHJpYnV0ZXMgb24gYm90aCBoZWFkZXIgYW5kIGRpdi4gV2UgcmVtb3ZlIHRoZSBmb3JtZXIgKHRvCi8vIGJlIGNvbXBhdGlibGUgd2l0aCB0aGUgYmVoYXZpb3Igb2YgUGFuZG9jIDwgMi44KS4KZG9jdW1lbnQuYWRkRXZlbnRMaXN0ZW5lcignRE9NQ29udGVudExvYWRlZCcsIGZ1bmN0aW9uKGUpIHsKICB2YXIgaHMgPSBkb2N1bWVudC5xdWVyeVNlbGVjdG9yQWxsKCJkaXYuc2VjdGlvbltjbGFzcyo9J2xldmVsJ10gPiA6Zmlyc3QtY2hpbGQiKTsKICB2YXIgaSwgaCwgYTsKICBmb3IgKGkgPSAwOyBpIDwgaHMubGVuZ3RoOyBpKyspIHsKICAgIGggPSBoc1tpXTsKICAgIGlmICghL15oWzEtNl0kL2kudGVzdChoLnRhZ05hbWUpKSBjb250aW51ZTsgIC8vIGl0IHNob3VsZCBiZSBhIGhlYWRlciBoMS1oNgogICAgYSA9IGguYXR0cmlidXRlczsKICAgIHdoaWxlIChhLmxlbmd0aCA+IDApIGgucmVtb3ZlQXR0cmlidXRlKGFbMF0ubmFtZSk7CiAgfQp9KTsK"></script>
+<script>// Pandoc 2.9 adds attributes on both header and div. We remove the former (to
+// be compatible with the behavior of Pandoc < 2.8).
+document.addEventListener('DOMContentLoaded', function(e) {
+  var hs = document.querySelectorAll("div.section[class*='level'] > :first-child");
+  var i, h, a;
+  for (i = 0; i < hs.length; i++) {
+    h = hs[i];
+    if (!/^h[1-6]$/i.test(h.tagName)) continue;  // it should be a header h1-h6
+    a = h.attributes;
+    while (a.length > 0) h.removeAttribute(a[0].name);
+  }
+});
+</script>
 
 <style type="text/css">
   code{white-space: pre-wrap;}
@@ -27,6 +39,7 @@
     </style>
 
 
+
 <style type="text/css">
   code {
     white-space: pre;
@@ -74,7 +87,7 @@ code span.al { color: #ff0000; font-weight: bold; } /* Alert */
 code span.an { color: #60a0b0; font-weight: bold; font-style: italic; } /* Annotation */
 code span.at { color: #7d9029; } /* Attribute */
 code span.bn { color: #40a070; } /* BaseN */
-code span.bu { } /* BuiltIn */
+code span.bu { color: #008000; } /* BuiltIn */
 code span.cf { color: #007020; font-weight: bold; } /* ControlFlow */
 code span.ch { color: #4070a0; } /* Char */
 code span.cn { color: #880000; } /* Constant */
@@ -87,7 +100,7 @@ code span.er { color: #ff0000; font-weight: bold; } /* Error */
 code span.ex { } /* Extension */
 code span.fl { color: #40a070; } /* Float */
 code span.fu { color: #06287e; } /* Function */
-code span.im { } /* Import */
+code span.im { color: #008000; font-weight: bold; } /* Import */
 code span.in { color: #60a0b0; font-weight: bold; font-style: italic; } /* Information */
 code span.kw { color: #007020; font-weight: bold; } /* Keyword */
 code span.op { color: #666666; } /* Operator */
@@ -108,13 +121,20 @@ code span.wa { color: #60a0b0; font-weight: bold; font-style: italic; } /* Warni
   for (var i = 0; i < sheets.length; i++) {
     if (sheets[i].ownerNode.dataset["origin"] !== "pandoc") continue;
     try { var rules = sheets[i].cssRules; } catch (e) { continue; }
-    for (var j = 0; j < rules.length; j++) {
+    var j = 0;
+    while (j < rules.length) {
       var rule = rules[j];
       // check if there is a div.sourceCode rule
-      if (rule.type !== rule.STYLE_RULE || rule.selectorText !== "div.sourceCode") continue;
+      if (rule.type !== rule.STYLE_RULE || rule.selectorText !== "div.sourceCode") {
+        j++;
+        continue;
+      }
       var style = rule.style.cssText;
       // check if color or background-color is set
-      if (rule.style.color === '' && rule.style.backgroundColor === '') continue;
+      if (rule.style.color === '' && rule.style.backgroundColor === '') {
+        j++;
+        continue;
+      }
       // replace div.sourceCode by a pre.sourceCode rule
       sheets[i].deleteRule(j);
       sheets[i].insertRule('pre.sourceCode{' + style + '}', j);
@@ -126,7 +146,187 @@ code span.wa { color: #60a0b0; font-weight: bold; font-style: italic; } /* Warni
 
 
 
-<link rel="stylesheet" href="data:text/css,body%20%7B%0Abackground%2Dcolor%3A%20%23fff%3B%0Amargin%3A%201em%20auto%3B%0Amax%2Dwidth%3A%20700px%3B%0Aoverflow%3A%20visible%3B%0Apadding%2Dleft%3A%202em%3B%0Apadding%2Dright%3A%202em%3B%0Afont%2Dfamily%3A%20%22Open%20Sans%22%2C%20%22Helvetica%20Neue%22%2C%20Helvetica%2C%20Arial%2C%20sans%2Dserif%3B%0Afont%2Dsize%3A%2014px%3B%0Aline%2Dheight%3A%201%2E35%3B%0A%7D%0A%23TOC%20%7B%0Aclear%3A%20both%3B%0Amargin%3A%200%200%2010px%2010px%3B%0Apadding%3A%204px%3B%0Awidth%3A%20400px%3B%0Aborder%3A%201px%20solid%20%23CCCCCC%3B%0Aborder%2Dradius%3A%205px%3B%0Abackground%2Dcolor%3A%20%23f6f6f6%3B%0Afont%2Dsize%3A%2013px%3B%0Aline%2Dheight%3A%201%2E3%3B%0A%7D%0A%23TOC%20%2Etoctitle%20%7B%0Afont%2Dweight%3A%20bold%3B%0Afont%2Dsize%3A%2015px%3B%0Amargin%2Dleft%3A%205px%3B%0A%7D%0A%23TOC%20ul%20%7B%0Apadding%2Dleft%3A%2040px%3B%0Amargin%2Dleft%3A%20%2D1%2E5em%3B%0Amargin%2Dtop%3A%205px%3B%0Amargin%2Dbottom%3A%205px%3B%0A%7D%0A%23TOC%20ul%20ul%20%7B%0Amargin%2Dleft%3A%20%2D2em%3B%0A%7D%0A%23TOC%20li%20%7B%0Aline%2Dheight%3A%2016px%3B%0A%7D%0Atable%20%7B%0Amargin%3A%201em%20auto%3B%0Aborder%2Dwidth%3A%201px%3B%0Aborder%2Dcolor%3A%20%23DDDDDD%3B%0Aborder%2Dstyle%3A%20outset%3B%0Aborder%2Dcollapse%3A%20collapse%3B%0A%7D%0Atable%20th%20%7B%0Aborder%2Dwidth%3A%202px%3B%0Apadding%3A%205px%3B%0Aborder%2Dstyle%3A%20inset%3B%0A%7D%0Atable%20td%20%7B%0Aborder%2Dwidth%3A%201px%3B%0Aborder%2Dstyle%3A%20inset%3B%0Aline%2Dheight%3A%2018px%3B%0Apadding%3A%205px%205px%3B%0A%7D%0Atable%2C%20table%20th%2C%20table%20td%20%7B%0Aborder%2Dleft%2Dstyle%3A%20none%3B%0Aborder%2Dright%2Dstyle%3A%20none%3B%0A%7D%0Atable%20thead%2C%20table%20tr%2Eeven%20%7B%0Abackground%2Dcolor%3A%20%23f7f7f7%3B%0A%7D%0Ap%20%7B%0Amargin%3A%200%2E5em%200%3B%0A%7D%0Ablockquote%20%7B%0Abackground%2Dcolor%3A%20%23f6f6f6%3B%0Apadding%3A%200%2E25em%200%2E75em%3B%0A%7D%0Ahr%20%7B%0Aborder%2Dstyle%3A%20solid%3B%0Aborder%3A%20none%3B%0Aborder%2Dtop%3A%201px%20solid%20%23777%3B%0Amargin%3A%2028px%200%3B%0A%7D%0Adl%20%7B%0Amargin%2Dleft%3A%200%3B%0A%7D%0Adl%20dd%20%7B%0Amargin%2Dbottom%3A%2013px%3B%0Amargin%2Dleft%3A%2013px%3B%0A%7D%0Adl%20dt%20%7B%0Afont%2Dweight%3A%20bold%3B%0A%7D%0Aul%20%7B%0Amargin%2Dtop%3A%200%3B%0A%7D%0Aul%20li%20%7B%0Alist%2Dstyle%3A%20circle%20outside%3B%0A%7D%0Aul%20ul%20%7B%0Amargin%2Dbottom%3A%200%3B%0A%7D%0Apre%2C%20code%20%7B%0Abackground%2Dcolor%3A%20%23f7f7f7%3B%0Aborder%2Dradius%3A%203px%3B%0Acolor%3A%20%23333%3B%0Awhite%2Dspace%3A%20pre%2Dwrap%3B%20%0A%7D%0Apre%20%7B%0Aborder%2Dradius%3A%203px%3B%0Amargin%3A%205px%200px%2010px%200px%3B%0Apadding%3A%2010px%3B%0A%7D%0Apre%3Anot%28%5Bclass%5D%29%20%7B%0Abackground%2Dcolor%3A%20%23f7f7f7%3B%0A%7D%0Acode%20%7B%0Afont%2Dfamily%3A%20Consolas%2C%20Monaco%2C%20%27Courier%20New%27%2C%20monospace%3B%0Afont%2Dsize%3A%2085%25%3B%0A%7D%0Ap%20%3E%20code%2C%20li%20%3E%20code%20%7B%0Apadding%3A%202px%200px%3B%0A%7D%0Adiv%2Efigure%20%7B%0Atext%2Dalign%3A%20center%3B%0A%7D%0Aimg%20%7B%0Abackground%2Dcolor%3A%20%23FFFFFF%3B%0Apadding%3A%202px%3B%0Aborder%3A%201px%20solid%20%23DDDDDD%3B%0Aborder%2Dradius%3A%203px%3B%0Aborder%3A%201px%20solid%20%23CCCCCC%3B%0Amargin%3A%200%205px%3B%0A%7D%0Ah1%20%7B%0Amargin%2Dtop%3A%200%3B%0Afont%2Dsize%3A%2035px%3B%0Aline%2Dheight%3A%2040px%3B%0A%7D%0Ah2%20%7B%0Aborder%2Dbottom%3A%204px%20solid%20%23f7f7f7%3B%0Apadding%2Dtop%3A%2010px%3B%0Apadding%2Dbottom%3A%202px%3B%0Afont%2Dsize%3A%20145%25%3B%0A%7D%0Ah3%20%7B%0Aborder%2Dbottom%3A%202px%20solid%20%23f7f7f7%3B%0Apadding%2Dtop%3A%2010px%3B%0Afont%2Dsize%3A%20120%25%3B%0A%7D%0Ah4%20%7B%0Aborder%2Dbottom%3A%201px%20solid%20%23f7f7f7%3B%0Amargin%2Dleft%3A%208px%3B%0Afont%2Dsize%3A%20105%25%3B%0A%7D%0Ah5%2C%20h6%20%7B%0Aborder%2Dbottom%3A%201px%20solid%20%23ccc%3B%0Afont%2Dsize%3A%20105%25%3B%0A%7D%0Aa%20%7B%0Acolor%3A%20%230033dd%3B%0Atext%2Ddecoration%3A%20none%3B%0A%7D%0Aa%3Ahover%20%7B%0Acolor%3A%20%236666ff%3B%20%7D%0Aa%3Avisited%20%7B%0Acolor%3A%20%23800080%3B%20%7D%0Aa%3Avisited%3Ahover%20%7B%0Acolor%3A%20%23BB00BB%3B%20%7D%0Aa%5Bhref%5E%3D%22http%3A%22%5D%20%7B%0Atext%2Ddecoration%3A%20underline%3B%20%7D%0Aa%5Bhref%5E%3D%22https%3A%22%5D%20%7B%0Atext%2Ddecoration%3A%20underline%3B%20%7D%0A%0Acode%20%3E%20span%2Ekw%20%7B%20color%3A%20%23555%3B%20font%2Dweight%3A%20bold%3B%20%7D%20%0Acode%20%3E%20span%2Edt%20%7B%20color%3A%20%23902000%3B%20%7D%20%0Acode%20%3E%20span%2Edv%20%7B%20color%3A%20%2340a070%3B%20%7D%20%0Acode%20%3E%20span%2Ebn%20%7B%20color%3A%20%23d14%3B%20%7D%20%0Acode%20%3E%20span%2Efl%20%7B%20color%3A%20%23d14%3B%20%7D%20%0Acode%20%3E%20span%2Ech%20%7B%20color%3A%20%23d14%3B%20%7D%20%0Acode%20%3E%20span%2Est%20%7B%20color%3A%20%23d14%3B%20%7D%20%0Acode%20%3E%20span%2Eco%20%7B%20color%3A%20%23888888%3B%20font%2Dstyle%3A%20italic%3B%20%7D%20%0Acode%20%3E%20span%2Eot%20%7B%20color%3A%20%23007020%3B%20%7D%20%0Acode%20%3E%20span%2Eal%20%7B%20color%3A%20%23ff0000%3B%20font%2Dweight%3A%20bold%3B%20%7D%20%0Acode%20%3E%20span%2Efu%20%7B%20color%3A%20%23900%3B%20font%2Dweight%3A%20bold%3B%20%7D%20%0Acode%20%3E%20span%2Eer%20%7B%20color%3A%20%23a61717%3B%20background%2Dcolor%3A%20%23e3d2d2%3B%20%7D%20%0A" type="text/css" />
+<style type="text/css">body {
+background-color: #fff;
+margin: 1em auto;
+max-width: 700px;
+overflow: visible;
+padding-left: 2em;
+padding-right: 2em;
+font-family: "Open Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
+font-size: 14px;
+line-height: 1.35;
+}
+#TOC {
+clear: both;
+margin: 0 0 10px 10px;
+padding: 4px;
+width: 400px;
+border: 1px solid #CCCCCC;
+border-radius: 5px;
+background-color: #f6f6f6;
+font-size: 13px;
+line-height: 1.3;
+}
+#TOC .toctitle {
+font-weight: bold;
+font-size: 15px;
+margin-left: 5px;
+}
+#TOC ul {
+padding-left: 40px;
+margin-left: -1.5em;
+margin-top: 5px;
+margin-bottom: 5px;
+}
+#TOC ul ul {
+margin-left: -2em;
+}
+#TOC li {
+line-height: 16px;
+}
+table {
+margin: 1em auto;
+border-width: 1px;
+border-color: #DDDDDD;
+border-style: outset;
+border-collapse: collapse;
+}
+table th {
+border-width: 2px;
+padding: 5px;
+border-style: inset;
+}
+table td {
+border-width: 1px;
+border-style: inset;
+line-height: 18px;
+padding: 5px 5px;
+}
+table, table th, table td {
+border-left-style: none;
+border-right-style: none;
+}
+table thead, table tr.even {
+background-color: #f7f7f7;
+}
+p {
+margin: 0.5em 0;
+}
+blockquote {
+background-color: #f6f6f6;
+padding: 0.25em 0.75em;
+}
+hr {
+border-style: solid;
+border: none;
+border-top: 1px solid #777;
+margin: 28px 0;
+}
+dl {
+margin-left: 0;
+}
+dl dd {
+margin-bottom: 13px;
+margin-left: 13px;
+}
+dl dt {
+font-weight: bold;
+}
+ul {
+margin-top: 0;
+}
+ul li {
+list-style: circle outside;
+}
+ul ul {
+margin-bottom: 0;
+}
+pre, code {
+background-color: #f7f7f7;
+border-radius: 3px;
+color: #333;
+white-space: pre-wrap; 
+}
+pre {
+border-radius: 3px;
+margin: 5px 0px 10px 0px;
+padding: 10px;
+}
+pre:not([class]) {
+background-color: #f7f7f7;
+}
+code {
+font-family: Consolas, Monaco, 'Courier New', monospace;
+font-size: 85%;
+}
+p > code, li > code {
+padding: 2px 0px;
+}
+div.figure {
+text-align: center;
+}
+img {
+background-color: #FFFFFF;
+padding: 2px;
+border: 1px solid #DDDDDD;
+border-radius: 3px;
+border: 1px solid #CCCCCC;
+margin: 0 5px;
+}
+h1 {
+margin-top: 0;
+font-size: 35px;
+line-height: 40px;
+}
+h2 {
+border-bottom: 4px solid #f7f7f7;
+padding-top: 10px;
+padding-bottom: 2px;
+font-size: 145%;
+}
+h3 {
+border-bottom: 2px solid #f7f7f7;
+padding-top: 10px;
+font-size: 120%;
+}
+h4 {
+border-bottom: 1px solid #f7f7f7;
+margin-left: 8px;
+font-size: 105%;
+}
+h5, h6 {
+border-bottom: 1px solid #ccc;
+font-size: 105%;
+}
+a {
+color: #0033dd;
+text-decoration: none;
+}
+a:hover {
+color: #6666ff; }
+a:visited {
+color: #800080; }
+a:visited:hover {
+color: #BB00BB; }
+a[href^="http:"] {
+text-decoration: underline; }
+a[href^="https:"] {
+text-decoration: underline; }
+
+code > span.kw { color: #555; font-weight: bold; } 
+code > span.dt { color: #902000; } 
+code > span.dv { color: #40a070; } 
+code > span.bn { color: #d14; } 
+code > span.fl { color: #d14; } 
+code > span.ch { color: #d14; } 
+code > span.st { color: #d14; } 
+code > span.co { color: #888888; font-style: italic; } 
+code > span.ot { color: #007020; } 
+code > span.al { color: #ff0000; font-weight: bold; } 
+code > span.fu { color: #900; font-weight: bold; } 
+code > span.er { color: #a61717; background-color: #e3d2d2; } 
+</style>
 
 
 
@@ -139,16 +339,18 @@ code span.wa { color: #60a0b0; font-weight: bold; font-style: italic; } /* Warni
 
 
 <h1 class="title toc-ignore">Getting Started</h1>
-<h4 class="date">2022-03-02</h4>
+<h4 class="date">2023-02-08</h4>
 
 
 <div id="TOC">
 <ul>
-<li><a href="#using-the-shinystan-app-with-different-types-of-objects">Using the ShinyStan app with different types of objects</a>
+<li><a href="#using-the-shinystan-app-with-different-types-of-objects">Using
+the ShinyStan app with different types of objects</a>
 <ul>
 <li><a href="#stanfit-objects">stanfit objects</a>
 <ul>
-<li><a href="#stanreg-and-brmsfit-objects">stanreg and brmsfit objects</a></li>
+<li><a href="#stanreg-and-brmsfit-objects">stanreg and brmsfit
+objects</a></li>
 </ul></li>
 <li><a href="#mcmc.list-objects">mcmc.list objects</a></li>
 <li><a href="#other-types-of-objects">Other types of objects</a>
@@ -157,10 +359,13 @@ code span.wa { color: #60a0b0; font-weight: bold; font-style: italic; } /* Warni
 <li><a href="#list-of-matrices">List of matrices</a></li>
 </ul></li>
 </ul></li>
-<li><a href="#other-functions-in-the-shinystan-package">Other functions in the shinystan package</a>
+<li><a href="#other-functions-in-the-shinystan-package">Other functions
+in the shinystan package</a>
 <ul>
-<li><a href="#generating-new-quantities">Generating new quantities</a></li>
-<li><a href="#storing-your-model-code-in-a-shinystan-object">Storing your model code in a shinystan object</a></li>
+<li><a href="#generating-new-quantities">Generating new
+quantities</a></li>
+<li><a href="#storing-your-model-code-in-a-shinystan-object">Storing
+your model code in a shinystan object</a></li>
 <li><a href="#renaming-a-model">Renaming a model</a></li>
 </ul></li>
 </ul>
@@ -170,36 +375,64 @@ code span.wa { color: #60a0b0; font-weight: bold; font-style: italic; } /* Warni
 <h1>Using the ShinyStan app with different types of objects</h1>
 <div id="stanfit-objects" class="section level2">
 <h2>stanfit objects</h2>
-<p>If <code>my_stanfit</code> is a stanfit object (the result of fitting a model with <a href="https://mc-stan.org/"><strong>rstan</strong></a>), then to launch the ShinyStan app simply use</p>
+<p>If <code>my_stanfit</code> is a stanfit object (the result of fitting
+a model with <a href="https://mc-stan.org/"><strong>rstan</strong></a>),
+then to launch the ShinyStan app simply use</p>
 <div class="sourceCode" id="cb1"><pre class="sourceCode r"><code class="sourceCode r"><span id="cb1-1"><a href="#cb1-1" aria-hidden="true" tabindex="-1"></a><span class="fu">library</span>(shinystan)</span>
 <span id="cb1-2"><a href="#cb1-2" aria-hidden="true" tabindex="-1"></a>my_sso <span class="ot">&lt;-</span> <span class="fu">launch_shinystan</span>(my_stanfit)</span></code></pre></div>
-<p>and ShinyStan will launch. Here <code>my_sso</code> is the name you want to use for the shinystan object that will be returned. If you simply run</p>
+<p>and ShinyStan will launch. Here <code>my_sso</code> is the name you
+want to use for the shinystan object that will be returned. If you
+simply run</p>
 <div class="sourceCode" id="cb2"><pre class="sourceCode r"><code class="sourceCode r"><span id="cb2-1"><a href="#cb2-1" aria-hidden="true" tabindex="-1"></a><span class="fu">launch_shinystan</span>(my_stanfit)</span></code></pre></div>
-<p>then ShinyStan will launch but no shinystan object will be saved upon quitting the app.</p>
-<p>Sometimes keeping only a subset of parameters before can improve performance. This can be done by creating an object with <code>as.shinystan</code> and specifying the <code>pars</code> argument. The resulting shinystan object can then be passed to <code>launch_shinystan()</code>.</p>
+<p>then ShinyStan will launch but no shinystan object will be saved upon
+quitting the app.</p>
+<p>Sometimes keeping only a subset of parameters before can improve
+performance. This can be done by creating an object with
+<code>as.shinystan</code> and specifying the <code>pars</code> argument.
+The resulting shinystan object can then be passed to
+<code>launch_shinystan()</code>.</p>
 <div id="stanreg-and-brmsfit-objects" class="section level3">
 <h3>stanreg and brmsfit objects</h3>
-<p>The <strong>rstanarm</strong> and <strong>brms</strong> packages provide <code>launch_shinystan</code> methods for stanreg and brmsfit objects, respectively. For example, the method for stanreg objects is documented at</p>
+<p>The <strong>rstanarm</strong> and <strong>brms</strong> packages
+provide <code>launch_shinystan</code> methods for stanreg and brmsfit
+objects, respectively. For example, the method for stanreg objects is
+documented at</p>
 <p><a href="http://mc-stan.org/rstanarm/reference/launch_shinystan.stanreg.html" class="uri">http://mc-stan.org/rstanarm/reference/launch_shinystan.stanreg.html</a></p>
 </div>
 </div>
 <div id="mcmc.list-objects" class="section level2">
 <h2>mcmc.list objects</h2>
-<p>If you have an <code>mcmc.list</code> object called <code>my_mcmc</code> then you can use the <code>as.shinystan</code> function to convert <code>my_mcmc</code> into a shinystan object that can then be used with <code>launch_shinystan</code>:</p>
+<p>If you have an <code>mcmc.list</code> object called
+<code>my_mcmc</code> then you can use the <code>as.shinystan</code>
+function to convert <code>my_mcmc</code> into a shinystan object that
+can then be used with <code>launch_shinystan</code>:</p>
 <div class="sourceCode" id="cb3"><pre class="sourceCode r"><code class="sourceCode r"><span id="cb3-1"><a href="#cb3-1" aria-hidden="true" tabindex="-1"></a>my_sso <span class="ot">&lt;-</span> <span class="fu">launch_shinystan</span>(<span class="fu">as.shinystan</span>(my_mcmc, <span class="at">model_name =</span> <span class="st">&quot;my_model&quot;</span>))</span></code></pre></div>
-<p>If, for example, the first 100 iterations in each chain in <code>my_mcmc</code> are warmup iterations, you should add the <code>warmup</code> argument when you call <code>as.shinystan</code>:</p>
+<p>If, for example, the first 100 iterations in each chain in
+<code>my_mcmc</code> are warmup iterations, you should add the
+<code>warmup</code> argument when you call
+<code>as.shinystan</code>:</p>
 <div class="sourceCode" id="cb4"><pre class="sourceCode r"><code class="sourceCode r"><span id="cb4-1"><a href="#cb4-1" aria-hidden="true" tabindex="-1"></a>my_sso <span class="ot">&lt;-</span> <span class="fu">launch_shinystan</span>(<span class="fu">as.shinystan</span>(my_mcmc, <span class="at">model_name =</span> <span class="st">&quot;my_model&quot;</span>, <span class="at">warmup =</span> <span class="dv">100</span>))</span></code></pre></div>
-<p>However, you should only use the <code>warmup</code> argument if the warmup iterations have been saved and included in <code>my_mcmc</code>.</p>
+<p>However, you should only use the <code>warmup</code> argument if the
+warmup iterations have been saved and included in
+<code>my_mcmc</code>.</p>
 </div>
 <div id="other-types-of-objects" class="section level2">
 <h2>Other types of objects</h2>
 <div id="d-array" class="section level3">
 <h3>3-D array</h3>
-<p>To convert a 3-D array to a shinystan object make sure that the three dimensions of the array correspond to the <em>number of iterations</em> <strong>x</strong> <em>number of chains</em> <strong>x</strong> <em>number of parameters</em>. You can then <code>as.shinystan</code> exactly how it’s used in the examples for <code>mcmc.list</code> objects above (but you don’t need to convert your array to an <code>mcmc.list</code>).</p>
+<p>To convert a 3-D array to a shinystan object make sure that the three
+dimensions of the array correspond to the <em>number of iterations</em>
+<strong>x</strong> <em>number of chains</em> <strong>x</strong>
+<em>number of parameters</em>. You can then <code>as.shinystan</code>
+exactly how it’s used in the examples for <code>mcmc.list</code> objects
+above (but you don’t need to convert your array to an
+<code>mcmc.list</code>).</p>
 </div>
 <div id="list-of-matrices" class="section level3">
 <h3>List of matrices</h3>
-<p>If you have separate chains that are each a matrix (with iterations as rows and parameters as columns) you can combine them in a list to pass to <code>as.shinystan</code></p>
+<p>If you have separate chains that are each a matrix (with iterations
+as rows and parameters as columns) you can combine them in a list to
+pass to <code>as.shinystan</code></p>
 <div class="sourceCode" id="cb5"><pre class="sourceCode r"><code class="sourceCode r"><span id="cb5-1"><a href="#cb5-1" aria-hidden="true" tabindex="-1"></a><span class="co"># Generate some fake data</span></span>
 <span id="cb5-2"><a href="#cb5-2" aria-hidden="true" tabindex="-1"></a>chain1 <span class="ot">&lt;-</span> <span class="fu">cbind</span>(<span class="at">beta1 =</span> <span class="fu">rnorm</span>(<span class="dv">100</span>), <span class="at">beta2 =</span> <span class="fu">rnorm</span>(<span class="dv">100</span>), <span class="at">sigma =</span> <span class="fu">rexp</span>(<span class="dv">100</span>))</span>
 <span id="cb5-3"><a href="#cb5-3" aria-hidden="true" tabindex="-1"></a>chain2 <span class="ot">&lt;-</span> <span class="fu">cbind</span>(<span class="at">beta1 =</span> <span class="fu">rnorm</span>(<span class="dv">100</span>), <span class="at">beta2 =</span> <span class="fu">rnorm</span>(<span class="dv">100</span>), <span class="at">sigma =</span> <span class="fu">rexp</span>(<span class="dv">100</span>))</span>
@@ -213,18 +446,36 @@ code span.wa { color: #60a0b0; font-weight: bold; font-style: italic; } /* Warni
 <h1>Other functions in the shinystan package</h1>
 <div id="generating-new-quantities" class="section level2">
 <h2>Generating new quantities</h2>
-<p>You can add a new parameter/quantity as a function of one or two existing parameters to your shinystan object by using the <code>generate_quantity</code> function. For example, assume <code>sso</code> is a shinystan object and two of the parameters are <code>alpha</code> and <code>beta</code>. We could add a parameter <code>gamma</code> that is the inverse logit of <code>beta</code> using the code</p>
+<p>You can add a new parameter/quantity as a function of one or two
+existing parameters to your shinystan object by using the
+<code>generate_quantity</code> function. For example, assume
+<code>sso</code> is a shinystan object and two of the parameters are
+<code>alpha</code> and <code>beta</code>. We could add a parameter
+<code>gamma</code> that is the inverse logit of <code>beta</code> using
+the code</p>
 <div class="sourceCode" id="cb6"><pre class="sourceCode r"><code class="sourceCode r"><span id="cb6-1"><a href="#cb6-1" aria-hidden="true" tabindex="-1"></a>inv_logit <span class="ot">&lt;-</span> <span class="cf">function</span>(x) <span class="dv">1</span><span class="sc">/</span>(<span class="dv">1</span> <span class="sc">+</span> <span class="fu">exp</span>(<span class="sc">-</span>x))</span>
 <span id="cb6-2"><a href="#cb6-2" aria-hidden="true" tabindex="-1"></a>sso <span class="ot">&lt;-</span> <span class="fu">generate_quantity</span>(sso, <span class="at">fun =</span> inv_logit, <span class="at">param1 =</span> <span class="st">&quot;beta&quot;</span>, <span class="at">new_name =</span> <span class="st">&quot;gamma&quot;</span>)</span></code></pre></div>
-<p>Here, <code>fun</code> is the function we want to use, <code>param1</code> is the name of the parameter to apply the function to, and <code>new_name</code> is the name to give the new parameter.</p>
-<p>Adding a parameter as a function of two parameters just requires specifying the <code>param2</code> argument and providing a function of two variables. For example, we can add a parameter <code>delta</code> to <code>sso</code> that is the squared difference of <code>alpha</code> and <code>beta</code> like this</p>
+<p>Here, <code>fun</code> is the function we want to use,
+<code>param1</code> is the name of the parameter to apply the function
+to, and <code>new_name</code> is the name to give the new parameter.</p>
+<p>Adding a parameter as a function of two parameters just requires
+specifying the <code>param2</code> argument and providing a function of
+two variables. For example, we can add a parameter <code>delta</code> to
+<code>sso</code> that is the squared difference of <code>alpha</code>
+and <code>beta</code> like this</p>
 <div class="sourceCode" id="cb7"><pre class="sourceCode r"><code class="sourceCode r"><span id="cb7-1"><a href="#cb7-1" aria-hidden="true" tabindex="-1"></a>sso <span class="ot">&lt;-</span> <span class="fu">generate_quantity</span>(sso, <span class="at">fun =</span> <span class="cf">function</span>(x,y) (x<span class="sc">-</span>y)<span class="sc">^</span><span class="dv">2</span>,</span>
 <span id="cb7-2"><a href="#cb7-2" aria-hidden="true" tabindex="-1"></a>                       <span class="at">param1 =</span> <span class="st">&quot;alpha&quot;</span>, <span class="at">param2 =</span> <span class="st">&quot;beta&quot;</span>, <span class="at">new_name =</span> <span class="st">&quot;delta&quot;</span>)</span></code></pre></div>
 </div>
 <div id="storing-your-model-code-in-a-shinystan-object" class="section level2">
 <h2>Storing your model code in a shinystan object</h2>
-<p>For models fit using <strong>rstan</strong> the model code will automatically be stored in the <code>model_code</code> slot of your shinystan object. When ShinyStan is open you can view your model code in the <em>Model Code</em> tab.</p>
-<p>If you did not use <strong>rstan</strong> fit your model then you can add your model code by using the <code>model_code()</code> function. For example, you may have used Bugs or JAGS or some other software and want to add the following code</p>
+<p>For models fit using <strong>rstan</strong> the model code will
+automatically be stored in the <code>model_code</code> slot of your
+shinystan object. When ShinyStan is open you can view your model code in
+the <em>Model Code</em> tab.</p>
+<p>If you did not use <strong>rstan</strong> fit your model then you can
+add your model code by using the <code>model_code()</code> function. For
+example, you may have used Bugs or JAGS or some other software and want
+to add the following code</p>
 <pre><code>  for (i in 1:length(Y)) {
      Y[i] ~ dpois(lambda[i])
      log(lambda[i]) &lt;- inprod(X[i,], theta[])
@@ -233,7 +484,9 @@ code span.wa { color: #60a0b0; font-weight: bold; font-style: italic; } /* Warni
      theta[j] ~ dt(0.0, 1.0, 1.0)
    }
  }</code></pre>
-<p>to your shinystan object. To add that code you can simply include it as the <code>code</code> argument to the <code>model_code</code> function</p>
+<p>to your shinystan object. To add that code you can simply include it
+as the <code>code</code> argument to the <code>model_code</code>
+function</p>
 <div class="sourceCode" id="cb9"><pre class="sourceCode r"><code class="sourceCode r"><span id="cb9-1"><a href="#cb9-1" aria-hidden="true" tabindex="-1"></a>my_code <span class="ot">&lt;-</span> <span class="st">&quot;</span></span>
 <span id="cb9-2"><a href="#cb9-2" aria-hidden="true" tabindex="-1"></a><span class="st"> model {</span></span>
 <span id="cb9-3"><a href="#cb9-3" aria-hidden="true" tabindex="-1"></a><span class="st">  for (i in 1:length(Y)) {</span></span>
@@ -251,9 +504,14 @@ code span.wa { color: #60a0b0; font-weight: bold; font-style: italic; } /* Warni
 </div>
 <div id="renaming-a-model" class="section level2">
 <h2>Renaming a model</h2>
-<p>On the home page ShinyStan will display the model name associated with the shinystan object being used. This name can be set by adding the <code>model_name</code> argument to <code>as.shinystan</code> when creating a shinystan object. For an existing shinystan object you can use the <code>model_name</code> function like this:</p>
+<p>On the home page ShinyStan will display the model name associated
+with the shinystan object being used. This name can be set by adding the
+<code>model_name</code> argument to <code>as.shinystan</code> when
+creating a shinystan object. For an existing shinystan object you can
+use the <code>model_name</code> function like this:</p>
 <div class="sourceCode" id="cb10"><pre class="sourceCode r"><code class="sourceCode r"><span id="cb10-1"><a href="#cb10-1" aria-hidden="true" tabindex="-1"></a>sso <span class="ot">&lt;-</span> <span class="fu">model_name</span>(sso, <span class="st">&quot;new_model_name&quot;</span>)</span></code></pre></div>
-<p>where <code>&quot;new_model_name&quot;</code> is the new name you want to give your model.</p>
+<p>where <code>&quot;new_model_name&quot;</code> is the new name you want to give
+your model.</p>
 </div>
 </div>
 
diff --git a/man/figures/logo.svg b/man/figures/logo.svg
new file mode 100644
index 0000000..b4c09fc
--- /dev/null
+++ b/man/figures/logo.svg
@@ -0,0 +1,96 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>
+<!-- Created with Inkscape (http://www.inkscape.org/) -->
+
+<svg
+   version="1.1"
+   id="svg2"
+   xml:space="preserve"
+   width="164.28352"
+   height="188.52309"
+   viewBox="0 0 164.28353 188.52309"
+   sodipodi:docname="Stan_hex_cut.svg"
+   inkscape:version="1.1.2 (0a00cf5339, 2022-02-04)"
+   xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
+   xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
+   xmlns="http://www.w3.org/2000/svg"
+   xmlns:svg="http://www.w3.org/2000/svg"><defs
+     id="defs6" /><sodipodi:namedview
+     id="namedview4"
+     pagecolor="#ffffff"
+     bordercolor="#666666"
+     borderopacity="1.0"
+     inkscape:pageshadow="2"
+     inkscape:pageopacity="0.0"
+     inkscape:pagecheckerboard="0"
+     showgrid="false"
+     inkscape:zoom="3.7097013"
+     inkscape:cx="82.08208"
+     inkscape:cy="94.482"
+     inkscape:window-width="1920"
+     inkscape:window-height="964"
+     inkscape:window-x="0"
+     inkscape:window-y="0"
+     inkscape:window-maximized="1"
+     inkscape:current-layer="g10"
+     fit-margin-top="0"
+     fit-margin-left="0"
+     fit-margin-right="0"
+     fit-margin-bottom="0" /><g
+     id="g8"
+     inkscape:groupmode="layer"
+     inkscape:label="Stan_hex"
+     transform="matrix(1.3333333,0,0,1.3333333,-9.1842331,-11.136461)"><g
+       id="g10"><path
+         d="m 80.02,32.895 c -2.809,0.804 -5.641,1.617 -7.946,2.253 -12.883,3.559 -31.355,8.457 -35.527,15.305 0,0 -5.82,12.891 -7.746,17.813 C 31.902,62.914 47.461,59.742 55.191,58 61.836,56.5 86.301,52.051 96.254,50.391 92.469,43.238 86.871,37.203 80.02,32.895 Z m -2.489,49.417 c -3.422,7.704 -27.129,13.813 -40.976,17.43 -4.239,1.106 -9.332,2.528 -14.485,4.059 0.746,0.761 1.512,1.492 2.309,2.199 4.043,-0.836 8.008,-1.621 11.527,-2.297 13.125,-2.527 33.063,-7.273 37.449,-11.551 0,0 3.215,-7.168 4.176,-9.84 z"
+         style="fill:#ffffff;fill-opacity:1;fill-rule:nonzero;stroke:none"
+         id="path64" /><path
+         d="m 8.434,44.375 v 69.348 l 60.062,34.683 60.059,-34.683 V 44.375 L 68.496,9.691 Z"
+         style="fill:#b2001d;fill-opacity:1;fill-rule:nonzero;stroke:none"
+         id="path66" /><path
+         d="m 67.094,26.98 c -28.473,0 -51.551,23.086 -51.551,51.559 0,7.207 -4.453,15.035 -6.859,22.313 0.347,7.558 -0.114,12.914 3.183,14.351 2.266,1.188 6.367,2.922 8.106,4.086 4.754,4.586 6.136,3.793 15.922,8.758 10.8,5.48 24.421,2.043 31.199,2.043 28.472,0 51.558,-23.078 51.558,-51.551 0,-5 5.418,-10.43 9.098,-15.492 0.422,-2.731 2.359,-15.035 1.332,-17.844 C 116.957,37.184 110.758,32.832 98.766,27.5 86.559,26.742 73.074,26.98 67.094,26.98 Z"
+         style="fill:#ffffff;fill-opacity:1;fill-rule:nonzero;stroke:none"
+         id="path68" /><path
+         d="m 69.129,24.91 c -28.836,0 -54.262,24.785 -54.262,53.621 0,7.301 -3.746,14.953 -6.183,22.321 -1.594,5.761 0.527,16.226 4.461,15.41 10.171,-2.426 29.218,-6.387 33.402,-7.481 15.055,-3.929 40.828,-10.578 44.551,-18.953 -1.047,2.91 -4.543,10.703 -4.543,10.703 -4.77,4.653 -27.629,9.606 -40.743,12.125 -14.371,2.762 -17.488,3.188 -28.417,4.906 0.433,3.11 14.574,9.348 18.082,11.11 10.937,5.555 24.734,2.066 31.597,2.066 28.836,0 52.219,-23.371 52.219,-52.207 0.348,-5.047 12.332,-13.914 9.031,-25.023 -14.25,1.258 -54.519,8.297 -61.515,9.89 -8.407,1.895 -25.321,5.344 -28.692,11.161 2.094,-5.352 8.418,-19.364 8.418,-19.364 C 51.074,47.75 71.324,41.191 85.164,38.551 87.43,38.043 100.887,35.883 110.34,34.207 105.141,27.93 92.871,24.879 69.129,24.91 Z"
+         style="fill:#b2001d;fill-opacity:1;fill-rule:nonzero;stroke:none"
+         id="path70" /><path
+         d="m 38.074,74.75 c -0.937,4.383 13.129,8.625 25.813,12.637 12.683,4.015 18.023,6.183 21.133,8.179 5.042,-2.414 6.199,-6.019 6.199,-6.019 C 92.629,83.992 79.984,76.891 71.551,73.773 63.121,70.66 61.234,69.164 55.117,66.156 39.016,70.418 38.074,74.75 38.074,74.75 Z"
+         style="fill:#590815;fill-opacity:1;fill-rule:nonzero;stroke:none"
+         id="path72" /><g
+         id="g74"
+         transform="scale(1,-1)"><path
+           d="m 8.434,-44.375 v -69.348 l 60.062,-34.683 60.059,34.683 v 69.348 L 68.496,-9.691 Z"
+           style="fill:none;stroke:#ffffff;stroke-width:3.09165;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
+           id="path76" /></g><path
+         d="m 78.055,133.312 1.797,3.11 0.625,-0.36 -1.313,-2.265 c 0.078,-0.453 0.234,-0.656 0.547,-0.844 0.312,-0.172 0.687,-0.125 0.984,0.391 l 1.125,1.937 0.61,-0.359 -1.313,-2.266 c 0.094,-0.344 0.266,-0.687 0.485,-0.781 0.343,-0.203 0.781,-0.109 1.046,0.344 l 1.125,1.937 0.61,-0.359 -1.141,-1.969 c -0.422,-0.719 -1.094,-0.984 -1.734,-0.625 -0.438,0.266 -0.61,0.719 -0.703,1.188 -0.438,-0.25 -0.875,-0.266 -1.266,-0.047 -0.281,0.172 -0.484,0.5 -0.625,1.015 l -0.234,-0.406 z"
+         style="fill:#ffffff;fill-opacity:1;fill-rule:nonzero;stroke:none"
+         id="path78" /><path
+         d="m 85.816,129.02 c -0.375,0.046 -0.671,0.093 -1.031,0.296 -0.953,0.547 -1.172,1.547 -0.578,2.579 0.531,0.921 1.578,1.187 2.516,0.656 0.312,-0.188 0.64,-0.516 0.797,-0.735 l -0.344,-0.609 c -0.235,0.328 -0.438,0.547 -0.703,0.703 -0.641,0.375 -1.282,0.219 -1.657,-0.437 -0.359,-0.625 -0.234,-1.266 0.344,-1.594 0.266,-0.156 0.547,-0.234 1.047,-0.188 z"
+         style="fill:#ffffff;fill-opacity:1;fill-rule:nonzero;stroke:none"
+         id="path80" /><path
+         d="m 88.73,128.812 -1.687,0.969 0.375,0.657 1.687,-0.969 z"
+         style="fill:#ffffff;fill-opacity:1;fill-rule:nonzero;stroke:none"
+         id="path82" /><path
+         d="m 90.641,126.301 c -0.438,0.015 -0.782,0.094 -1.079,0.265 -0.624,0.36 -0.828,0.907 -0.515,1.438 0.484,0.844 2.062,0.234 2.312,0.656 0.125,0.235 0,0.469 -0.265,0.641 -0.235,0.14 -0.688,0.203 -1.25,0.156 l 0.39,0.672 c 0.516,-0.031 0.875,-0.125 1.25,-0.344 0.61,-0.344 0.797,-0.969 0.485,-1.515 -0.188,-0.313 -0.5,-0.422 -1.203,-0.469 -0.719,0 -1.032,-0.047 -1.11,-0.188 -0.094,-0.156 -0.015,-0.375 0.25,-0.515 0.203,-0.125 0.61,-0.235 1.078,-0.188 z"
+         style="fill:#ffffff;fill-opacity:1;fill-rule:nonzero;stroke:none"
+         id="path84" /><path
+         d="m 91.73,124.539 -0.5,1.813 0.032,0.062 0.547,-0.312 0.953,1.64 c 0.328,0.563 0.906,0.781 1.593,0.391 0.204,-0.11 0.454,-0.391 0.594,-0.641 l -0.328,-0.562 c -0.141,0.297 -0.328,0.5 -0.547,0.625 -0.187,0.109 -0.515,0.156 -0.734,-0.203 l -0.922,-1.61 1,-0.578 -0.313,-0.547 -1,0.578 z"
+         style="fill:#ffffff;fill-opacity:1;fill-rule:nonzero;stroke:none"
+         id="path86" /><path
+         d="m 97.598,125.418 c -0.078,0.187 -0.188,0.328 -0.235,0.359 -0.078,0.047 -0.14,0.032 -0.218,-0.093 l -0.922,-1.594 c -0.407,-0.703 -1.094,-0.75 -1.735,-0.375 -0.437,0.25 -0.703,0.594 -0.765,1.015 l 0.39,0.688 c 0.094,-0.531 0.344,-0.891 0.688,-1.094 0.375,-0.219 0.64,-0.156 0.859,0.235 l 0.094,0.171 -0.422,0.5 c -0.391,0.469 -0.859,0.985 -0.5,1.594 0.234,0.406 0.766,0.594 1.234,0.328 0.282,-0.172 0.485,-0.437 0.625,-0.797 0.188,0.172 0.407,0.188 0.688,0.032 0.187,-0.11 0.281,-0.219 0.437,-0.578 z m -1.125,0.547 c -0.063,0.265 -0.172,0.453 -0.375,0.578 -0.266,0.141 -0.547,0.062 -0.688,-0.188 -0.219,-0.359 0.125,-0.812 0.547,-1.296 z"
+         style="fill:#ffffff;fill-opacity:1;fill-rule:nonzero;stroke:none"
+         id="path88" /><path
+         d="m 97.285,122.207 -0.625,0.359 1.797,3.11 0.625,-0.36 -1.297,-2.234 c 0.094,-0.484 0.235,-0.734 0.5,-0.891 0.375,-0.218 0.813,-0.046 1.063,0.391 l 1.125,1.938 0.609,-0.36 -1.109,-1.922 c -0.5,-0.859 -1.203,-0.984 -1.797,-0.656 -0.344,0.203 -0.594,0.594 -0.641,1.031 H 97.52 Z"
+         style="fill:#ffffff;fill-opacity:1;fill-rule:nonzero;stroke:none"
+         id="path90" /><path
+         d="m 101.805,122.719 c -0.219,0.125 -0.297,0.422 -0.157,0.64 0.125,0.235 0.438,0.313 0.657,0.188 0.234,-0.141 0.297,-0.438 0.172,-0.672 -0.141,-0.219 -0.438,-0.297 -0.672,-0.156 z"
+         style="fill:#ffffff;fill-opacity:1;fill-rule:nonzero;stroke:none"
+         id="path92" /><path
+         d="m 103.07,118.762 c -0.937,0.531 -1.234,1.656 -0.718,2.562 0.546,0.938 1.656,1.235 2.609,0.688 1,-0.578 1.281,-1.657 0.719,-2.625 -0.532,-0.938 -1.625,-1.188 -2.61,-0.625 z m 0.328,0.562 c 0.61,-0.359 1.313,-0.172 1.657,0.438 0.39,0.672 0.234,1.328 -0.422,1.703 -0.61,0.344 -1.281,0.125 -1.656,-0.516 -0.344,-0.609 -0.172,-1.281 0.421,-1.625 z"
+         style="fill:#ffffff;fill-opacity:1;fill-rule:nonzero;stroke:none"
+         id="path94" /><path
+         d="m 105.535,117.438 1.797,3.109 0.625,-0.359 -0.953,-1.641 c -0.297,-0.531 -0.203,-1.125 0.219,-1.375 0.14,-0.078 0.468,-0.11 0.75,-0.031 l 0.031,-0.719 c -0.406,-0.11 -0.719,-0.094 -0.969,0.047 -0.297,0.172 -0.453,0.578 -0.453,1.328 h -0.016 l -0.406,-0.719 z"
+         style="fill:#ffffff;fill-opacity:1;fill-rule:nonzero;stroke:none"
+         id="path96" /><path
+         d="m 110.738,114.441 -1.281,0.735 c -0.844,0.484 -1.125,1.187 -0.75,1.844 0.141,0.234 0.313,0.39 0.516,0.484 0.203,0.125 0.453,0.156 0.734,0.109 v 0.016 c -0.25,0.25 -0.344,0.516 -0.234,0.719 0.093,0.156 0.25,0.218 0.547,0.234 -0.454,0.438 -0.547,0.844 -0.282,1.313 0.328,0.546 1.141,0.593 1.985,0.109 0.922,-0.531 1.25,-1.234 0.906,-1.844 -0.234,-0.406 -0.672,-0.609 -1.422,-0.328 -0.703,0.219 -1.062,0.313 -1.172,0.141 -0.203,-0.375 0.766,-0.657 0.906,-1.344 0.079,-0.219 0.047,-0.609 -0.109,-0.875 -0.141,-0.25 -0.328,-0.375 -0.719,-0.484 l 0.641,-0.36 z m -0.234,1.579 c 0.187,0.343 0.062,0.718 -0.266,0.921 -0.39,0.219 -0.75,0.141 -0.953,-0.203 -0.172,-0.312 -0.062,-0.718 0.281,-0.922 0.313,-0.187 0.766,-0.093 0.938,0.204 z m 1.797,2.531 c 0.172,0.281 -0.063,0.64 -0.594,0.953 -0.562,0.328 -0.969,0.328 -1.156,0.016 -0.156,-0.266 0.031,-0.641 0.437,-0.875 0.391,-0.219 1.094,-0.5 1.313,-0.094 z"
+         style="fill:#ffffff;fill-opacity:1;fill-rule:nonzero;stroke:none"
+         id="path98" /></g></g></svg>

Debdiff

[The following lists of changes regard files as different if they have different names, permissions or owners.]

Files in second set of .debs but not in first

-rw-r--r--  root/root   /usr/lib/R/site-library/shinystan/help/figures/logo.svg

No differences were encountered in the control files

More details

Full run details