3.3 Summary

3.3.1 rust()

rust(path = "Rust file", code = "Rust code", depend = "Optional Cargo TOML dependency")

Source Rust file or code in R console.

3.3.2 rustr_init()

rustr_init(name = "R package name", path = "Pacakage path")

Init a Rust-R package struture. It is similar to package.skeleton().

3.3.3 headr()


Give you the header of the lib.rs for Rust Library to get started with R.

3.3.4 rustrize()

rustrize(path = ".")

Generate R function for Rust function in a R package. It is similar to compileAttributes() in Rcpp.