MikheyevLab / ecology-textbook

Other
0 stars 1 forks source link

Suppressing warnings and messages in R code-cell #7

Open stiatragul opened 3 years ago

stiatragul commented 3 years ago

Would like to suppress messages and warnings when rendering ggplots among other things.

mikheyev commented 3 years ago

I don't belive there is a native jupyter book way to do this. One can do this using R, suppressWarnings(expr).

Alternatively, you can add this at the top of the page

    ```{code-cell} r
    :tags: ["remove-cell"]
    options(warn=-1)