CAUTION: This function must be used only with packages that follow the
sqlr
system.
read_sheet()
reads and returns the review tables hosted on Google Sheets.
You must have a sheets
data object with the sheets metadata before running
this function. See write_metadata()
to learn more.
read_sheet(name = NULL, package = rutils:::get_package_name())
(optional) A character
object indicating the name or names of
the sheets that the function must return (default: NULL
).
(optional) a string indicating the package with the database
data. If not assigned, the function will try to use the name of the active
project directory (requires the rstudioapi
package).
If name = NULL
, an invisible list
object with tibbles
objects of all
entity sheet/tables available as elements, with the exception of the
'sheets', 'reference', and 'document' tables and any other non-entity tables.
If name
have length > 1, an invisible list
object with tibbles
objects of sheet/tables indicated in name
as elements.
If name
have length == 1, an invisible tibble
object of the sheet/table
indicated in name
.
Other Google Sheets functions:
range_write()
,
sheet_nrow()
,
write_metadata()
,
write_query()
,
write_sheet()