CWWhitney / Decision_Analysis_Course

🎓 Uni-Bonn Decision Analysis graduate course, lectures and materials
https://agtools.app/decision_analysis/
MIT License
24 stars 5 forks source link

json related trailing garbage #26

Closed CWWhitney closed 11 months ago

CWWhitney commented 11 months ago

Error at https://agtools.app/decision_analysis/

Realted to jsonlite

It might been something wrong with rmarkdown:::shiny_prerendered_prerender(input_rmd, rendered_html, output_dir, prerender_option).

Error in value[3L] : parse error: trailing garbage ":{},"value":["0.10.1"]}]}]} {"type":"list","attributes":{},

Logs:

12/14 14:22:54.188 (GMT) Running on host: inresgb-0002 12/14 14:22:54.210 (GMT) Linux distribution: Ubuntu 20.04.6 LTS (focal) 12/14 14:22:54.217 (GMT) Using Packrat dir /opt/rstudio-connect/mnt/app/packrat/lib/x86_64-pc-linux-gnu/4.1.2 12/14 14:22:54.226 (GMT) Server version: 2021.12.1 12/14 14:22:54.226 (GMT) LANG: en_US.UTF-8 12/14 14:22:54.226 (GMT) R version: 4.1.2 12/14 14:22:54.226 (GMT) shiny version: 1.7.1 12/14 14:22:54.226 (GMT) httpuv version: 1.6.3 12/14 14:22:54.226 (GMT) rmarkdown version: 2.11 12/14 14:22:54.226 (GMT) knitr version: 1.37 12/14 14:22:54.226 (GMT) jsonlite version: 1.7.2 12/14 14:22:54.226 (GMT) RJSONIO version: (none) 12/14 14:22:54.226 (GMT) htmltools version: 0.5.2 12/14 14:22:54.227 (GMT) Using pandoc: /opt/rstudio-connect/ext/pandoc/2.16 12/14 14:22:54.445 (GMT) Using jsonlite for JSON processing 12/14 14:22:54.449 (GMT) Using Shiny bookmarking base directory /opt/rstudio-connect/mnt/bookmarks 12/14 14:22:54.449 (GMT) 12/14 14:22:54.449 (GMT) Starting R with process ID: '1549229' 12/14 14:22:54.500 (GMT) Shiny R Markdown document starting ... 12/14 14:22:55.415 (GMT) Error in value[3L] : parse error: trailing garbage 12/14 14:22:55.415 (GMT) ":{},"value":["0.10.1"]}]}]} {"type":"list","attributes":{}, 12/14 14:22:55.415 (GMT) Shiny R Markdown document exiting ... 12/14 14:22:55.416 (GMT) (right here) ------^ 12/14 14:22:55.416 (GMT) Calls: local ... tryCatch -> tryCatchList -> tryCatchOne -> 12/14 14:22:55.416 (GMT) Execution halted

CWWhitney commented 11 months ago

Solved with a reinstall and local build - Updated packages and built locally with new install.

install.packages(c("bayesplot", "DiagrammeR", "ggcorrplot", "ggplot2", "ggrepel", "ggridges", "ggthemes", "igraph", "knitr", "learnr", "pander", "plyr", "rmarkdown", "tidyverse"))