displaying TRUE when shiny files are split into different folders -
i have shiny app using package shinydashboard.
at first, had files 3 files - global.r, server.r, ui.r.
as files got bigger , messy, took out codes each menus, , placed them in separate folder. (splitting shiny files - http://shiny.rstudio.com/articles/scoping.html)
everything works, there's annoying happening - displays 'true' @ bottom of ui of menus split separate folder.
if in 1 big file, doesn't display true.
anyone know why happening?
functionally, same.
what's happening source returns list 2 things inside: value actual r code inside, , visible whether or not code returned visibly or invisibly. true seeing reflection of fact code returned visibly.
what want include value of list. instead of
source("file.r", local = true) change to
source("file.r", local = true)$value that should fix it
Comments
Post a Comment