inst/shiny-examples/01_read-public-sheet/server.R

library(shiny)
library(googlesheets)
library(DT)

gap_ss <- gs_gap()

gap_data <- gs_read(gap_ss)

shinyServer(function(input, output, session) {

  output$the_data <- renderDataTable({

    datatable(gap_data)

  })

})

Try the googlesheets package in your browser

Any scripts or data that you put into this service are public.

googlesheets documentation built on May 2, 2019, 1:57 p.m.