Skip to content

Commit 3561ebf

Browse files
committed
cosmetic changes after #199
1 parent 6c5d802 commit 3561ebf

3 files changed

Lines changed: 20 additions & 32 deletions

File tree

DESCRIPTION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
Package: rticles
22
Type: Package
33
Title: Article Formats for R Markdown
4-
Version: 0.6.3
4+
Version: 0.6.4
55
Authors@R: c(
66
person("JJ", "Allaire", role = "aut", email = "jj@rstudio.com"),
77
person("Yihui", "Xie", role = c("aut", "cre"), email = "xie@yihui.name", comment = c(ORCID = "0000-0003-0645-5666")),

R/agu_article.R

Lines changed: 14 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,30 +1,22 @@
11
#' American Geophysical Union (AGU) format
22
#'
3-
#' Format for creating a American Geophysical Union (AGU) article.
4-
#' Adapted from
5-
#' \href{https://publications.agu.org/author-resource-center/checklists-and-templates/}{https://publications.agu.org/author-resource-center/checklists-and-templates/}.
6-
#'
3+
#' Format for creating a American Geophysical Union (AGU) article. Adapted from
4+
#' \url{https://publications.agu.org/author-resource-center/checklists-and-templates/}.
75
#' @inheritParams rmarkdown::pdf_document
8-
#' @param ... Arguments to \code{rmarkdown::pdf_document}
9-
#'
10-
#' @return R Markdown output format to pass to \code{\link[rmarkdown:render]{render}}
11-
#'
6+
#' @param ... Arguments to \code{rmarkdown::pdf_document()}.
7+
#' @return An R Markdown output format.
128
#' @examples
13-
#'
149
#' \dontrun{
15-
#' library(rmarkdown)
16-
#' draft("MyArticle.Rmd", template = "agu_article", package = "rticles")
10+
#' rmarkdown::draft("MyArticle.Rmd", template = "agu_article", package = "rticles")
1711
#' }
18-
#'
1912
#' @export
20-
agu_article <- function(..., keep_tex = TRUE, citation_package = 'natbib',
21-
highlight = NULL, md_extensions = c("-autolink_bare_uris",
22-
"-auto_identifiers")) {
23-
template <- find_resource("agu_article", "template.tex")
24-
inherit_pdf_document(template = template,
25-
keep_tex = keep_tex,
26-
citation_package = citation_package,
27-
md_extensions = md_extensions,
28-
highlight = highlight,
29-
...)
13+
agu_article <- function(
14+
..., keep_tex = TRUE, citation_package = 'natbib',
15+
highlight = NULL, md_extensions = c("-autolink_bare_uris", "-auto_identifiers")
16+
) {
17+
inherit_pdf_document(
18+
template = find_resource("agu_article", "template.tex"), keep_tex = keep_tex,
19+
citation_package = citation_package, md_extensions = md_extensions,
20+
highlight = highlight, ...
21+
)
3022
}

man/agu_article.Rd

Lines changed: 5 additions & 9 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)