0

I'm trying to create a presentation in R Notebook with ioslides...when I load libraries at the beginning of my code, they appear in the background of the slides. How can I prevent this from occurring? My slides appear as normal, but in the background is the library name and some additional R Console output...

---
title: 'sample preso'
output: ioslides_presentation
---

```{r libraries}
library(fpp2)
```
jared_mamrot
  • 22,354
  • 4
  • 21
  • 46
emh
  • 1
  • 1
  • I haven't used ioslides in a while, but it seems like you're putting code into what's intended to be the title slide. Once you break it up with headers into multiple slides, the layout changes. Have you read the docs? https://bookdown.org/yihui/rmarkdown/ioslides-presentation.html – camille May 16 '21 at 22:46

1 Answers1

0

We can specify the echo as FALSE

```{r libraries, echo = FALSE}
library(fpp2)
```
akrun
  • 874,273
  • 37
  • 540
  • 662
  • 2
    I often use `{r libraries, message=FALSE, warning=FALSE, comment=FALSE, results=FALSE}` in my .Rmd files (rather than `echo = FALSE`), so that might be worth a try if `echo = FALSE` doesn't fix the problem. – jared_mamrot May 16 '21 at 03:45