Recent Releases of ympes

ympes - v1.9.0

breaking change: Error conditions thrown by the assertions no longer have the default class of <ympes-error/error/condition>. Instead they return the standard <error/condition> condition with an optional subclass (controlled via the .subclass argument).

- R
Published by TimTaylor about 1 year ago

ympes - v1.8.0

  • New function gstrcapture().
  • No longer download css when building vignette.

- R
Published by TimTaylor over 1 year ago

ympes - v1.7.0

  • cc() can once again send generative code for its output to the system clipboard via the .clip argument. This functionality was previously removed in the 1.5.0 release due to unreliability in it's use on some environments (e.g. RStudio on Fedora KDE Wayland session). Time seems to have remedied the issue.

  • breaking change: If an assertion succeeds it now returns it's input invisibly. This was to enable more concise casting, e.g

x <- 1.0 x <- as.integer(assert_integerish(x))

  • breaking change: new_package() and it's alias np() have been completely removed from the package.

- R
Published by TimTaylor over 1 year ago

ympes - v1.6.0

  • New function new_name() which generates unique names for additional data frame variables (ensuring they are not already present).

  • New assertion functions:

    • assert_character_not_na(), assert_chr_not_na()
    • assert_double_not_na(), assert_dbl_not_na()
    • assert_integer_not_na(), assert_int_not_na()
    • assert_integerish(), assert_whole()
    • assert_scalar_integerish(),
    • assert_logical_not_na(), assert_lgl_not_na()
    • assert_numeric_not_na(), assert_num_not_na()
    • assert_scalar_logical_not_na(), assert_scalar_lgl_not_na()
    • assert_string_not_na()
    • assert_between()
  • Assertions errors are now given the class "ympes-error".

  • breaking change: Assertions no longer use ... to add attributes to the resulting error conditions.

- R
Published by TimTaylor over 1 year ago