-
Notifications
You must be signed in to change notification settings - Fork 0
/
MyReport.Rmd
29 lines (23 loc) · 991 Bytes
/
MyReport.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
---
title: "Report for `r data_individual[1]` `r data_individual[2]`" #this will print the title with each individual's name
# author: "Nova SBE"
date: "`r Sys.Date()`" #this code gets the system date
output: pdf_document #set output to pdf file
fontsize: 10pt #set the font size
classoption: a4paper #set paper tipe
---
```{r setup, include=FALSE}
knitr::opts_chunk$set(echo = TRUE)
```
## This is an example of a dinamic report
\
The first name is: `r data_individual[1]` \
The last name is: `r data_individual[2]`\
\
This lets you print: *`r data_individual[3]`*
The square root of **`r data_individual[4]`** is `r format(data_individual[5], ,digits = 5, nsmall = 5)`.
You can also pass on pre-formatted rmarkdown text, like we are doing here with this bullet point:
```{r, echo=FALSE, results='asis'}
cat(as.character(data_individual[6]))
```
<!-- the asis will output the text excatly as it is, so that you get the formatting, it doesn't work with latex code -->