We could deploy App with URL etc etc. But how can we just share the rendered data in Shiny securely via REST API ?
Relevant links:
https://groups.google.com/forum/#!topic/shiny-discuss/-JYOXAeLCtI
https://analyticsprofile.com/business-analytics/convert-r-programs-into-rest-api/ (example) https://github.com/rstudio/plumber/tree/master/R (package)
library(shiny) library(tidyverse) ui <- fluidPage( DT::dataTableOutput("display") ) server <- function(input, output, session) { output$display <- DT::renderDataTable({ #browser() DT::datatable(mtcars, options = list(pageLength = 7,scrollX = TRUE)) }) # How to send this data via REST API securely ? } shinyApp(ui, server)
I would go for plumber, since it's designed to setup an API. There's a chapter about security in the documentation as well.
You could share data between shiny and plumber via a database for example. Is that an option for you?
great, could you please share an example ?
No, I don't have an example of that, It's just an idea that could fit your request. But in the documentation for plumber, you can find links how to connect to a database, that might give you a good start.
This topic was automatically closed 54 days after the last reply. New replies are no longer allowed.