action button to control instrument (http request)


I am making an rshiny app to control an instrument at work. The instrument is controlled via entering addresses into a browser. I.e. to pause the instrument the following in a browser would pause the instrument ''.

I'm having trouble getting an action button to simply enter the address via GET or read_html. I have tried numerous approaches. This is my current one. Please note I do not want the action button to open a page - onclick =""address").

This is currently where I am at.

# Load packages ----

# Source helper functions -----

# User interface ----
ui <- navbarPage(title = "tab1",
                          actionButton("do", "Click Me"),

# Define server logic required to draw a histogram
server <- function(input, output) {
output$update_ping <- renderText(purge) 
observeEvent(input$do, {purge <- read_file("")})


# Run the application 
shinyApp(ui = ui, server = server)

This topic was automatically closed 21 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.