inbo/inborutils

Add examples to documentation of all functions

Closed this issue · 4 comments

As I see efforts are taken to make this repository as documented as possible (#33), I suggest to add examples in Roxygen documentation to as many functions as possible. Personally I use examples in documentation a lot, so I find them a nice-to-have section. We did it for the last function, csv_to_sqlite(). Why not doing it gradually for all the other ones? What do you think about? Obviously I can help.

Good idea. Try to make tiny examples that take only a split second to run, as all examples are run during R CMD Check. If the examples really need some time, then wrap them in a \dontrun{}. In that case R CMD Check will ignore them.

Thanks @ThierryO for your tips. I will do it via branch and PR.

Something to discuss with @inbo/bmk