Skip to content

Commit

Permalink
added formats: pdf, docx, md
Browse files Browse the repository at this point in the history
  • Loading branch information
bbest committed Aug 1, 2014
1 parent 4c33f8a commit 437e9f1
Show file tree
Hide file tree
Showing 6 changed files with 72 additions and 7 deletions.
18 changes: 13 additions & 5 deletions rmarkdown_example/test.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,18 @@ author: "Ben Best"
date: "August 1, 2014"
output:
html_document:
toc: true
number_sections: true
bibliography: test.bib
fig_caption: yes
keep_md: yes
number_sections: yes
toc: yes
pdf_document:
fig_caption: yes
number_sections: yes
toc: yes
word_document:
fig_caption: yes
csl: apa.csl
bibliography: test.bib
---

## Introduction {-}
Expand Down Expand Up @@ -42,11 +50,11 @@ summary(cars)

You can also embed plots, for example:

```{r, echo=FALSE}
```{r, echo=FALSE, fig.cap='Scatterplot of cars.'}
plot(cars)
```

Note that the `echo = FALSE` parameter was added to the code chunk to prevent printing of the R code that generated the plot.

## References {-}
\
<!-- placeholder for References in toc --!>
Binary file added rmarkdown_example/test.docx
Binary file not shown.
8 changes: 6 additions & 2 deletions rmarkdown_example/test.html

Large diffs are not rendered by default.

53 changes: 53 additions & 0 deletions rmarkdown_example/test.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
# Trying Rmarkdown
Ben Best
August 1, 2014

## Introduction {-}

The Ocean Health Index [@halpern_index_2012; @selig_assessing_2013] derives most of its pressures from Halpern et al. [-@halpern_global_2008].

## Food Provision: Fisheries

Amount of sustainable wild-caught seafood compared to the max sustainable

$$
x_{FIS} = (\prod_{g=1}^{6} SS_{i,g}^{C_{i,g}})^\frac{1}{\sum{C_{i,g}}}
$$

Variables:

- $SS$: stock status score, based on B/Bmsy and an underharvest penalty adjustment
- $C$: total catch
- $i$: OHI reporting region
- $g$: level of taxonomic grouping (ISSCAAP)</small>


## Default Rmarkdown

This is an R Markdown document. Markdown is a simple formatting syntax for authoring HTML, PDF, and MS Word documents. For more details on using R Markdown see <http://rmarkdown.rstudio.com>.

When you click the **Knit** button a document will be generated that includes both content as well as the output of any embedded R code chunks within the document. You can embed an R code chunk like this:


```r
summary(cars)
```

```
## speed dist
## Min. : 4.0 Min. : 2
## 1st Qu.:12.0 1st Qu.: 26
## Median :15.0 Median : 36
## Mean :15.4 Mean : 43
## 3rd Qu.:19.0 3rd Qu.: 56
## Max. :25.0 Max. :120
```

You can also embed plots, for example:

![Scatterplot of cars.](./test_files/figure-html/unnamed-chunk-2.png)

Note that the `echo = FALSE` parameter was added to the code chunk to prevent printing of the R code that generated the plot.

## References {-}
<!-- placeholder for References in toc --!>
Binary file added rmarkdown_example/test.pdf
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 437e9f1

Please sign in to comment.