insightsengineering / tern

Table, Listings, and Graphs (TLG) library for common outputs used in clinical trials
https://insightsengineering.github.io/tern/
Other
77 stars 22 forks source link

Too many warnings in examples #1178

Closed pawelru closed 10 months ago

pawelru commented 10 months ago

I am checking our packages against warnings in examples and this package has too many of them. While warnings in general are not necessarily wrong it gives some bad experience when occured in examples. These should be small, simple and clean(!).

I do understand that sometimes this is intended / unavoidable but have a look at this and amend the example code to avoid it if possible.

At the moment of creating this issue a following list of files returns a warning but please check all again when doing this task.

Code that I use to identify those:

withr::with_options(
  list(warn = 2),
  devtools::run_examples(run_donttest = TRUE, run_dontrun = FALSE)
)