fixArrayLength: Set length of R object to length of target native array

fixArrayLengthR Documentation

Set length of R object to length of target native array

Description

This function is used (for better or worse) when coercing an R vector (including a list) to an appropriate form. It changes the length of the R object to match that of the array.

Usage

fixArrayLength(obj, expectedLength, fatal = FALSE)

Arguments

obj

the R object whose length is to be changed

expectedLength

the length of the target native array

fatal

a logical value indicating whether to report an error or just a warning about the mismatched lengths

Author(s)

Duncan Temple Lang


omegahat/RAutoGenRunTime documentation built on Jan. 12, 2023, 9:19 p.m.