Skip to main content

build_levels_sexp

Function build_levels_sexp 

Source
pub fn build_levels_sexp(levels: &[&str]) -> SEXP
Expand description

Build a levels STRSXP of UTF-8 CHARSXPs.

Level names are not interned as R symbols, so names built from data stay collectable. The returned STRSXP is NOT protected - caller must protect or preserve it.

ยงPanics

If a level name contains a null byte.