extendr-engine 0.8.1

Safe and user friendly bindings to the R programming language.
Documentation
1
2
3
4
5
6
7
8
9
10
fn main() {
    // use R_HOME if provided
    let r_home = match std::env::var("R_HOME") {
        Ok(v) => v,
        // otherwise use the DEP_R_R_HOME from extendr-ffi build.rs
        Err(_) => std::env::var("DEP_R_R_HOME").expect("failed to get DEP_R_R_HOME"),
    };
    // set the environment variable accordingly
    println!("cargo:rustc-env=R_HOME={}", r_home);
}