Chapter 5 R Console Print in Rust

There are several ways to print to R console.

5.0.1 r_printf()

Print messages.

r_printf(&format!("{}, {}, {}", "1", 2, 3))

5.0.2 r_message()

Print messages, which can be suppressed.

r_message("bing!")

5.0.3 r_warn()

Print warnings.

r_warn("warning!")

5.0.4 rprint()

Print R Objects.

let res : NumVec = try!(NumVec::rnew(x))
rprint(res)