问题
Is it possible to import a table into R directly from Google docs without authorization key? I have a sharable google sheet that I try to connect to shiny app but couldn't find a proper way.
回答1:
With the package gsheet
you can read in a sheet from the shareable link.
Example given in the docs:
library(gsheet)
url <- 'docs.google.com/spreadsheets/d/1I9mJsS5QnXF2TNNntTy-HrcdHmIF9wJ8ONYvEJTXSNo'
a <- gsheet2tbl(url)
It's quite nice.
来源:https://stackoverflow.com/questions/40389112/import-google-sheet-data-directly-into-r