File tree Expand file tree Collapse file tree 1 file changed +5
-9
lines changed Expand file tree Collapse file tree 1 file changed +5
-9
lines changed Original file line number Diff line number Diff line change @@ -148,12 +148,11 @@ prepareExamples <- function(items) {
148148 if (is.null(example )) {
149149 return ()
150150 }
151-
152- example_server <- list ()
153- example_server [[item $ id ]] <- example $ server
151+ exampleServer <- list ()
152+ exampleServer [[item $ id ]] <- example $ server
154153 return (
155154 list (
156- server = example_server ,
155+ server = exampleServer ,
157156 router = route(
158157 path = item $ id ,
159158 ui = makePage(
@@ -166,12 +165,10 @@ prepareExamples <- function(items) {
166165 )
167166 )
168167 })
169-
170168 return (routes )
171169}
172170
173171makeRouter <- function (items , routes ) {
174-
175172 routes <- append(
176173 list (route(
177174 path = " /" ,
@@ -274,9 +271,8 @@ shinyApp(
274271 server = function (input , output , session ) {
275272 router_server()
276273 session $ sendCustomMessage(" highlight_all" , list ())
277-
278- example_servers <- unlist(map(examples , " server" ))
279- lapply(items , function (item , modules = example_servers ) {
274+ exampleServers <- unlist(map(examples , " server" ))
275+ lapply(items , function (item , modules = exampleServers ) {
280276 modules [[item $ id ]](item $ id )
281277 })
282278 }
You can’t perform that action at this time.
0 commit comments