forked from statOmics/PDA23EBI
-
Notifications
You must be signed in to change notification settings - Fork 1
/
example.Rmd
54 lines (39 loc) · 1.58 KB
/
example.Rmd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
---
title: "Example"
author: Milan Malfait, Ghent University
date: '`r format(Sys.Date(), "%B %d, %Y")`'
output:
pdf_document:
toc: false
number_sections: true
---
```{r setup, include=FALSE, cache=FALSE}
knitr::opts_chunk$set(echo = TRUE)
```
# R Markdown
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 cars}
summary(cars)
```
# Including Plots
You can also embed plots, for example:
```{r pressure, echo=FALSE}
library(ggplot2)
ggplot(mtcars, aes(mpg, disp, col = as.factor(cyl))) +
geom_point()
```
Note that the `echo = FALSE` parameter was added to the code chunk to prevent printing of the R code that generated the plot.
# Caching
The GHA workflow maintains cached *knitr* results between subsequent runs to
reduce runtime. Caching can be enabled by specifying `cache=TRUE` in the code
chunk header.
__Note that this should be used with caution, as caches may become invalid when code is changed, potentially leading to unsuspected results.__
```{r, cache=TRUE}
## Run with caching enabled
Sys.time()
```
<!-- Include common Session Information Rmd fragment by including the following code chunk: -->
<!-- See https://bookdown.org/yihui/rmarkdown/rmarkdown-site.html#rmd-partials -->
```{r, child="_session-info.Rmd"}
```