How can I suppress this conclusion?

I have a piece of code in an R Markdown file.

```{r} library(UsingR) ``` 

Using knitHTML to compile produces the following output, which never happened before I upgraded to the latest versions of R and RStudio:

 ## Loading required package: MASS ## Loading required package: HistData ## Loading required package: Hmisc ## Loading required package: grid ## Loading required package: lattice ## Loading required package: survival ## Loading required package: splines ## Loading required package: Formula ## ## Attaching package: 'Hmisc' ## ## The following objects are masked from 'package:base': ## ## format.pval, round.POSIXt, trunc.POSIXt, units ## ## Loading required package: aplpack ## Loading required package: tcltk ## Loading required package: quantreg ## Loading required package: SparseM ## ## Attaching package: 'SparseM' ## ## The following object is masked from 'package:base': ## ## backsolve ## ## ## Attaching package: 'quantreg' ## ## The following object is masked from 'package:Hmisc': ## ## latex ## ## The following object is masked from 'package:survival': ## ## untangle.specials ## ## ## Attaching package: 'UsingR' ## ## The following object is masked from 'package:survival': ## ## cancer 

How can I suppress this conclusion? Note: echo = FALSE does not work.

+5
source share
1 answer

Setting message=FALSE in your code block should work.

 ```{r, message=FALSE} library(UsingR) ``` 

Setting echo=FALSE should not have worked - this is by design. The echo parameter in the code block controls the display of the code inside the fragment (i.e. library(UsingR) ).

Messages (as shown) are processed separately through the message parameter.

Errors are handled using the error parameter (i.e. error=FALSE suppresses error messages).

Results are processed using the results parameter (i.e. results=FALSE will suppress the results of the code fragment).

Warnings are processed using the warning parameter (i.e. warning=FALSE will suppress warnings generated by the code block), since warnings are different from errors.

There are many other code parameters, but these are the main parameters that control the text output generated by this code block.

+6
source

Source: https://habr.com/ru/post/1200997/


All Articles