Package 'savvy'

Title: A Simple Wrapper of 'savvy-cli' Command
Description: Generates the C and R wrappers for the Rust-powered R package using the savvy framework.
Authors: Hiroaki Yutani [aut, cre]
Maintainer: Hiroaki Yutani <[email protected]>
License: MIT + file LICENSE
Version: 0.0.4
Built: 2024-06-04 05:32:59 UTC
Source: https://github.com/yutannihilation/savvy-helper-R-package

Help Index


Update 'savvy-cli'

Description

Update 'savvy-cli'

Usage

download_savvy_cli()

Execute ⁠savvy-cli extract-tests⁠

Description

Execute ⁠savvy-cli extract-tests⁠

Usage

savvy_extract_tests(path = "./src/rust/")

Arguments

path

Path to the root of a Rust crate.


Execute 'savvy-cli init“

Description

Execute 'savvy-cli init“

Usage

savvy_init(path = ".", verbose = TRUE)

Arguments

path

Path to the root of an R package

verbose

If TRUE, show all the output from savvy-cli.


Compile Rust Code And Load

Description

Compile Rust Code And Load

Usage

savvy_source(
  code,
  use_cache_dir = FALSE,
  env = parent.frame(),
  dependencies = list(),
  clean = NULL
)

Arguments

code

Rust code to compile.

use_cache_dir

If TRUE, reuse and override the cache dir to avoid re-compilation. This is an expert-only option.

env

The R environment where the R wrapping functions should be defined.

dependencies

List of dependencies. (e.g. list(once_cell = list(version = "1"))) at the end of the R session.

clean

If TRUE, remove the temporary R package used for compilation


Execute 'savvy-cli update“

Description

Execute 'savvy-cli update“

Usage

savvy_update(path = ".", verbose = TRUE)

Arguments

path

Path to the root of an R package

verbose

If TRUE, show all the output from savvy-cli.


Execute 'savvy-cli –version“

Description

Execute 'savvy-cli –version“

Usage

savvy_version()