removeDoc            package:RGoogleDocs            R Documentation

_R_e_m_o_v_e _a _d_o_c_u_m_e_n_t _f_r_o_m _a _G_o_o_g_l_e _D_o_c_s _a_c_c_o_u_n_t

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

     This function removes a document within a Google  Docs
     repository/account.

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

     removeDoc(doc, con)

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

     doc: the name of the document to delete or  a 
          'GoogleDocument-class' returned by 'getDocs'.

     con: an object of class 'GoogleDocumentsConnection' or sub-class.

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

     A named integer vector returned by 'curlPerform'.

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

     Duncan Temple Lang

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

     'getGoogleDocsConnection'

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

     if(exists("GoogleDocsPassword")) {
               # getGoogleDocsConnection("my login", "my password")

       con = getGoogleDocsConnection(names(GoogleDocsPassword), GoogleDocsPassword)

         # Create a new document
       uploadDoc("1,2,3\n4,5,6\n", con, "Hazel", "CSV", asText = TRUE)
         # Then remove it.
       removeDoc("Hazel", con)
     }

