Can you enter a URL in a shiny app?

Beginner in Shiny app.
should I use textInput to enter a website URL? how can I pass it into the server function to be manipulated in the program?

ui <- fluidPage(
 textInput(inputId="txt", label="Enter Website", value ="http://...")


server <- function(input, output, session) {

shinyApp(ui, server)

Welcome. It would be better to use sv_url() from shinyvalidate to ensure it is a url.


Need more explanation: input it as a text or is there some other data structure I need to input it with


print("it is not a URL")

This topic was automatically closed 54 days after the last reply. New replies are no longer allowed.

If you have a query related to it or one of the replies, start a new topic and refer back with a link.