我使用RGoogleDocs包將文本字符串上傳到文檔。RGoogleDocs - uploadDoc不替換同名文檔
以下代碼是一個最小工作示例。
library(RGoogleDocs)
gpasswd = "mypassword"
auth = getGoogleAuth("[email protected]", gpasswd)
con = getGoogleDocsConnection(auth)
uploadDoc("test1", con, name = "d")
的問題:如果我跑兩次這個代號爲文件「d」出現。 換句話說,該文件不會被替換,即使功能嚮導在uploadDoc預期的行爲全文
uploadDoc(content, con, name, type = as.character(findType(content)),
binary = FALSE, asText = FALSE, folder = NULL, ...)
-
name the name of the new document to be created (or the document to be replaced).
新版本(0.5-0)現在以源代碼的形式在Omegahat存儲庫上提供(此時無二進制文件)。 – Duncan 2011-03-05 18:32:46
這是一個比我試圖使用文檔的「edit-media」屬性更好的解決方案。 – Noah 2011-03-05 19:08:58