Skip to content

Commit a225596

Browse files
committed
Updates as per cderv requests
1 parent 89a4cd4 commit a225596

File tree

9 files changed

+117
-218
lines changed

9 files changed

+117
-218
lines changed

NEWS.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
## NEW FEATURES
44

5-
- New `informs_article()` template for submissions to INFORMS journals.
5+
- New `informs_article()` template for submissions to INFORMS journals (thanks, @robjhyndman, #460).
66

77
# rticles 0.22
88

R/article.R

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -242,9 +242,12 @@ ims_article <- function(journal = c("aoas", "aap", "aop", "aos", "sts"),
242242
#' INFORMS journals. Adapted from \samp{https://pubsonline.informs.org/authorportal/latex-style-files}.
243243
#' @export
244244
#' @rdname article
245-
informs_article <- function(..., keep_tex = TRUE) {
245+
informs_article <- function(..., keep_tex = TRUE, citation_package = "natbib") {
246+
if (citation_package != "natbib") {
247+
stop("Informs template only supports `natbib` for citation processing.")
248+
}
246249
pdf_document_format(
247-
"informs", keep_tex = keep_tex, citation_package = "natbib", ...
250+
"informs", keep_tex = keep_tex, citation_package = citation_package, ...
248251
)
249252
}
250253

README.Rmd

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ Currently included templates and their contributors are the following:
6161
| [Glossa](https://www.glossa-journal.org) | [\@stefanocoretta](https://github.com/stefanocoretta) | [#361](https://github.com/rstudio/rticles/pull/361) | `glossa_article()` |
6262
| [IEEE Transaction](http://www.ieee.org/publications_standards/publications/authors/author_templates.html) | [\@Emaasit](https://github.com/Emaasit), [\@espinielli](https://github.com/espinielli), [\@nathanweeks](https://github.com/nathanweeks), [\@DunLug](https://github.com/DunLug) | [\#97](https://github.com/rstudio/rticles/pull/97), [\#169](https://github.com/rstudio/rticles/pull/169), [\#227](https://github.com/rstudio/rticles/pull/227), [\#263](https://github.com/rstudio/rticles/pull/263), [\#264](https://github.com/rstudio/rticles/pull/264), [\#265](https://github.com/rstudio/rticles/pull/265) | `ieee_article()` |
6363
| [IMS: Institute of Mathematical Statistics](https://imstat.org/) [AoAS: Annals of Applied Statistics](https://imstat.org/journals-and-publications/annals-of-applied-statistics/) | [\@auzaheta](https://github.com/auzaheta)| [\#372](https://github.com/rstudio/rticles/pull/372) | `ims_article()`|
64-
| [INFORMS: Institute for Operations Research and the Management Sciences](https://informs.org/) | [\@robjhyndman](https://github.com/robjhyndman)| []() | `informs_article()`|
64+
| [INFORMS: Institute for Operations Research and the Management Sciences](https://informs.org/) | [\@robjhyndman](https://github.com/robjhyndman)| [\#460](https://github.com/rstudio/rticles/pull/460) | `informs_article()`|
6565
| [JASA: Journal of the Acoustical Society of America](https://asa.scitation.org/journal/jas) | [\@stefanocoretta](https://github.com/stefanocoretta)| [\#364](https://github.com/rstudio/rticles/pull/364) | `jasa_article()` |
6666
| [Journal of Educational Data Mining](https://jedm.educationaldatamining.org/index.php/JEDM/about/submissions) journal submissions | [\@jooyoungseo](https://github.com/jooyoungseo) | [#251](https://github.com/rstudio/rticles/pull/251) | `jedm_article()` |
6767
| [JOSS: Journal of Open Source Software](https://joss.theoj.org/) [JOSE: Journal of Open Source Education](https://jose.theoj.org/)| [\@noamross](https://github.com/noamross)| [\#229](https://github.com/rstudio/rticles/pull/229) | `joss_article()` |

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ Currently included templates and their contributors are the following:
8787
| [Glossa](https://www.glossa-journal.org) | [@stefanocoretta](https://github.com/stefanocoretta) | [\#361](https://github.com/rstudio/rticles/pull/361) | `glossa_article()` |
8888
| [IEEE Transaction](http://www.ieee.org/publications_standards/publications/authors/author_templates.html) | [@Emaasit](https://github.com/Emaasit), [@espinielli](https://github.com/espinielli), [@nathanweeks](https://github.com/nathanweeks), [@DunLug](https://github.com/DunLug) | [\#97](https://github.com/rstudio/rticles/pull/97), [\#169](https://github.com/rstudio/rticles/pull/169), [\#227](https://github.com/rstudio/rticles/pull/227), [\#263](https://github.com/rstudio/rticles/pull/263), [\#264](https://github.com/rstudio/rticles/pull/264), [\#265](https://github.com/rstudio/rticles/pull/265) | `ieee_article()` |
8989
| [IMS: Institute of Mathematical Statistics](https://imstat.org/) [AoAS: Annals of Applied Statistics](https://imstat.org/journals-and-publications/annals-of-applied-statistics/) | [@auzaheta](https://github.com/auzaheta) | [\#372](https://github.com/rstudio/rticles/pull/372) | `ims_article()` |
90-
| [INFORMS: Institute for Operations Research and the Management Sciences](https://informs.org/) | [@robjhyndman](https://github.com/robjhyndman) | []() | `informs_article()` |
90+
| [INFORMS: Institute for Operations Research and the Management Sciences](https://informs.org/) | [@robjhyndman](https://github.com/robjhyndman) | [\#460](https://github.com/rstudio/rticles/pull/460) | `informs_article()` |
9191
| [JASA: Journal of the Acoustical Society of America](https://asa.scitation.org/journal/jas) | [@stefanocoretta](https://github.com/stefanocoretta) | [\#364](https://github.com/rstudio/rticles/pull/364) | `jasa_article()` |
9292
| [Journal of Educational Data Mining](https://jedm.educationaldatamining.org/index.php/JEDM/about/submissions) journal submissions | [@jooyoungseo](https://github.com/jooyoungseo) | [\#251](https://github.com/rstudio/rticles/pull/251) | `jedm_article()` |
9393
| [JOSS: Journal of Open Source Software](https://joss.theoj.org/) [JOSE: Journal of Open Source Education](https://jose.theoj.org/) | [@noamross](https://github.com/noamross) | [\#229](https://github.com/rstudio/rticles/pull/229) | `joss_article()` |

inst/rmarkdown/templates/informs/resources/template.tex

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -13,13 +13,6 @@
1313

1414
%% BEGIN MY ADDITIONS %%
1515
\usepackage{hyperref}
16-
% Pandoc toggle for numbering sections (defaults to be off)
17-
$if(numbersections)$
18-
\setcounter{secnumdepth}{$if(secnumdepth)$$secnumdepth$$else$5$endif$}
19-
$else$
20-
\setcounter{secnumdepth}{0}
21-
$endif$
22-
2316
$if(highlighting-macros)$
2417
% Pandoc syntax highlighting
2518
$highlighting-macros$
@@ -132,15 +125,22 @@
132125

133126
% Author's names for the running heads
134127
% Sample depending on the number of authors;
135-
% \RUNAUTHOR{Jones}
128+
\RUNAUTHOR{%
129+
$if(authors/allbutlast)$
130+
$for(authors/allbutlast)$$it.familyname$$sep$, $endfor$
131+
and $for(authors/last)$$it.familyname$$endfor$
132+
$else$
133+
${authors/last}
134+
$endif$
135+
}
136136
% \RUNAUTHOR{Jones and Wilson}
137137
% \RUNAUTHOR{Jones, Miller, and Wilson}
138138
% \RUNAUTHOR{Jones et al.} % for four or more authors
139139
% Enter authors following the given pattern:
140140
%\RUNAUTHOR{}
141141
142-
$if(short_title)$
143-
\RUNTITLE{$short_title$}
142+
$if(shorttitle)$
143+
\RUNTITLE{$shorttitle$}
144144
$else$
145145
\RUNTITLE{$title$}
146146
$endif$
@@ -149,7 +149,7 @@
149149
150150
\ARTICLEAUTHORS{%
151151
$for(authors)$
152-
\AUTHOR{$authors.name$}
152+
\AUTHOR{$authors.othernames$ $authors.familyname$}
153153
\AFF{$authors.affiliation$, \EMAIL{$authors.email$}}
154154
155155
$endfor$%
Lines changed: 15 additions & 72 deletions
Original file line numberDiff line numberDiff line change
@@ -1,76 +1,19 @@
11
@article{cleveland1990stl,
2-
title={{STL}: A seasonal-trend decomposition procedure based on loess},
3-
author={Cleveland, Robert B and Cleveland, William S and McRae, Jean E and Terpenning, Irma},
4-
journal={Journal of Official Statistics},
5-
volume={6},
6-
number={1},
7-
pages={3--73},
8-
year={1990}
2+
title = "{STL}: A seasonal-trend decomposition procedure based on loess",
3+
author = "Cleveland, Robert B and Cleveland, William S and McRae, Jean E and Terpenning, Irma",
4+
journal = "Journal of Official Statistics",
5+
volume = 6,
6+
number = 1,
7+
pages = {3--73},
8+
year = 1990
99
}
1010

11-
@article{makridakis2000m3,
12-
title={The {M3-Competition}: results, conclusions and implications},
13-
author={Makridakis, Spyros and Hibon, Michele},
14-
journal={International Journal of Forecasting},
15-
volume={16},
16-
number={4},
17-
pages={451--476},
18-
year={2000},
19-
publisher={Elsevier}
11+
@article{HK06,
12+
title = "Another look at measures of forecast accuracy",
13+
author = "Hyndman, Rob J and Koehler, Anne B",
14+
journal = "International Journal of Forecasting",
15+
volume = 22,
16+
number = 4,
17+
pages = "679--688",
18+
year = 2006,
2019
}
21-
22-
@ARTICLE{BC64,
23-
title = {An analysis of transformations},
24-
author = "Box, George E P and Cox, David R",
25-
journal = "Journal of the Royal Statistical Society. Series B",
26-
volume = 26,
27-
number = 2,
28-
pages = "211--252",
29-
year = 1964
30-
}
31-
32-
33-
@ARTICLE{HK06,
34-
title = {Another look at measures of forecast accuracy},
35-
author = "Hyndman, Rob J and Koehler, Anne B",
36-
abstract = "We discuss and compare measures of accuracy of univariate time
37-
series forecasts. The methods used in the M-competition as well
38-
as the M3-competition, and many of the measures recommended by
39-
previous authors on this topic, are found to be degenerate in
40-
commonly occurring situations. Instead, we propose that the mean
41-
absolute scaled error become the standard measure for comparing
42-
forecast accuracy across multiple time series.",
43-
journal = "International Journal of Forecasting",
44-
publisher = "Elsevier",
45-
volume = 22,
46-
number = 4,
47-
pages = "679--688",
48-
year = 2006,
49-
url = "http://dx.doi.org/10.1016/j.ijforecast.2006.03.001",
50-
keywords = "forecast accuracy; forecast error measures; forecast evaluation;
51-
m competition; m-competition; mean; mean absolute scaled error"
52-
}
53-
54-
@ARTICLE{HK08,
55-
title = "Automatic time series forecasting: the forecast package for {R}",
56-
author = "Hyndman, Rob J and Khandakar, Yeasmin",
57-
journal = "Journal of Statistical Software",
58-
publisher = "American Statistical Association",
59-
volume = 26,
60-
number = 3,
61-
pages = "1--22",
62-
year = 2008,
63-
url = "http://ideas.repec.org/a/jss/jstsof/27i03.html",
64-
keywords = "arima models; automatic forecasting; exponential smoothing;
65-
prediction inter-; r; state space models; time series; vals"
66-
}
67-
68-
@MANUAL{Rforecast,
69-
title = "forecast: Forecasting functions for time series and linear models",
70-
author = "Hyndman, Rob J",
71-
year = 2016,
72-
url = "cran.r-project.org/package=forecast",
73-
annote = "R package version 7.1"
74-
}
75-
76-

0 commit comments

Comments
 (0)