@@ -85,24 +85,25 @@ addResourcePath <- function(prefix, directoryPath) {
8585 }
8686 )
8787
88- # Often times overwriting a resource path is "what you want",
89- # but sometimes it can lead to difficult to diagnose issues
90- # (e.g. an implict dependency might set a resource path that
91- # conflicts with what you, the app author, are trying to register)
92- # Note that previous versions of shiny used to warn about this case,
93- # but it was eventually removed since it caused confusion (#567).
94- # It seems a good comprimise is to throw a more information message.
95- if (prefix %in% names(.globals $ resourcePaths )) {
96- existingPath <- .globals $ resourcePaths [[prefix ]]$ path
97- if (normalizedPath != existingPath ) {
98- message(
99- " The resource path '" , prefix , " ' used to point to " ,
100- existingPath , " , but it now points to " , normalizedPath , " . " ,
101- " If your app doesn't work as expected, you may want to " ,
102- " choose a different prefix name."
103- )
104- }
105- }
88+ # # Often times overwriting a resource path is "what you want",
89+ # # but sometimes it can lead to difficult to diagnose issues
90+ # # (e.g. an implict dependency might set a resource path that
91+ # # conflicts with what you, the app author, are trying to register)
92+ # # Note that previous versions of shiny used to warn about this case,
93+ # # but it was eventually removed since it caused confusion (#567).
94+ # # It seems a good compromise is to throw a more information message.
95+ # if (getOption("shiny.resourcePathChanges", FALSE) &&
96+ # prefix %in% names(.globals$resourcePaths)) {
97+ # existingPath <- .globals$resourcePaths[[prefix]]$path
98+ # if (normalizedPath != existingPath) {
99+ # message(
100+ # "The resource path '", prefix, "' used to point to ",
101+ # existingPath, ", but it now points to ", normalizedPath, ". ",
102+ # "If your app doesn't work as expected, you may want to ",
103+ # "choose a different prefix name."
104+ # )
105+ # }
106+ # }
106107
107108 # If a shiny app is currently running, dynamically register this path with
108109 # the corresponding httpuv server object.
0 commit comments