Functions return the last evaluated value, so in your case the first part will be lost. For example.
function(){ "a" "b" }
returns "b"
so you donβt want to. Use div or tagList.
filetextInput <- function (fileId, fileLabel, textId, textLabel, textValue, divstyle, ...) { div( # sample file div(style = divstyle, fileInput.custom(inputId = fileId, label = fileLabel, class = class.input.small) ), # label for sample, to be used in plot(s) div(style = divstyle, textInput.custom(inputId = textId, label = textLabel, value = textValue, class = class.input.small) ) ) }
fxi Jan 05 '16 at 11:15 2016-01-05 11:15
source share