mirror of
https://github.com/rstudio/shiny.git
synced 2026-04-29 03:00:45 -04:00
fix: Provide context around SHINY_PORT triggering Shiny Server warning (#4345)
* fix: Provide context around SHINY_PORT triggering Shiny Server warning * `npm run build` (GitHub Actions) * chore: Add comma Co-authored-by: Barret Schloerke <barret@posit.co> --------- Co-authored-by: gadenbuie <gadenbuie@users.noreply.github.com> Co-authored-by: Barret Schloerke <barret@posit.co>
This commit is contained in:
committed by
GitHub
parent
ca259ab0f1
commit
e161f2e4a8
10
R/runapp.R
10
R/runapp.R
@@ -216,8 +216,14 @@ runApp <- function(
|
|||||||
# any valid version.
|
# any valid version.
|
||||||
ver <- Sys.getenv('SHINY_SERVER_VERSION')
|
ver <- Sys.getenv('SHINY_SERVER_VERSION')
|
||||||
if (utils::compareVersion(ver, .shinyServerMinVersion) < 0) {
|
if (utils::compareVersion(ver, .shinyServerMinVersion) < 0) {
|
||||||
warning('Shiny Server v', .shinyServerMinVersion,
|
rlang::warn(c(
|
||||||
' or later is required; please upgrade!')
|
sprintf(
|
||||||
|
"Shiny Server v%s or later is required; please upgrade.",
|
||||||
|
.shinyServerMinVersion
|
||||||
|
),
|
||||||
|
"i" = "If you are not using Shiny Server, you are likely seeing this message because the `SHINY_PORT` environment variable is set in your environment.",
|
||||||
|
"i" = "Avoid using `SHINY_PORT` to prevent this warning."
|
||||||
|
))
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user