pkgsrc/devel/R-cli/Makefile
mef 8492119e0b (devel/R-cli) Updated 2.0.2 to 2.2.0
# cli 2.2.0

* New `style_hyperlink()` function to add hyperlinks, on terminals that
  support them.

* `cli_format_method()` now works properly in knitr, and other environments
  that catch message conditions (#159).

* ANSI strings created by `col_*`, `bg_*` and `style_*` now also add the
  `character` class to the result. This fixes issues with code that
  expect `character` objects.

* New functions to manipulate ANSI strings: `ansi_aling()`,
  `ansi_has_any()`, `ansi_nchar()`, `ansi_regex()`, `ansi_strip()`,
  `ansi_strsplit()`, `ansi_substr()`, `ansi_substring()`.

# cli 2.1.0

* New `cli_vec()` function to allow easier formatting of collapsed
  vectors. It is now also possible to use styling to set the collapsing
  parameters (#129).

* New `pluralize()` function to perform pluralization without generating
  cli output (#155).

* `console_width()` works better now in RStudio, and also in terminals.

* Styling of verbatim text work properly now (#147, @tzakharko).

* Messages (ie. `message` conditions) coming from cli now have the
  `cliMessage` class, so you can easily suppress them without suppressing
  other messages (#156).

* cli prints the output to `stderr()` now, if there is an output or
  message sink. This is to make interactive and non-interactive sessions
  consistent (#153).

* Pluralization works corrently now if the last alternative is the
  empty string (#158).

* cli now caches the result of the dark background detection in iTerm on
  macOS. Reload cli to delete the cache (#131).

* The `is_dynamic_tty()`, `is_ansi_tty()` and `ansi_hide_cursor()` and
  releted functions now default to the `"auto"` stream, which is
  automatically selected to be either `stdout()` or `stderr()`.
  See the manual for details (#144).

* The default theme now quotes file names, paths, email addresses if they
  don't start or end with an alphanumeric character or a slash. This is
  to make it easier to spot names that start or end with a space (#167).

* `make_spinner()` clears the line properly now (@tzakharko, #164).

* Semantic cli functions now automatically replace Unicode non-breaking
  space characters (`\u00a0`) with regular space characters, right before
  output. They are still used to calculate the line breaks, but not
  outputted (#161).
* Progress bars now respect `is_dynamic_tty()` and do not output `\r` when this
  is false (@jimhester, #177)
2021-01-01 04:15:16 +00:00

34 lines
1 KiB
Makefile

# $NetBSD: Makefile,v 1.9 2021/01/01 04:15:16 mef Exp $
R_PKGNAME= cli
R_PKGVER= 2.2.0
CATEGORIES= devel
MAINTAINER= minskim@NetBSD.org
COMMENT= Helpers for developing command line interfaces
LICENSE= mit
DEPENDS+= R-assertthat>=0.2.1:../../devel/R-assertthat
DEPENDS+= R-crayon>=1.3.4:../../devel/R-crayon
DEPENDS+= R-fansi-[0-9]*:../../devel/R-fansi
DEPENDS+= R-glue-[0-9]*:../../devel/R-glue
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
USE_LANGUAGES= # none
REPLACE_RSCRIPT+= inst/examples/apps/*.R
REPLACE_RSCRIPT+= inst/scripts/*.R
REPLACE_INTERPRETER+= Rscript
REPLACE.Rscript.old= .*Rscript
REPLACE.Rscript.new= ${PREFIX}/bin/Rscript
REPLACE_FILES.Rscript= ${REPLACE_RSCRIPT}
.include "../../math/R/Makefile.extension"
.include "../../mk/bsd.pkg.mk"