A drposter template for the rosr project"

# Markdown Syntax
# - FORMAT  : *italic*, **bold**, `code`, ~subscript~, ^superscript^, > quote, ^[footnote] # - [](hyperlink)
# - EQUATION: $inline equation$, $$display equation$$, \begin{equation} (\#eq:eq-label)\end(equation), \@ref(eq:eq-label)
# - CITATION: [@bib-entry1; @bib-entry2]
# - FIGURE  : ![](image link), knitr::include_graphics(), \@ref(fig:fig1)
# - TABLE   : knitr::kable(), \@ref(tab:tab1)
oldwd <- getwd()
knitr::opts_chunk$set(echo = FALSE, warning = FALSE, message = FALSE) 
knitr::opts_knit$set(root.dir = dirname(dirname(oldwd)))
require('rosr')

{.col-2}

Introduction

This template comes from the R 'drposter' package and modified by Peng Zhao. It intends to show how to cross refer other files in a 'rosr' project, rather than to show how to use the original template.

Set up

Firstly, we switch off the codes and message display, and set the working directory to the rosr project.

oldwd <- getwd()
knitr::opts_chunk$set(echo = FALSE, 
                      message = FALSE, 
                      warning = FALSE, 
                      signif = 3)
knitr::opts_knit$set(root.dir = 
                       dirname(dirname(oldwd)))

Load data

Now we can use the relative path. Let's sync the bib file and run an R script.

source('R/rosr.R')

Results and Discussions

Numbers

As we just ran the source() command, we can use the results from the R/rosr.R. For example, the mean temperature is r temperature degree.

Tables

aq$Month <- as.factor(aq$Month)
DT::datatable(
  aq, 
  fillContainer = FALSE, options = list(pageLength = 4)
)

Equations

Use the rosr::eq() function to insert an equation. See Eq. \@ref(eq:sd)

eqs <- 'equation/rosr-eq.Rmd'
eq(eqs, label = 'sd')

{.col-2}

Plot

plot(aq)

Insert an image

fig('rosr_R.png')

{.col-2}

Contact {style="--header-color:darkred; --other-color-for-h2-gradient:red;"}

✉ pzhao\@pzhao.net.

{.col-2}

Acknowledgements

Many thanks to Ben Bucior for developing drposter.



Try the rosr package in your browser

Any scripts or data that you put into this service are public.

rosr documentation built on July 2, 2020, 2:28 a.m.