From f349f46a14bee4e3ee887645d86d7de11a033b33 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alfredo=20Herna=CC=81ndez?= Date: Wed, 24 Jan 2024 10:12:48 +0000 Subject: [PATCH] Fix error when loading app on shinyapps.io (see https://community.rstudio.com/t/warning-error-in-loadnamespace-there-is-no-package-called-markdown/121671?u=aldomann) --- .github/workflows/deploy-shiny.yml | 1 - dev/shiny-dev/app.R | 10 ++++++++-- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/.github/workflows/deploy-shiny.yml b/.github/workflows/deploy-shiny.yml index a9fa610d..dd81feb2 100644 --- a/.github/workflows/deploy-shiny.yml +++ b/.github/workflows/deploy-shiny.yml @@ -25,7 +25,6 @@ jobs: extra-packages: | pkgload rsconnect - markdown here BH cpp11 diff --git a/dev/shiny-dev/app.R b/dev/shiny-dev/app.R index 0930c4b8..58218a79 100644 --- a/dev/shiny-dev/app.R +++ b/dev/shiny-dev/app.R @@ -2,6 +2,12 @@ # To deploy, run: rsconnect::deployApp() # Or use the blue button on top of this file -pkgload::load_all(export_all = FALSE, helpers = FALSE, attach_testthat = FALSE) +library(markdown) +pkgload::load_all( + export_all = FALSE, + helpers = FALSE, + attach_testthat = FALSE +) + options("golem.app.prod" = TRUE) -biodosetools::run_app() # add parameters here (if any) +biodosetools::run_app()