forked from remindmodel/remind
-
Notifications
You must be signed in to change notification settings - Fork 1
/
ignoreFiles.R
31 lines (28 loc) · 1 KB
/
ignoreFiles.R
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
# | (C) 2006-2024 Potsdam Institute for Climate Impact Research (PIK)
# | authors, and contributors see CITATION.cff file. This file is part
# | of REMIND and licensed under AGPL-3.0-or-later. Under Section 7 of
# | AGPL-3.0, you are granted additional permissions described in the
# | REMIND License Exception, version 1.0 (see LICENSE file).
# | Contact: [email protected]
files_path = list.files(".",recursive = T,pattern = "files$")
paths_input = NULL
for (.file in files_path){
content_file = readLines(.file)
.path_file = gsub("/files$","",.file)
.paths_input = paste0(.path_file,"/",content_file)
paths_input = c(paths_input, .paths_input)
}
#Git ignore
write(x = c(".*.un~",
".*.swp",
"input/",
"output/*",
"main.lst",
"doc/doc.rds",
"doc/documentation.*",
"doc/goxygen_pdflatex.log",
"doc/html/",
"doc/markdown/",
"Rplots.pdf",
paths_input),
".gitignore")