getInput<-function(inpstat){
if(missing(inpstat)){
n<-readline(prompt = "Select a field: ")
n<-as.numeric(n)
} else {
n<-readline(prompt = paste0(inpstat,", Select a field: "))
n<-as.numeric(n)
}
return(n)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.