I just discovered the awesome Xaringan
package, and I'd like my presentation to be as incremental as possible.
For instance, my introduction slide looks like this:
```{r intro1, echo=TRUE}
version$version.string #should give 3.6.1
```
--
```{r intro2, echo=TRUE}
class(iris)
```
--
```{r intro3, echo=TRUE}
dim(iris) #row, cols
```
--
```{r intro4, echo=TRUE}
colnames(iris)
```
Though, I find it tedious and not much readable to write it that way.
I tried this but it doesn't work:
```{r , echo=TRUE}
version$version.string
class(iris)
--
dim(iris)
colnames(iris)
```
Of course, this consider --
as code.
Is there a way to increment my slide from inside the code?