searchDocs: Search for text in Google Documents

View source: R/docs.R

searchDocsR Documentation

Search for text in Google Documents

Description

This function allows one to searchidentify all, or some subsets, of the Google Documents in an account to look for a particular matching text. One specifies the text to be matched and a connection to the Google Docs account and then search is done on the server. The return value is either a list or a data frame describing the matching documents.

This is essentially a convenience function that can be done with getDocs

Usage

searchDocs(text, con = getGoogleDocsConnection(), as.data.frame = FALSE, url = GoogleURLs["documents"])

Arguments

text

the text to be searched for in the Google documents

con

the authenticated connection to the Google Docs account

as.data.frame

a logical value indicating whether to return the information about each document as a row in a data frame or as individual GoogleDocument objects.

url

the type of documents to fetch, e.g. documents or spreadsheets. One can specify a value in GoogleURLs or use a name from this vector.

Value

A list of GoogleDocumentDescription objects or a data frame.

Author(s)

Duncan Temple Lang

References

http://code.google.com/apis/documents/docs/2.0/developers\_guide\_protocol.html#Querying

See Also

getDocs

Examples


## Not run: 
 searchDocs("a",con, url = "https://docs.google.com/feeds/documents/private/full/-/document")
   # Restrict the search to only word processing documents
 searchDocs("a",con, url = "https://docs.google.com/feeds/documents/private/full/-/document")

## End(Not run)


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