pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/devel/R-cli (devel/R-cli) Updated 2.5.0 to 3.2.0



details:   https://anonhg.NetBSD.org/pkgsrc/rev/3ba8b270f6d9
branches:  trunk
changeset: 377273:3ba8b270f6d9
user:      mef <mef%pkgsrc.org@localhost>
date:      Mon Apr 18 14:36:00 2022 +0000

description:
(devel/R-cli) Updated 2.5.0 to 3.2.0

# cli 3.2.0

## Breaking change

* The `cli_theme_dark` option is know known as `cli.theme_dark`, to be
  consistent with all other cli option names (#380).

## Other changes

* The preferred names of the S3 clases `ansi_string`, `ansi_style`, `boxx`,
  `rule` and `tree` now have `cli_` prefix: `cli_ansi_string`, etc. This will
  help avoiding name conflicts with other packages eventually, but for now
  the old names are kept as well, for compatibility.

* `cli_abort()` has been updated to work nicely with rlang 1.0. The
  default `call` and backtrace soft-truncation are set to `.envir`
  (which itself is set to the immediate caller of `cli_abort()` by
  default).

  Line formatting now happens lazily at display time via
  `rlang::cnd_message()` (which is called by the `conditionMessage()`
  method for rlang errors).

* New `hash_sha256()` function to calculate SHA-256 hashes. New
  `hash_raw_*()`, `hash_obj_*()` and `hash_file_*()` functions to calculate
  various hashes of raw vectors, R objects and files.

* You can use the new `cli.default_num_colors` option to set the default
  number of ANSI colors, only if ANSI support is otherwise detected.
  See the details in the manual of `num_ansi_colors()`.

* You can set the new `ESS_BACKGROUND_MODE` environment variable to
  `dark` to indicate dark mode.

* cli now handles quotes and comment characters better in the semantion
  `cli_*()` functions that perform glue string interpolation (#370).

# cli 3.1.1

* `style_hyperlink()` gains a `params=` argument (#384).

# cli 3.1.0

## Breaking changes

* The C progress bar API now uses `double` instead of `int` as the data
  type of the progress units (#335).

## New features

* Several improvements and changes in the `ansi_*()` functions:
  - most `ansi_*()` functions are now implemented in C and they are
    much faster (#316).
  - they handle `NA` values better.
  - many functions now use UTF-8 graphemes by default instead of code
    points. E.g. `ansi_nchar()` counts graphemes, etc.
  - they convert their input to UTF-8 and always return UTF-8
    encoded strings.
  - new function `ansi_simplify()` to remove superfluous ANSI tags.
  - new function `ansi_html()` to convert ANSI-highlighted strings
    to HTML.
  - `ansi_has_any()` and `ansi_strip()` now have `sgr` and `csi`
    arguments to look for SGR tags, CSI tags, or both.

* New functions that handle UTF-8 encoded strings correctly:
  `utf8_graphemes()`, `utf8_nchar()`, `utf8_substr()`.

* Support for palettes, including a colorblind friendly palette.
  See `?ansi_palettes` for details.

* True color support: `num_ansi_colors()` now detects terminals with
  24 bit color support, and `make_ansi_style()` uses the exact RGB colors
  on these terminals (#208).

* The new `col_br_*()` and `bg_br_()` functions create bright versions of
  eight base ANSI colors (#327).

* New function `code_highlight()` to syntax highlight R code. It supports
  several themes out of the box, see `code_theme_list()` (#348).

* New functions for hashing: `hash_animal()`, `hash_emoji()` and
  `hash_md5()`.

* New `diff_chr()` and `diff_str()` functions to calculate the difference
  of character vectors and letters of strings.

## Smaller improvements

* Progress bars with `clear = FALSE` now print the last, completed, state
  properly.

* The progress bar for Shiny apps now handles output from
  `cli_progress_output()`.

* Progress variables in C `format_done` strings work correctly now (#337).

* `cli_dl()` now works with an empty description, and gives a better
  error for invalid input (#347).

* `rule()` is now works better if the labels have ANSI markup.

* `cli_spark` objects now have `format()` and `print()` methods.

* `cli_process_done()` now does not error without a process (#351).

* ANSI markup is now supported in RStudio jobs (#353).

* The lack of ANSI support is now again correctly detected if there is an
  active `sink()` (#366).

# cli 3.0.1

* `ansi_strtrim()` now correctly keeps `NA` values (#309).

* `format_inline()` now uses the correct environment (@rundel, #314).

# cli 3.0.0

* New functions for progress bars, please see the new articles at
  https://cli.r-lib.org/articles/ for details.

* New `cli_abort()`, `cli_warn()` and `cli_inform()` functions, to throw
  errors with cli pluralization and styling.

* New `format_inline()` function to format a cli string without emitting
  it (#278).

diffstat:

 devel/R-cli/Makefile |  12 +++++++++---
 devel/R-cli/distinfo |   8 ++++----
 2 files changed, 13 insertions(+), 7 deletions(-)

diffs (48 lines):

diff -r 600ea000998c -r 3ba8b270f6d9 devel/R-cli/Makefile
--- a/devel/R-cli/Makefile      Mon Apr 18 14:35:27 2022 +0000
+++ b/devel/R-cli/Makefile      Mon Apr 18 14:36:00 2022 +0000
@@ -1,7 +1,7 @@
-# $NetBSD: Makefile,v 1.10 2021/05/31 22:04:13 mef Exp $
+# $NetBSD: Makefile,v 1.11 2022/04/18 14:36:00 mef Exp $
 
 R_PKGNAME=     cli
-R_PKGVER=      2.5.0
+R_PKGVER=      3.2.0
 CATEGORIES=    devel
 
 MAINTAINER=    minskim%NetBSD.org@localhost
@@ -13,14 +13,20 @@
 DEPENDS+=      R-fansi-[0-9]*:../../devel/R-fansi
 DEPENDS+=      R-glue-[0-9]*:../../devel/R-glue
 
+# Package suggested but not available: 'asciicast'
+
 TEST_DEPENDS+= R-mockery-[0-9]*:../../devel/R-mockery
 TEST_DEPENDS+= R-prettycode-[0-9]*:../../devel/R-prettycode
 TEST_DEPENDS+= R-covr-[0-9]*:../../devel/R-covr
 TEST_DEPENDS+= R-knitr-[0-9]*:../../print/R-knitr
 TEST_DEPENDS+= R-rmarkdown-[0-9]*:../../textproc/R-rmarkdown
 TEST_DEPENDS+= tex-ec-[0-9]*:../../fonts/tex-ec
+TEST_DEPENDS+= R-glue>=1.6.0:../../devel/R-glue
+TEST_DEPENDS+= R-htmlwidgets-[0-9]*:../../www/R-htmlwidgets
+TEST_DEPENDS+= R-shiny-[0-9]*:../../www/R-shiny
+TEST_DEPENDS+= R-whoami-[0-9]*:../../devel/R-whoami
 
-USE_LANGUAGES= # none
+USE_LANGUAGES= c
 
 REPLACE_RSCRIPT+=      inst/examples/apps/*.R
 REPLACE_RSCRIPT+=      inst/scripts/*.R
diff -r 600ea000998c -r 3ba8b270f6d9 devel/R-cli/distinfo
--- a/devel/R-cli/distinfo      Mon Apr 18 14:35:27 2022 +0000
+++ b/devel/R-cli/distinfo      Mon Apr 18 14:36:00 2022 +0000
@@ -1,5 +1,5 @@
-$NetBSD: distinfo,v 1.8 2021/10/26 10:14:02 nia Exp $
+$NetBSD: distinfo,v 1.9 2022/04/18 14:36:00 mef Exp $
 
-BLAKE2s (R/cli_2.5.0.tar.gz) = 421ae55a52991fa9158b578b57012503b79f1d3b8a32794133994141f4e9aeda
-SHA512 (R/cli_2.5.0.tar.gz) = de61ae17dd8d2b5557ac90c69ba6d31c477b0dc76cc28912c20102032e6ced0205c22e4b88828c511e029afd519e246e1956876590ad9ec715df9396c539b6d2
-Size (R/cli_2.5.0.tar.gz) = 158156 bytes
+BLAKE2s (R/cli_3.2.0.tar.gz) = 8b914e6e808612ff8d9cb4954ead0fee81d4d98dce58617ad9cbcb31b762c090
+SHA512 (R/cli_3.2.0.tar.gz) = 1f0f0a2d3c57830653b788ddef76a4944f4bd8beb6e0e8a71cc9da8242c0939d33b2b28066a6b1dd61b8870edc8d5635415bdaa626c0c4dfd8102fbb3b5cd7e3
+Size (R/cli_3.2.0.tar.gz) = 493192 bytes



Home | Main Index | Thread Index | Old Index