You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: R/cite.R
+19-1Lines changed: 19 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -75,7 +75,7 @@ spod_cite <- function(
75
75
# 6.1. Human‐readable labels for each “what”
76
76
citation_labels<-list(
77
77
package="To cite the spanishoddata package",
78
-
data="To site the Ministry's mobility study website",
78
+
data="To cite the Ministry's mobility study website",
79
79
methodology_v1="To cite the methodology for 2020-2021 data",
80
80
methodology_v2="To cite the methodology for 2022 and onwards data"
81
81
)
@@ -127,20 +127,38 @@ spod_cite <- function(
127
127
cit_item<-citations_to_show[[w]]
128
128
cat(paste0(citation_labels[[w]], ":\n"))
129
129
cat(format_text(cit_item), "\n\n")
130
+
# note for methodology_v2
131
+
if (w=="methodology_v2") {
132
+
cat(
133
+
"Note: A more up-to-date methodology document may be available at https://www.transportes.gob.es/ministerio/proyectos-singulares/estudios-de-movilidad-con-big-data/metodologia-del-estudio-de-movilidad-con-bigdata\n\n"
"> **Note:** A more up-to-date methodology document may be available at https://www.transportes.gob.es/ministerio/proyectos-singulares/estudios-de-movilidad-con-big-data/metodologia-del-estudio-de-movilidad-con-bigdata\n\n"
147
+
)
148
+
}
137
149
}
138
150
} elseif (f=="bibtex") {
139
151
cat("\nBibTeX citations:\n-----------------\n")
140
152
for (win names(citations_to_show)) {
141
153
cat(paste0("%% ", citation_labels[[w]], "\n"))
142
154
print(utils::toBibtex(citations_to_show[[w]]))
143
155
cat("\n")
156
+
# note for methodology_v2
157
+
if (w=="methodology_v2") {
158
+
cat(
159
+
"%% Note: A more up-to-date methodology document may be available at https://www.transportes.gob.es/ministerio/proyectos-singulares/estudios-de-movilidad-con-big-data/metodologia-del-estudio-de-movilidad-con-bigdata\n\n"
0 commit comments