Skip to content

v0.6.4 (2024-05-25)

Compare
Choose a tag to compare
@github-actions github-actions released this 25 May 08:47
· 49 commits to main since this release

Release Notes

New features

  • New function r_warn() safely show a warning. Note that, a warning can raise
    error when options(warn = 2), so you should not ignore the error from
    r_warn(). The error should be propagated to the R session.

  • Savvy now translates Option<T> as an optional argument, i.e., an argument
    with the default value of NULL.

    Example:

    #[savvy]
    fn default_value_vec(x: Option<IntegerSexp>) -> savvy::Result<Sexp> {
        if let Some(x) = x {
            x.iter().sum::<i32>().try_into()
        } else {
            (-1).try_into()
        }
    }
    default_value_vec(1:10)
    #> [1] 55
    
    default_value_vec()
    #> [1] -1

Bug fixes

  • r_print!() and r_eprint!() now can print strings containing %.

Breaking Change

  • The notation for savvy-cli test is now changed to #[cfg(feature = "savvy-test")] from #[cfg(savvy_test)]. This is to avoid the upcoming
    change in Cargo (ref).

Download savvy-cli 0.6.4

File Platform Checksum
savvy-cli-aarch64-apple-darwin.tar.xz Apple Silicon macOS checksum
savvy-cli-x86_64-apple-darwin.tar.xz Intel macOS checksum
savvy-cli-x86_64-pc-windows-msvc.zip x64 Windows checksum
savvy-cli-aarch64-unknown-linux-gnu.tar.xz ARM64 Linux checksum
savvy-cli-x86_64-unknown-linux-gnu.tar.xz x64 Linux checksum