addFolder: Create and list the contents of a folder

addFolderR Documentation

Create and list the contents of a folder

Description

These functions allow us to create a new folder in the Google Docs repository and also to list the documents within a folder.

Usage

addFolder(name, con, url = GoogleURLs["documents"])
listFolder(doc, con = doc@connection, as.data.frame = FALSE, asXML = FALSE)

Arguments

name

a character string giving the name of the folder to be created.

con

an authenticated connection to the Google Docs repository, for the writely service, not the wise service for spreadsheets.

url

the URL where the request is to be posted. This is the default top-level of the repository.

doc

the folder whose contents are to be listed. This can be a GoogleDocumentDescription returned by addFolder or getDocs or can be a simple character string identifying the folder by name.

as.data.frame

a logical value indicating whether the information about the collection of documents should be returned as a data frame or left as a list of GoogleDocumentDescription objects.

asXML

a logical value indicating whether the XML returned from the request to list the contents of the folder should be returned directly as a parsed XML document.

Value

addFolder returns an object of class GoogleFolder-class.

listFolder returns a list of GoogleDocumentDescription-class objects or a data frame. See getDocs.

Author(s)

Duncan Temple Lang

See Also

getGoogleDocsConnection getDocs moveToFolder


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