moveToFolder           package:RGoogleDocs           R Documentation

_M_o_v_e _a _d_o_c_u_m_e_n_t _t_o _a _f_o_l_d_e_r

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

     This function allows us to move  a document, be it a spreadsheet,
     word processing document, presentation or folder, into a Google
     Docs folder on the repository.

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

     moveToFolder(doc, to, con = if (is(doc,"GoogleDocumentDescription")) 
                                   doc@connection 
                                 else
                                   getGoogleDocsConnection())

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

     doc: the document (spreadsheet, word processing document, folder,
          presentation) to be moved. This should be a
          GoogleDocumentDescription, but can be a name.

      to: the folder object of class GoogleFolder, or a name.

     con: an authenticated connection to the Google API. See
          'getGoogleDocsConnection'.

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

     A 'GoogleFolder'

_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>

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

     'addFolder'

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

     if(exists("GoogleDocsPassword")) {
       con = getGoogleDocsConnection()
       a = addFolder("A", con)
       b = addFolder("B", con)
       c = addFolder("C", con)

       moveToFolder(b, a, con)
       moveToFolder(c, a, con)

       f = addFolder(c("One", "Two", "Three"), con)
     }

