maydin
maydin

Reputation: 3755

R markdown, hiding the library output

I am working on a rmarkdown presentation. I am trying to show the usage of cast function. However, since the reshape package is necessary, to run the cast function, I need to load reshape library as below.

{r package_options, echo=TRUE}
library(reshape)
cast(datam, isim~Ay, value="Sirano")

However, after knitting the codes, I face with the output ; enter image description here

I just need to see the name of the library on the screen which is library(reshape) , and also I want it to be used to run cast function, but I dont want to see the package outputs as shown in the picture.

Would someone help about that?

Upvotes: 23

Views: 21465

Answers (1)

Rhesous
Rhesous

Reputation: 994

If you want to hide all these messages you have to put :

```{r,warning=FALSE,message=FALSE}
library(reshape)
```

Upvotes: 33

Related Questions