Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Suppressing warnings and messages in R code-cell #7

Open
stiatragul opened this issue Feb 3, 2021 · 1 comment
Open

Suppressing warnings and messages in R code-cell #7

stiatragul opened this issue Feb 3, 2021 · 1 comment

Comments

@stiatragul
Copy link
Collaborator

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

@mikheyev
Copy link
Member

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)
    ```

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants