File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -5,7 +5,10 @@ library(parsermd)
5
5
library(googledrive )
6
6
library(jsonlite )
7
7
# library(synthesisr) might be interesting to find and remove duplicates from the
8
- # however, they do not allow to keep the labels that the bib items already have.
8
+ # bibliography.
9
+ # however, they do not allow to keep the labels that the bib items already have.
10
+
11
+ drive_auth()
9
12
10
13
# download the docx files from google drive
11
14
folder <- " https://drive.google.com/drive/folders/10cZDtfWFMglGF4ICvBzv6HXkfsqT3eP1"
@@ -21,7 +24,7 @@ if (!file.exists(
21
24
has_file(" EU_rapportage_habitats.Rproj" )))
22
25
}
23
26
# download all files in the local folder
24
- for (i in seq_along( files $ name )) {
27
+ for (i in which(str_detect( files $ name , " .docx " ) )) {
25
28
drive_download(
26
29
as_id(files $ id [i ]),
27
30
path =
You can’t perform that action at this time.
0 commit comments