-
Notifications
You must be signed in to change notification settings - Fork 19
Open
posit-dev/shinylive
#79Description
I have an app from my screencast that I tried to turn into a shinylive app that takes advantage of session$clientData$url_search to pull in the query params from a user. Once I used shinylive to convert it, the queries passed to the URL did get passed onto the shinylive shiny session.
Not sure how large of use-case this is, but I would imagine some folks might want bookmarking to function so flagging for your attention.
library(shiny)
ui <- fluidPage(
textOutput("time"),
textOutput("search_values")
)
server <- function(input, output, session){
## Update timeVal every second with current time
timeVal <- reactivePoll(1000, session,
checkFunc = function() {
Sys.time()
},
# This function returns the content of log_file
valueFunc = function() {
Sys.time()
}
)
output$time <- renderText({
format(timeVal(),"%m-%d-%Y %H:%M:%S")
})
search <- reactive({
timeVal()
session$clientData
})
output$search_values <- renderText({
format(search())
})
}
shinyApp(ui, server)
scrapeable
Metadata
Metadata
Assignees
Labels
No labels