Skip to content

Commit 40002b6

Browse files
committed
Handle DOI and corner case for VGAM
1 parent d9021af commit 40002b6

File tree

4 files changed

+33
-26
lines changed

4 files changed

+33
-26
lines changed

R/cff_parse_citation.R

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,8 @@ cff_parse_citation <- function(bib) {
100100

101101
# Parse BibTeX fields ----
102102
parsed_fields <- parse_bibtex_fields(parse_cit)
103+
# VGAM: title is a vector
104+
parsed_fields$title <- clean_str(parsed_fields$title)
103105

104106
## Handle collection types ----
105107
parsed_fields <- add_bibtex_coltype(parsed_fields)

R/utils-read-description.R

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,9 @@ parse_desc_abstract <- function(pkg) {
88
abstract <- clean_str(abstract)
99
abstract <- unname(abstract)
1010

11+
# Convert doi to url
12+
abstract <- gsub("<doi:", "<https://doi.org/", abstract, fixed = TRUE)
13+
1114
abstract
1215
}
1316

tests/testthat/_snaps/encoding.md

Lines changed: 14 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -17,23 +17,24 @@
1717
diseases, but applications could just as well originate from environmetrics, reliability
1818
engineering, econometrics, or social sciences. The package implements many typical
1919
outbreak detection procedures such as the (improved) Farrington algorithm, or the
20-
negative binomial GLR-CUSUM method of Höhle and Paul (2008) <doi:10.1016/j.csda.2008.02.015>.
20+
negative binomial GLR-CUSUM method of Höhle and Paul (2008) <https://doi.org/10.1016/j.csda.2008.02.015>.
2121
A novel CUSUM approach combining logistic and multinomial logistic modeling is also
2222
included. The package contains several real-world data sets, the ability to simulate
2323
outbreak data, and to visualize the results of the monitoring in a temporal, spatial
2424
or spatio-temporal fashion. A recent overview of the available monitoring procedures
25-
is given by Salmon et al. (2016) <doi:10.18637/jss.v070.i10>. For the retrospective
26-
analysis of epidemic spread, the package provides three endemic-epidemic modeling
27-
frameworks with tools for visualization, likelihood inference, and simulation. hhh4()
28-
estimates models for (multivariate) count time series following Paul and Held (2011)
29-
<doi:10.1002/sim.4177> and Meyer and Held (2014) <doi:10.1214/14-AOAS743>. twinSIR()
30-
models the susceptible-infectious-recovered (SIR) event history of a fixed population,
31-
e.g, epidemics across farms or networks, as a multivariate point process as proposed
32-
by Höhle (2009) <doi:10.1002/bimj.200900050>. twinstim() estimates self-exciting
33-
point process models for a spatio-temporal point pattern of infective events, e.g.,
34-
time-stamped geo-referenced surveillance data, as proposed by Meyer et al. (2012)
35-
<doi:10.1111/j.1541-0420.2011.01684.x>. A recent overview of the implemented space-time
36-
modeling frameworks for epidemic phenomena is given by Meyer et al. (2017) <doi:10.18637/jss.v077.i11>.
25+
is given by Salmon et al. (2016) <https://doi.org/10.18637/jss.v070.i10>. For the
26+
retrospective analysis of epidemic spread, the package provides three endemic-epidemic
27+
modeling frameworks with tools for visualization, likelihood inference, and simulation.
28+
hhh4() estimates models for (multivariate) count time series following Paul and
29+
Held (2011) <https://doi.org/10.1002/sim.4177> and Meyer and Held (2014) <https://doi.org/10.1214/14-AOAS743>.
30+
twinSIR() models the susceptible-infectious-recovered (SIR) event history of a fixed
31+
population, e.g, epidemics across farms or networks, as a multivariate point process
32+
as proposed by Höhle (2009) <https://doi.org/10.1002/bimj.200900050>. twinstim()
33+
estimates self-exciting point process models for a spatio-temporal point pattern
34+
of infective events, e.g., time-stamped geo-referenced surveillance data, as proposed
35+
by Meyer et al. (2012) <https://doi.org/10.1111/j.1541-0420.2011.01684.x>. A recent
36+
overview of the implemented space-time modeling frameworks for epidemic phenomena
37+
is given by Meyer et al. (2017) <https://doi.org/10.18637/jss.v077.i11>.
3738
authors:
3839
- family-names: Höhle
3940
given-names: Michael

tests/testthat/_snaps/merge_desc_cit.md

Lines changed: 14 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -806,23 +806,24 @@
806806
diseases, but applications could just as well originate from environmetrics, reliability
807807
engineering, econometrics, or social sciences. The package implements many typical
808808
outbreak detection procedures such as the (improved) Farrington algorithm, or the
809-
negative binomial GLR-CUSUM method of Höhle and Paul (2008) <doi:10.1016/j.csda.2008.02.015>.
809+
negative binomial GLR-CUSUM method of Höhle and Paul (2008) <https://doi.org/10.1016/j.csda.2008.02.015>.
810810
A novel CUSUM approach combining logistic and multinomial logistic modeling is also
811811
included. The package contains several real-world data sets, the ability to simulate
812812
outbreak data, and to visualize the results of the monitoring in a temporal, spatial
813813
or spatio-temporal fashion. A recent overview of the available monitoring procedures
814-
is given by Salmon et al. (2016) <doi:10.18637/jss.v070.i10>. For the retrospective
815-
analysis of epidemic spread, the package provides three endemic-epidemic modeling
816-
frameworks with tools for visualization, likelihood inference, and simulation. hhh4()
817-
estimates models for (multivariate) count time series following Paul and Held (2011)
818-
<doi:10.1002/sim.4177> and Meyer and Held (2014) <doi:10.1214/14-AOAS743>. twinSIR()
819-
models the susceptible-infectious-recovered (SIR) event history of a fixed population,
820-
e.g, epidemics across farms or networks, as a multivariate point process as proposed
821-
by Höhle (2009) <doi:10.1002/bimj.200900050>. twinstim() estimates self-exciting
822-
point process models for a spatio-temporal point pattern of infective events, e.g.,
823-
time-stamped geo-referenced surveillance data, as proposed by Meyer et al. (2012)
824-
<doi:10.1111/j.1541-0420.2011.01684.x>. A recent overview of the implemented space-time
825-
modeling frameworks for epidemic phenomena is given by Meyer et al. (2017) <doi:10.18637/jss.v077.i11>.
814+
is given by Salmon et al. (2016) <https://doi.org/10.18637/jss.v070.i10>. For the
815+
retrospective analysis of epidemic spread, the package provides three endemic-epidemic
816+
modeling frameworks with tools for visualization, likelihood inference, and simulation.
817+
hhh4() estimates models for (multivariate) count time series following Paul and
818+
Held (2011) <https://doi.org/10.1002/sim.4177> and Meyer and Held (2014) <https://doi.org/10.1214/14-AOAS743>.
819+
twinSIR() models the susceptible-infectious-recovered (SIR) event history of a fixed
820+
population, e.g, epidemics across farms or networks, as a multivariate point process
821+
as proposed by Höhle (2009) <https://doi.org/10.1002/bimj.200900050>. twinstim()
822+
estimates self-exciting point process models for a spatio-temporal point pattern
823+
of infective events, e.g., time-stamped geo-referenced surveillance data, as proposed
824+
by Meyer et al. (2012) <https://doi.org/10.1111/j.1541-0420.2011.01684.x>. A recent
825+
overview of the implemented space-time modeling frameworks for epidemic phenomena
826+
is given by Meyer et al. (2017) <https://doi.org/10.18637/jss.v077.i11>.
826827
repository: https://CRAN.R-project.org/package=surveillance
827828
url: https://surveillance.R-Forge.R-project.org/
828829
date-released: '2021-03-30'

0 commit comments

Comments
 (0)