Skip to main content

Module backports

Module backports 

Source
Expand description

Backport functions

R’s C API is changing and is stabilizing. As such some functions that were available in previous versions of R are not available in later versions of R, or they cause a warning in R CMD check.

Use the functions in this module to ensure backwards compatibility.

Re-exportsΒ§

use crate::Rboolean; πŸ”’
use crate::SEXP; πŸ”’
use crate::R_NilValue; πŸ”’
use crate::Rf_setAttrib; πŸ”’
use crate::CAR; πŸ”’
use crate::CDR; πŸ”’
use crate::TAG; πŸ”’

FunctionsΒ§

CLEAR_ATTRIB πŸ”’ ⚠
DATAPTR_RO πŸ”’ ⚠
R_ClosureBody πŸ”’ ⚠
R_ClosureEnv πŸ”’ ⚠
R_ClosureFormals πŸ”’ ⚠
R_ParentEnv πŸ”’ ⚠
R_getVar πŸ”’ ⚠
R_getVarEx πŸ”’ ⚠
Rf_isDataFrame πŸ”’ ⚠
dataptr⚠
Access a DATAPTR
get_closure_body⚠
Return the body of a closure
get_closure_env⚠
Return the environment of a closure
get_closure_formals⚠
Access a closure’s arguments
get_parent_env⚠
Returns the enclosing environment of env, which will usually be of type ENVSXP, except for the special environment R_EmptyEnv, which terminates the environment chain; its enclosing environment is R_NilValue.
get_var⚠
Returns a variable from an environment
get_var_in_frame⚠
Returns the value of the requested variable in an environment
get_var_safe⚠
Returns a variable from an environment, or None if unbound.
is_data_frame⚠
Check is data.frame
set_attrib⚠
Replace all attributes of x with the pairlist attributes