View source: R/read_spreadsheet.R
| read_spreadsheet | R Documentation | 
Currently reads spreadsheets from Google Sheets or from xlsx, csv,
or sav files. Normally, you don't use this, but instead you
use dct_from_spreadsheet().
read_spreadsheet(
  x,
  sheet = NULL,
  columnDictionary = NULL,
  localBackup = NULL,
  exportGoogleSheet = TRUE,
  flattenSingleDf = FALSE,
  xlsxPkg = c("rw_xl", "openxlsx", "XLConnect"),
  failQuietly = FALSE,
  silent = psyverse::opts$get("silent")
)
| x | The URL or path to a file. | 
| sheet | Optionally, the name(s) of the worksheet(s) to select. | 
| columnDictionary | Optionally, a dictionary with column names to check for presence. A named list of vectors. | 
| localBackup | If not  | 
| exportGoogleSheet | If  | 
| flattenSingleDf | Whether to return the result as a data frame if only one data frame is returned as a result. | 
| xlsxPkg | Which package to use to work with Excel spreadsheets. | 
| failQuietly | Whether to give an error when  | 
| silent | Whether to be silent or chatty. | 
A list of dataframes, or, if only one data frame was loaded and
flattenSingleDf is TRUE, a data frame.
### Note that this example requires an internet connection!
read_spreadsheet(
  paste0(
    "https://docs.google.com/",
    "spreadsheets/d/",
    "1bHDzpCu4CwEa5_3_q_9vH2691XPhCS3e4Aj_HLhw_U8"
  )
);
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.