Below is sample code from my UI which creates a tab panel. My UI code has grown tremendously and is getting quite difficult to manage.
Is it possible to put this snippet of code in a separate file and then somehow source this in to my UI code?
Any advice on doing that would be very helpful. Thank you
tabPanel("Export .Rdata",
sidebarLayout(
sidebarPanel(
fileInput('file2export', 'Read in .Rdata File', accept=c('.RData', '.Rda')),
helpText('Select your desired file format for export; .csv for
comma separated or .tsv for tab separated.'),
radioButtons("filetype", "File type:",
choices = c("csv", "tsv")),
downloadButton('downloadData', 'Export')
),
mainPanel(
h1('Data Preview'),
tableOutput('table')
)
)
), # end tabpanel for export