dcomtois / summarytools

R Package to Quickly and Neatly Summarize Data
523 stars 78 forks source link

fix: invalid value 0 for 'digits' argument #164

Closed mcanouil closed 2 years ago

mcanouil commented 2 years ago

Since R 4.2.0, digits arguments of format() is constrained to be higher or equal to 1. nsmallset to zero should be enough to get the requested "integer" format.

This PR, ensures digits is at least 1 in print_ctable().

fixes #163

mcanouil commented 2 years ago

Any news?

dcomtois commented 2 years ago

Sorry for the delay. Merged. Many thanks.