Last active
June 13, 2017 14:35
-
-
Save yutannihilation/f54d7f5eaea4f014509da587bca8981f to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# インストール | |
devtools::install_github("tidyverse/googledrive") | |
# 認証 | |
drive_auth() | |
tmp_doc <- tempfile(fileext = ".doc") | |
# word_documentなRmdをrender() | |
rmarkdown::render("~/Rmd/test.Rmd", output_file = tmp_doc) | |
# type に「document」「spreadsheet」とかを指定すると変換してくれる | |
tmp_gdoc <- drive_upload(tmp_doc, type = "document") | |
# 変換したやつはpublishできる | |
drive_publish(tmp_gdoc$name) | |
# ファイルのURL | |
f[1,]$files_resource[[1]]$webViewLink |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment