smbache / loggr

Easy and flexible logging for R
Other
79 stars 6 forks source link

body function gives warning if body(NULL) is called #30

Closed krose closed 7 years ago

krose commented 7 years ago

Since R 3.4.x body returns a warning if fun == NULL and causes loggr to print warnings. I've made a simple helper function that tests if the input is NULL and drops the evaluation of the body function if the test is true.