[R] [R-pkgs] New Package fansi: ANSI Control Sequence Aware String Functions

2018-04-03 Thread brodie gaslam via R-packages
fansi provides counterparts to the base string manipulation functions substr, strwrap, strtrim, strsplit, and n(z)char that account for ANSI CSI SGR control sequences.  ANSI CSI SGR control sequences [1] can be used to format text in terminals that support them. For example the control sequence

[R] [R-pkgs] Announcing 'unitizer': Interactive Unit Tests

2017-04-13 Thread brodie gaslam via R-packages
`unitizer` is a unit testing framework for tests that produce non-trivial output. It is conceptually similar to using ".Rout.save" files, except we save the actual R objects and conditions, and we streamline the update/test/debug cycle via an interactive interface. A non-interactive mode is av

[R] [R-pkgs] New Package vetr: Enforce Structural Requirements for S3 Objects

2017-07-27 Thread brodie gaslam via R-packages
`vetr` implements a declarative template-based approach to verify that objects meet structural requirements, and auto-composes error messages when they do not. This package is intended to simplify a more formal use of S3 objects. The template concept is borrowed from `vapply`: >> vet(numeric(1L),

[R] [R-pkgs] diffobj released to CRAN

2016-09-08 Thread brodie gaslam via R-packages
diffobj provides tools to compare the visual representation of R objects using the Myer's diff algorithm: ## Example: > mx1 <- matrix(1:9, 3) > mx2 <- mx1[-2,] > diffPrint(mx1, mx2, format="raw") < mx1 > mx2 @@ 1,4 @@ @@ 1,3 @@ . [,1] [,2] [,3] [,1] [,2