publicWorksheet: Create reference to a public Google document

View source: R/auth.R

publicWorksheetR Documentation

Create reference to a public Google document

Description

This function gives us an object which references a public Google document (worksheet).

Usage

publicWorksheet(key, curl = getCurlHandle(), obj = new("GoogleSpreadsheet"))

Arguments

key

the key identifying the public Google document

curl

the curl handle to use when querying this document (in the future). This can be NULL.

obj

an instance of the desired R type. This is filled in and then returned. This allows the caller to pass an instance of a derived class.

Value

The updated object obj.

Author(s)

Duncan Temple Lang

See Also

sheetAsMatrix

Examples


  wb = publicWorksheet("phAwcNAVuyj2tPLxKvvnNPA")
  ws = getWorksheets(wb, NULL)
  o = sheetAsMatrix(ws[[1]], con = NULL)

duncantl/RGoogleDocs documentation built on Nov. 23, 2023, 4:22 p.m.