From 2e77a06d173b4c778e13ed7d35cb3d0221b68109 Mon Sep 17 00:00:00 2001 From: Barret Schloerke Date: Thu, 14 Mar 2024 23:27:04 -0400 Subject: [PATCH] Only install shinycoreci if the libpath is shinycoreci_libpath --- R/install.R | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/R/install.R b/R/install.R index 75e013dcdb..e741493674 100644 --- a/R/install.R +++ b/R/install.R @@ -166,8 +166,9 @@ install_missing_pkgs <- function( stopifnot(length(list(...)) == 0) # Make sure to get underlying dependencies - # Always add shiny/shinycoreci as it is always needed - packages <- unique(c(packages, get_extra_shinyverse_deps(c(packages, "shiny", "local::.")))) + # Always add shiny as it is always needed + # Only install shinycoreci if the libpath is shinycoreci_libpath() + packages <- unique(c(packages, get_extra_shinyverse_deps(c(packages, "shiny", if (libpath == shinycoreci_libpath()) "shinycoreci" )))) pkgs_to_install <- packages[!(packages %in% names(installed_pkgs))]