pkgsrc/devel/R-cli/Makefile
mef 7492d37315 (devel/R-cli) Updated 2.2.0 to 2.5.0
# cli 2.5.0

* New `style_no_*()` functions to locally undo styling.
  New `col_none()` and `bg_none()` functions to locally undo text color
  and background color.

* It is now possible to undo text and background color in a theme, by
  setting them to `NULL` or `"none"`.

* `cli_memo()` was renamed to `cli_bullets()`, as it is by default
  formatted as a bullet list (#250).

* New `ansi_toupper()`, `ansi_tolower` and `ansi_chartr()` functions,
  the ANSI styling aware variants of `toupper()`, `tolower()` and
  `chartr()` (#248).

* New `test_that_cli()` helper function to write testthat tests for
  cli output.

* `tree()` now does not produce warnings for tibbles (#238).

* New inline style: `.cls` to format class names, e.g.
  `"{.var fit} must be an {.cls lm} object"`.

# cli 2.4.0

* New `cli_memo()` function to create a list of items or tasks.

* New `cli::cli()` function to create a single cli message from multiple
  cli calls (#170).

* cli now highlights weird names, e.g. path names with leading or
  trailing space (#227).

* Styling is fixed at several places. In particular, nested lists should
  be now formatted better (#221).

* New `spark_bar()` and `spark_line()` funcions to draw small bar or
  line charts.

# cli 2.3.1

* ANSI color support detection works correctly now in older RStudio,
  and also on older R versions.

* `cli_h1()`, `cli_h2()` and `cli_h3()` now work with multiple glue
  substitutions (#218).

# cli 2.3.0

* `boxx()` now correctly calculates the width of the box for non-ASCII
  characters.

* New `ansi_trimws()` and `ansi_strwrap()` functions, they are similar
  to `trimws()` and `strwrap()` but work on ANSI strings.

* New `ansi_columns()` function to format ANSI strings in multiple columns.

* `ansi_substr()`, `ansi_substring()`, `ansi_strsplit()`, `ansi_align()`
  now always return `ansi_string` objects.

* `ansi_nchar()`, `ansi_align()`, `ansi_strtrim()` and the new
  `ansi_strwrap()` as well handle wide Unicode correctly, according to
  their display width.

* `boxx()` can now add headers and footers to boxes.
2021-05-31 22:04:13 +00:00

34 lines
1 KiB
Makefile

# $NetBSD: Makefile,v 1.10 2021/05/31 22:04:13 mef Exp $
R_PKGNAME= cli
R_PKGVER= 2.5.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"