Skip to content

Commit

Permalink
some cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
eeholmes committed Oct 9, 2021
1 parent 9e903c3 commit 7fd3faa
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 39 deletions.
2 changes: 1 addition & 1 deletion Batch-word-to-rmd.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ This Rmd will download Word (`docx`) files from a Google Drive folder and conver
## Download all the Word files

This will download the files from the folder and save to a folder called `data`.
```{r}
```{r message=FALSE}
a <- googledrive::drive_ls(path = url_googledrive, type = "docx")
for (i in 1:nrow(a)){
googledrive::drive_download(a$id[i], overwrite = TRUE, path = file.path("data", a$name[i]))
Expand Down
19 changes: 0 additions & 19 deletions Batch-word-to-rmd.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,29 +9,10 @@ This will download the files from the folder and save to a folder called
`data`.

a <- googledrive::drive_ls(path = url_googledrive, type = "docx")

## Auto-refreshing stale OAuth token.

for (i in 1:nrow(a)){
googledrive::drive_download(a$id[i], overwrite = TRUE, path = file.path("data", a$name[i]))
}

## File downloaded:

## • 'example.docx' <id: 1mu0byOimaRFwLT6NTSoVAZKXhsOkyg8Y>

## Saved locally as:

## • 'data/example.docx'

## File downloaded:

## • 'example2.docx' <id: 1LZm6w6FsfDhZsvjxPA5hAuaVMbDeGHal>

## Saved locally as:

## • 'data/example2.docx'

## Convert the Word files to Rmd

Converting Word to Rmd works well if your Word document is simple and
Expand Down
19 changes: 0 additions & 19 deletions Readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -302,29 +302,10 @@ This will download the files from the folder and save to a folder called
`data`.

a <- googledrive::drive_ls(path = url_googledrive, type = "docx")

## Auto-refreshing stale OAuth token.

for (i in 1:nrow(a)){
googledrive::drive_download(a$id[i], overwrite = TRUE, path = file.path("data", a$name[i]))
}

## File downloaded:

## • 'example.docx' <id: 1mu0byOimaRFwLT6NTSoVAZKXhsOkyg8Y>

## Saved locally as:

## • 'data/example.docx'

## File downloaded:

## • 'example2.docx' <id: 1LZm6w6FsfDhZsvjxPA5hAuaVMbDeGHal>

## Saved locally as:

## • 'data/example2.docx'

## Convert the Word files to Rmd

Converting Word to Rmd works well if your Word document is simple and
Expand Down
Binary file modified data/media/image2.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 7fd3faa

Please sign in to comment.