stevecondylios / priceR

Economics and Pricing in R
https://stevecondylios.github.io/priceR/
Other
59 stars 7 forks source link

FIx issues resulting from digits = 0 in format AKA prettyNum() #28

Closed stevecondylios closed 3 years ago

stevecondylios commented 3 years ago

Errors displayed at: https://cran.r-project.org/web/checks/check_results_priceR.html

Specifically, please see the problems for the Linux-based checks for r-devel.

These are from:

      \item Setting \code{digits = 0} in \code{format()},
      \code{print.default()} (and hence typically \code{print()}) or
      \code{options()} is again invalid.  Its behaviour was
      platform-dependent, and it is unclear what \dQuote{zero
        significant digits} should mean (\PR{18098}).

See also: https://stackoverflow.com/questions/67681116/error-in-prettynum-internalformatx-trim-digits-nsmall-width-3l-invali?noredirect=1