Commit graph

4 commits

Author SHA1 Message Date
mef
a7a7fe0608 (math/R-prettyunits) Updated 1.0.2 to 1.1.1
# 1.1.1

* Fix spurious zero fractions in `pretty_bytes()` when formatting
  vectors of sizes (#23).

# 1.1.0

* `pretty_dt()`, `pretty_ms()` and `pretty_sec()` now handle `NA` values
  properly, and return `NA_character_` for them (#10, @petermeissner).

* `pretty_bytes()` now formats quantities just below the units better.
  E.g. 1MB - 1B is formatted as `"1 MB"` instead of `""1000 kB"` (#18).

* `pretty_bytes()` now has multiple styles. In particular, a fixed width
  style is useful for progress bars. Another style avoids the left-padding
  with spaces.

* The new low level `compute_bytes()` function can be used to create
  custom formatters for bytes.
2021-06-05 06:11:08 +00:00
brook
93e94bec97 Update all R packages to canonical form.
The canonical form [1] of an R package Makefile includes the
following:

- The first stanza includes R_PKGNAME, R_PKGVER, PKGREVISION (as
  needed), and CATEGORIES.

- HOMEPAGE is not present but defined in math/R/Makefile.extension to
  refer to the CRAN web page describing the package.  Other relevant
  web pages are often linked from there via the URL field.

This updates all current R packages to this form, which will make
regular updates _much_ easier, especially using pkgtools/R2pkg.

[1] http://mail-index.netbsd.org/tech-pkg/2019/08/02/msg021711.html
2019-08-08 19:53:36 +00:00
brook
5e8478c09a R-prettyunits: update to canonical form of an R package. 2019-07-31 20:17:48 +00:00
minskim
47521bd71e math/R-prettyunits: Import version 1.0.2
Pretty, human readable formatting of quantities. Time intervals:
1337000 -> 15d 11h 23m 20s. Vague time intervals: 2674000 -> about a
month ago. Bytes: 1337 -> 1.34 kB.
2018-04-13 15:26:31 +00:00