SBOHVM / RPiR

The Reproducible Programming in R course, developed by the School of Biodiversity, One Health and Veterinary Medicine at the University of Glasgow.
https://sbohvm.github.io/RPiR/
GNU General Public License v3.0
12 stars 2 forks source link

Add section on suppressing warnings #347

Closed soniamitchell closed 1 year ago

soniamitchell commented 3 years ago

Some of the students like to use suppressWarnings().

I've also seen suppressPackageStartupMessages() and library(dplyr, warn.conflicts = FALSE). Perhaps other variants.

I don't like suppressing warnings in the code like this (unexpected warnings would be invisible). I think they've learned some of this from the intro course. I might suggest teaching them how to hide warnings in rmarkdown (for reporting purposes).

richardreeve commented 3 years ago

I'm with you on this btw. I hate people suppressing warnings.

soniamitchell commented 3 years ago

One of the comments in the feedback was more integration with intro to R (where they’re taught to suppress warnings). I’d really like to coordinate somehow.

richardreeve commented 3 years ago

Yes, there has just been no time recently. Historically we used to coordinate, and several things that were in our course migrated to intro to R as a result...

soniamitchell commented 3 years ago

So we need to make time 👍 There were also bonus lectures for intro to R after RPiR finished.. maybe these can be included in the discussion.

richardreeve commented 1 year ago

Still need to talk to Intro to R, but now done.