-
Notifications
You must be signed in to change notification settings - Fork 0
/
99_genera_html_web.R
129 lines (97 loc) · 3.65 KB
/
99_genera_html_web.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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
library(formularios11F)
library(rmarkdown)
# Configuración
config <- leer_config("config/configuracion.json")
ID_SHEET_SOLICITUDES_LIMPIO <- config$ids_googledrive$solicitudes$limpio
ID_SHEET_SOLICITUDES_RESTANTES <- config$ids_googledrive$solicitudes$restantes
ID_SHEET_CONCERTADAS_LIMPIO <- config$ids_googledrive$concertadas$limpio
ID_SHEET_ACTIVIDADES_LIMPIO <- config$ids_googledrive$actividades$limpio
ID_SHEET_ACTIVIDADES_WORDPRESS <- config$ids_googledrive$actividades$wordpress
ID_FORMULARIO_CONTACTO <- config$ids_googledrive$contactos$formulario
EDICION <- config$edicion
DIR_WEB <- file.path(dirname(rprojroot::find_rstudio_root_file()), "web11F")
#DIR_WEB <- file.path(dirname(rprojroot::find_rstudio_root_file()), "C:/Users/maria.garcia/OneDrive - NUNSYS/Mio/11F/Edición 2023/Git/Web11F")
DIR_WEB_LIBS <- file.path(DIR_WEB, "libs/")
#DIR_WEB_LIBS <- file.path(DIR_WEB, "C:/Users/maria.garcia/OneDrive - NUNSYS/Mio/11F/Edición 2023/Git/Web11F/web11F/libs/")
## Solicitudes charlas
rmarkdown::render(
encoding = "UTF-8",
input = "motordatos11F/templates/github/solicitudes_todas.Rmd",
params = list(
#id_sheet = ID_SHEET_SOLICITUDES_RESTANTES, OJO, CAMBIAR DESPUÉS
id_sheet = ID_SHEET_SOLICITUDES_LIMPIO,
id_form_contacto = ID_FORMULARIO_CONTACTO
),
output_file = "solicitudes_todas.html",
output_dir = DIR_WEB,
output_options = list(lib_dir = DIR_WEB_LIBS),
quiet = TRUE
)
Sys.sleep(5)
rmarkdown::render(
encoding = "UTF-8",
input = "motordatos11F/templates/github/solicitudes_mapa_tabla.Rmd",
#input = "C:/Users/maria.garcia/OneDrive - NUNSYS/Mio/11F/Edición 2023/Git/MotorDatos11F/motordatos11F/templates/github/solicitudes_mapa_tabla.Rmd",
params = list(
# id_sheet = ID_SHEET_SOLICITUDES_RESTANTES,
id_sheet = ID_SHEET_SOLICITUDES_LIMPIO,
id_form_contacto = ID_FORMULARIO_CONTACTO
),
output_file = "solicitudes_mapa_tabla.html",
output_dir = DIR_WEB,
output_options = list(lib_dir = DIR_WEB_LIBS),
quiet = TRUE
)
Sys.sleep(5)
## Charlas concertadas
rmarkdown::render(
encoding = "UTF-8",
input = "templates/github/concertadas_todas.Rmd",
params = list(id_sheet = ID_SHEET_CONCERTADAS_LIMPIO),
output_file = "concertadas_todas.html",
output_dir = DIR_WEB,
output_options = list(lib_dir = DIR_WEB_LIBS),
quiet = TRUE
)
Sys.sleep(5)
rmarkdown::render(
encoding = "UTF-8",
input = "templates/github/concertadas_mapa_tabla.Rmd",
params = list(id_sheet = ID_SHEET_CONCERTADAS_LIMPIO),
output_file = "concertadas_mapa_tabla.html",
output_dir = DIR_WEB,
output_options = list(lib_dir = DIR_WEB_LIBS),
quiet = TRUE
)
Sys.sleep(5)
## Actividades
rmarkdown::render(
encoding = "UTF-8",
input = "templates/github/centros11f_todos.Rmd",
params = list(id_sheet = ID_SHEET_ACTIVIDADES_LIMPIO),
output_file = "centros11f_todos.html",
output_dir = DIR_WEB,
output_options = list(lib_dir = DIR_WEB_LIBS),
quiet = TRUE
)
Sys.sleep(5)
rmarkdown::render(
encoding = "UTF-8",
input = "templates/github/centros11f_mapa_tabla.Rmd",
params = list(id_sheet = ID_SHEET_ACTIVIDADES_LIMPIO),
output_file = "centros11f_mapa_tabla.html",
output_dir = DIR_WEB,
output_options = list(lib_dir = DIR_WEB_LIBS),
quiet = TRUE
)
Sys.sleep(5)
rmarkdown::render(
encoding = "UTF-8",
input = "templates/github/actividades_mapa_tabla.Rmd",
params = list(id_sheet = ID_SHEET_ACTIVIDADES_WORDPRESS,
edicion = EDICION),
output_file = "actividades_mapa_tabla.html",
output_dir = DIR_WEB,
output_options = list(lib_dir = DIR_WEB_LIBS),
quiet = TRUE
)