Running ‘testthat.R’ [17s/23s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(shinystan)
  Loading required package: shiny
  
  This is shinystan version 2.4.0
  
  > 
  > test_check("shinystan")
  ── 1. Error: deploy_shinystan preprocessing doesn't error (@test_deploy_shinysta
  cannot open the connection
  1: expect_silent(deploy_test <- deploy_shinystan(sso, appName = "test", deploy = FALSE)) at testthat/test_deploy_shinystan.R:19
  2: quasi_capture(enquo(object), evaluate_promise)
  3: capture(act$val <- eval_bare(get_expr(quo), get_env(quo)))
  4: withr::with_output_sink(temp, withCallingHandlers(withVisible(code), warning = handle_warning, 
         message = handle_message))
  5: force(code)
  6: withCallingHandlers(withVisible(code), warning = handle_warning, message = handle_message)
  7: withVisible(code)
  8: eval_bare(get_expr(quo), get_env(quo))
  9: deploy_shinystan(sso, appName = "test", deploy = FALSE)
  10: file(file_name, "r+")
  
  ── 2. Error: deploy_shinystan pp_check processing functions ok (@test_deploy_shi
  cannot open the connection
  1: deploy_shinystan(sso, appName = "test", deploy = FALSE, ppcheck_data = rep(1, 8), 
         ppcheck_yrep = "yrep") at testthat/test_deploy_shinystan.R:28
  2: file(file_name, "r+")
  
  ══ testthat results  ═══════════════════════════════════════════════════════════
  OK: 253 SKIPPED: 0 FAILED: 2
  1. Error: deploy_shinystan preprocessing doesn't error (@test_deploy_shinystan.R#19) 
  2. Error: deploy_shinystan pp_check processing functions ok (@test_deploy_shinystan.R#28) 
  
  Error: testthat unit tests failed
  Execution halted
  rm: cannot remove '/tmp/RtmpQw59sC/ShinyStan/helper_functions/summary_stats_helpers.R': Permission denied
  rm: cannot remove '/tmp/RtmpQw59sC/ShinyStan/helper_functions/shinystan_helpers.R': Permission denied
  rm: cannot remove '/tmp/RtmpQw59sC/ShinyStan/helper_functions/hmc_diagnostics_helpers.R': Permission denied
  rm: cannot remove '/tmp/RtmpQw59sC/ShinyStan/helper_functions/gg_theme_elements.R': Permission denied
  rm: cannot remove '/tmp/RtmpQw59sC/ShinyStan/markdown/pp_check_tutorial.md': Permission denied
  rm: cannot remove '/tmp/RtmpQw59sC/ShinyStan/server_files/tooltips/tooltips.R': Permission denied
  rm: cannot remove '/tmp/RtmpQw59sC/ShinyStan/server_files/utilities/extract_sso.R': Permission denied
  rm: cannot remove '/tmp/RtmpQw59sC/ShinyStan/server_files/utilities/par_samps_reactive.R': Permission denied
  rm: cannot remove '/tmp/RtmpQw59sC/ShinyStan/server_files/utilities/make_param_list_with_groups_sort.R': Permission denied
  rm: cannot remove '/tmp/RtmpQw59sC/ShinyStan/server_files/debounce.R': Permission denied
  rm: cannot remove '/tmp/RtmpQw59sC/ShinyStan/server_files/pages/diagnose/ppcheck/ppcheck_helpers.R': Permission denied
  rm: cannot remove '/tmp/RtmpQw59sC/ShinyStan/server_files/pages/diagnose/ppcheck/ui/pp_get_y_and_yrep.R': Permission denied
  rm: cannot remove '/tmp/RtmpQw59sC/ShinyStan/server_files/pages/diagnose/ppcheck/server/y_vs_avg_rep.R': Permission denied
  rm: cannot remove '/tmp/RtmpQw59sC/ShinyStan/server_files/pages/diagnose/ppcheck/server/hists_test_statistics.R': Permission denied
  rm: cannot remove '/tmp/RtmpQw59sC/ShinyStan/server_files/pages/diagnose/ppcheck/server/hists_rep_vs_obs.R': Permission denied
  rm: cannot remove '/tmp/RtmpQw59sC/ShinyStan/server_files/pages/diagnose/ppcheck/server/hists_resids.R': Permission denied
  rm: cannot remove '/tmp/RtmpQw59sC/ShinyStan/server_files/pages/diagnose/ppcheck/server/rep_vs_resid_rep.R': Permission denied
  rm: cannot remove '/tmp/RtmpQw59sC/ShinyStan/server_files/pages/diagnose/ppcheck/server/pp_utils.R': Permission denied
  rm: cannot remove '/tmp/RtmpQw59sC/ShinyStan/server_files/pages/diagnose/ppcheck/server/rstanarm.R': Permission denied
  rm: cannot remove '/tmp/RtmpQw59sC/ShinyStan/server_files/pages/diagnose/ui/multitrace_customize.R': Permission denied
  rm: cannot remove '/tmp/RtmpQw59sC/ShinyStan/server_files/pages/diagnose/server/multitrace.R': Permission denied
  rm: cannot remove '/tmp/RtmpQw59sC/ShinyStan/server_files/pages/diagnose/server/rhat_neff_mcse.R': Permission denied
  rm: cannot remove '/tmp/RtmpQw59sC/ShinyStan/server_files/pages/diagnose/server/diagnostics.R': Permission denied
  rm: cannot remove '/tmp/RtmpQw59sC/ShinyStan/server_files/pages/diagnose/server/summary_stats_sampler.R': Permission denied
  rm: cannot remove '/tmp/RtmpQw59sC/ShinyStan/server_files/pages/diagnose/server/autocorr.R': Permission denied
  rm: cannot remove '/tmp/RtmpQw59sC/ShinyStan/server_files/pages/more/notes_and_code.R': Permission denied
  rm: cannot remove '/tmp/RtmpQw59sC/ShinyStan/server_files/pages/estimate/ui/multiparam_selectize.R': Permission denied
  rm: cannot remove '/tmp/RtmpQw59sC/ShinyStan/server_files/pages/estimate/server/multiparameter_plot.R': Permission denied
  rm: cannot remove '/tmp/RtmpQw59sC/ShinyStan/server_files/pages/estimate/server/summary_stats_latex.R': Permission denied
  rm: cannot remove '/tmp/RtmpQw59sC/ShinyStan/server_files/pages/estimate/server/summary_stats.R': Permission denied
  rm: cannot remove '/tmp/RtmpQw59sC/ShinyStan/server_files/pages/explore/ui/ui_trivariate_select_x.R': Permission denied
  rm: cannot remove '/tmp/RtmpQw59sC/ShinyStan/server_files/pages/explore/server/density.R': Permission denied
  rm: cannot remove '/tmp/RtmpQw59sC/ShinyStan/server_files/pages/explore/server/bivariate.R': Permission denied
  rm: cannot remove '/tmp/RtmpQw59sC/ShinyStan/server_files/pages/explore/server/histogram.R': Permission denied
  rm: cannot remove '/tmp/RtmpQw59sC/ShinyStan/server_files/pages/explore/server/trivariate.R': Permission denied
  rm: cannot remove '/tmp/RtmpQw59sC/ShinyStan/server_files/pages/explore/server/multiview.R': Permission denied
  rm: cannot remove '/tmp/RtmpQw59sC/ShinyStan/server_files/pages/explore/server/summary_stats_param.R': Permission denied
  rm: cannot remove '/tmp/RtmpQw59sC/ShinyStan/global_utils.R': Permission denied
  rm: cannot remove '/tmp/RtmpQw59sC/ShinyStan/css/ShinyStan_datatables.css': Permission denied
  rm: cannot remove '/tmp/RtmpQw59sC/ShinyStan/css/ShinyStan.css': Permission denied
  rm: cannot remove '/tmp/RtmpQw59sC/ShinyStan/css/ShinyStan_dygraphs.css': Permission denied
  rm: cannot remove '/tmp/RtmpQw59sC/ShinyStan/ui.R': Permission denied
  rm: cannot remove '/tmp/RtmpQw59sC/ShinyStan/server.R': Permission denied
  rm: cannot remove '/tmp/RtmpQw59sC/ShinyStan/text/quick_neff.txt': Permission denied
  rm: cannot remove '/tmp/RtmpQw59sC/ShinyStan/text/quick_rhat.txt': Permission denied
  rm: cannot remove '/tmp/RtmpQw59sC/ShinyStan/text/quick_mcse.txt': Permission denied
  rm: cannot remove '/tmp/RtmpQw59sC/ShinyStan/www/wide_ensemble.png': Permission denied
  rm: cannot remove '/tmp/RtmpQw59sC/ShinyStan/www/stan_logo.png': Permission denied
  rm: cannot remove '/tmp/RtmpQw59sC/ShinyStan/www/wide_funnel.png': Permission denied
  rm: cannot remove '/tmp/RtmpQw59sC/ShinyStan/server_utils.R': Permission denied
  rm: cannot remove '/tmp/RtmpQw59sC/ShinyStan/global.R': Permission denied
  rm: cannot remove '/tmp/RtmpQw59sC/ShinyStan/ui_files/diagnostics_ndivergent.R': Permission denied
  rm: cannot remove '/tmp/RtmpQw59sC/ShinyStan/ui_files/pp_navlist_rstanarm.R': Permission denied
  rm: cannot remove '/tmp/RtmpQw59sC/ShinyStan/ui_files/pp_navlist.R': Permission denied
  rm: cannot remove '/tmp/RtmpQw59sC/ShinyStan/ui_files/autocorr_customize.R': Permission denied
  rm: cannot remove '/tmp/RtmpQw59sC/ShinyStan/ui_files/diagnostics_help.R': Permission denied
  rm: cannot remove '/tmp/RtmpQw59sC/ShinyStan/ui_files/bivariate_customize.R': Permission denied
  rm: cannot remove '/tmp/RtmpQw59sC/ShinyStan/ui_files/density_customize.R': Permission denied
  rm: cannot remove '/tmp/RtmpQw59sC/ShinyStan/ui_files/sampler_stats_customize.R': Permission denied
  rm: cannot remove '/tmp/RtmpQw59sC/ShinyStan/ui_files/diagnostics_energy.R': Permission denied
  rm: cannot remove '/tmp/RtmpQw59sC/ShinyStan/ui_files/trivariate_select.R': Permission denied
  rm: cannot remove '/tmp/RtmpQw59sC/ShinyStan/ui_files/diagnostics_by_parameter.R': Permission denied
  rm: cannot remove '/tmp/RtmpQw59sC/ShinyStan/ui_files/diagnostics_treedepth.R': Permission denied
  rm: cannot remove '/tmp/RtmpQw59sC/ShinyStan/ui_files/diagnostics_stepsize.R': Permission denied
  rm: cannot remove '/tmp/RtmpQw59sC/ShinyStan/ui_files/hist_customize.R': Permission denied
  rm: cannot remove '/tmp/RtmpQw59sC/ShinyStan/ui_files/model_code.R': Permission denied
  rm: cannot remove '/tmp/RtmpQw59sC/ShinyStan/ui_files/trivariate_customize.R': Permission denied
  rm: cannot remove '/tmp/RtmpQw59sC/ShinyStan/ui_files/glossary.R': Permission denied
  rm: cannot remove '/tmp/RtmpQw59sC/ShinyStan/ui_files/PAGE_estimate.R': Permission denied
  rm: cannot remove '/tmp/RtmpQw59sC/ShinyStan/ui_files/PAGE_diagnose.R': Permission denied
  rm: cannot remove '/tmp/RtmpQw59sC/ShinyStan/ui_files/pp_about.R': Permission denied
  rm: cannot remove '/tmp/RtmpQw59sC/ShinyStan/ui_files/table_latex_sidebar.R': Permission denied
  rm: cannot remove '/tmp/RtmpQw59sC/ShinyStan/ui_files/multiparam_customize.R': Permission denied
  rm: cannot remove '/tmp/RtmpQw59sC/ShinyStan/ui_files/diagnostics_customize.R': Permission denied
  rm: cannot remove '/tmp/RtmpQw59sC/ShinyStan/ui_files/dynamic_trace_helptext.R': Permission denied
  rm: cannot remove '/tmp/RtmpQw59sC/ShinyStan/ui_files/table_customize.R': Permission denied
  rm: cannot remove '/tmp/RtmpQw59sC/ShinyStan/ui_files/rhat_neff_mcse_layout.R': Permission denied
  rm: cannot remove '/tmp/RtmpQw59sC/ShinyStan/ui_files/PAGE_explore.R': Permission denied
  rm: cannot remove '/tmp/RtmpQw59sC/ShinyStan/ui_files/help.R': Permission denied
  rm: cannot remove '/tmp/RtmpQw59sC/ShinyStan/ui_files/PAGE_more_menu.R': Permission denied
  rm: cannot remove '/tmp/RtmpQw59sC/ShinyStan/ui_files/PAGE_home.R': Permission denied
  rm: cannot remove '/tmp/RtmpQw59sC/ShinyStan/ui_files/diagnostics_sample.R': Permission denied
  rm: cannot remove '/tmp/RtmpQw59sC/ShinyStan/ui_files/about.R': Permission denied
  rm: cannot remove '/tmp/RtmpQw59sC/ShinyStan/ui_files/table_latex_main.R': Permission denied
  rm: cannot remove '/tmp/RtmpQw59sC/ShinyStan/ui_files/notepad.R': Permission denied
  rm: cannot remove '/tmp/RtmpQw59sC/ShinyStan/html/rhat.html': Permission denied
  rm: cannot remove '/tmp/RtmpQw59sC/ShinyStan/html/stepsize.html': Permission denied
  rm: cannot remove '/tmp/RtmpQw59sC/ShinyStan/html/ndivergent.html': Permission denied
  rm: cannot remove '/tmp/RtmpQw59sC/ShinyStan/html/nleapfrog.html': Permission denied
  rm: cannot remove '/tmp/RtmpQw59sC/ShinyStan/html/home_page_links.html': Permission denied
  rm: cannot remove '/tmp/RtmpQw59sC/ShinyStan/html/mcse.html': Permission denied
  rm: cannot remove '/tmp/RtmpQw59sC/ShinyStan/html/treedepth.html': Permission denied
  rm: cannot remove '/tmp/RtmpQw59sC/ShinyStan/html/energy.html': Permission denied
  rm: cannot remove '/tmp/RtmpQw59sC/ShinyStan/html/contribs.html': Permission denied
  rm: cannot remove '/tmp/RtmpQw59sC/ShinyStan/html/citation.html': Permission denied
  rm: cannot remove '/tmp/RtmpQw59sC/ShinyStan/html/nuts.html': Permission denied
  rm: cannot remove '/tmp/RtmpQw59sC/ShinyStan/html/accept_stat.html': Permission denied
  rm: cannot remove '/tmp/RtmpQw59sC/ShinyStan/html/neff.html': Permission denied
  rm: cannot remove '/tmp/RtmpQw59sC/ShinyStan/ggplot_fns.rda': Permission denied
  rm: cannot remove '/tmp/RtmpQw59sC/ShinyStan/ui_utils.R': Permission denied