dcomtois / summarytools

R Package to Quickly and Neatly Summarize Data
502 stars 77 forks source link

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

Closed mcanouil closed 1 year 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 1 year ago

Sorry for the delay. Merged. Many thanks.