Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add a Bioinformatics template #83

Closed
wants to merge 7 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions NAMESPACE
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

export(acm_article)
export(acs_article)
export(bioinformatics_article)
export(ctex)
export(ctex_template)
export(elsevier_article)
Expand Down
23 changes: 23 additions & 0 deletions R/bioinformatics_article.R
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
#' Bioinformatics journal format.
#'
#' Format for creating submissions to Bioinformatics journals.
#'
#' @inheritParams rmarkdown::pdf_document
#' @param ... Additional arguments to \code{rmarkdown::pdf_document}
#'
#' @return R Markdown output format to pass to
#' \code{\link[rmarkdown:render]{render}}
#'
#' @examples
#'
#' \dontrun{
#' library(rmarkdown)
#' draft("MyArticle.Rmd", template = "bioinformatics_article", package = "rticles")
#' }
#'
#' @export
bioinformatics_article <- function(..., keep_tex = TRUE) {
inherit_pdf_document(...,
keep_tex = keep_tex,
template = find_resource("bioinformatics_article", "template.tex"))
}
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,8 @@ The **rticles** package provides a suite of custom [R Markdown](http://rmarkdown

- [Elsevier](https://www.elsevier.com) journal submissions

- [Bioinformatics](http://bioinformatics.oxfordjournals.org/) articles

Under the hood, LaTeX templates are used to ensure that documents conform precisely to submission standards. At the same time, composition and formatting can be done using lightweight [markdown](http://rmarkdown.rstudio.com/authoring_basics.html) syntax, and R code and its output can be seamlessly included using [knitr](http://yihui.name/knitr/).

Using **rticles** has some prerequisites which are described below. You can get most of these pre-requisites automatically by installing the latest release of RStudio (instructions for using **rticles** without RStudio are also provided).
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
*.tex
*.pdf
*.aux
*.synctex.gz
*.log
*.pdf
*.blg
Loading