docs.rs failed to build extendr-api-0.1.1
Please check the build logs for more information.
See Builds for ideas on how to fix a failed build, or Metadata for how to configure docs.rs builds.
If you believe this is docs.rs' fault, open an issue.
Please check the build logs for more information.
See Builds for ideas on how to fix a failed build, or Metadata for how to configure docs.rs builds.
If you believe this is docs.rs' fault, open an issue.
Visit the last successful build:
extendr-api-0.6.0
extendr - A safe and user friendly R extension interface.
This library aims to provide an interface that will be familiar to first-time users of Rust or indeed any compiled language.
Anyone who knows the R library should be able to write R extensions.
See the Robj struct for much of the content of this crate. Robj provides a safe wrapper for the R object type.
This library is just being born, but goals are:
Implement common R functions such as c() and print()
Example:
let v = c!(1, 2, 3);
let l = list!(a=1, b=2);
print!(v, l);
Provide a wrapper for r objects.
Example:
let s = Robj::from("hello");
let i = Robj::from(1);
let r = Robj::from(1.0);
Provide iterator support for creation and consumption of r vectors.
Example:
let res = (1..=100).iter().collect::<Robj>();
for x in res {
print!(x);
}
Provide a procedural macro to adapt Rust functions to R
Example:
#[export_function]
fn fred(a: i32) -> i32 {
a + 1
}
In R:
result <- .Call("fred", 1)