I'd like to generate a popup box in R with six inputs.
I prefer to have all the inputs in the same pop-up box because most of the time most will be the default, and I'd like to quickly see at a glance that they are all correct rather than having to click through six popups.
I know dlg_input
in the svDialogs
package gives a popup box, but I don't see an option to modify it to allow for multiple inputs. Here's the code for dlg_input
:
function (message = "Enter a value", default = "", ..., gui = .GUI)
{
if (!guistartUI("dlginput",call=match.call(),default=default,
msg="Displayingamodalinputdialogbox",msg.no.ask="Amodalinputdialogboxwasby−passed"))
return(invisible(gui))
if(!length(message))
message<−"Enter a value"
message<−paste(as.character(message),collapse="\n")
if(is.null(default)){
default<−""
}
else {
default<−as.character(default)[1]
}
gui$setUI(args = list(message = message, default = default))
UseMethod("dlgInput", gui)
}
<environment: namespace:svDialogs>
I assume there's a way to modify this code to give me what I want, but it's lost on me. Any help would be much appreciated.