searchDocs            package:RGoogleDocs            R Documentation

_S_e_a_r_c_h _f_o_r _t_e_x_t _i_n _G_o_o_g_l_e _D_o_c_u_m_e_n_t_s

_D_e_s_c_r_i_p_t_i_o_n:

     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'

_U_s_a_g_e:

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

_A_r_g_u_m_e_n_t_s:

    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.

_V_a_l_u_e:

     A list of GoogleDocumentDescription objects or a  data frame.

_A_u_t_h_o_r(_s):

     Duncan Temple Lang

_R_e_f_e_r_e_n_c_e_s:

     <URL:
     http://code.google.com/apis/documents/docs/2.0/developers_guide_protocol.html#Querying>

_S_e_e _A_l_s_o:

     'getDocs'

_E_x_a_m_p_l_e_s:

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

