Reputation: 23
Im new to R and R markdown, Im trying to run R Markdown code from a teamproject, but it doesnt run probably and I have problems understanding the errors.
title: "R"
Error in -title : invalid argument to unary operator
> output:
+ flexdashboard::flex_dashboard:
+ orientation: columns
Error: object 'output' not found
> vertical_layout: fill
Error: object 'vertical_layout' not found
{r setup, include=FALSE}
Error: attempt to use zero-length variable name
library(flexdashboard)
library(rmarkdown)
library(knitr)
library(readxl)
Error: attempt to use zero-length variable name
{data-width=100}
Error in data - width = 100 : could not find function "-<-"
Upvotes: 0
Views: 1661
Reputation: 41260
The YAML
header should be contained between ---
, the R
code in chuncks starting and endding with ```
, see.
Try to knit following .Rmd
file :
---
title: "R"
output:
flexdashboard::flex_dashboard:
orientation: columns
vertical_layout: fill
---
```{r setup, include=FALSE}
library(flexdashboard)
library(rmarkdown)
library(knitr)
library(readxl)
```
Your text here
Upvotes: 3