Skip to main content

R_ParseVector

Function R_ParseVector 

Source
pub unsafe fn R_ParseVector(
    text: SEXP,
    n: c_int,
    status: *mut ParseStatus,
    srcfile: SEXP,
) -> SEXP
Expand description

Parse R source text into an EXPRSXP (a list of parsed expressions).

text is a STRSXP holding the source, n is the number of expressions to parse (-1 for all), status receives the ParseStatus outcome, and srcfile is a srcref/R_NilValue. Allocates; protect the result.

Prefer the safe crate::expression::r_eval_str wrapper, which does the STRSXP construction, status check, and protection bookkeeping for you. Checked wrapper for R_ParseVector. Calls R_ParseVector_unchecked and routes through with_r_thread. Generated from source location line 953, column 12. Generated from source file miniextendr-api/src/sys.rs.