hello {hellorust}R Documentation

Hello Rust!

Description

Minimal examples of calling rust functions in R via C.

Usage

hello()

random()

runthreads()

Details

These functions call out to rust functions defined in the 'myrustlib' cargo crate which is embedded in this package. They return values generated in Rust, such as a UTF-8 string or random number. In addition, 'runthreads' is an example of a multi-threaded rust function.

Value

a value generated in Rust (a string, random number, and NULL respectively).

Examples

hello()
random()
runthreads()

[Package hellorust version 1.2.0 Index]