RGoogleDocs (version 0.7-0)

searchDocs: 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.

References

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

See Also

getDocs

Examples

Run this code

## 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)

Run the code above in your browser using DataCamp Workspace