Model 'rgeneric' and R-4.0

Post date: Sep 29, 2020 4:29:02 PM

There is a minor change in the R-internals in R-4.0 that may make rgeneric models crash if the statement (used in the rgeneric vignette), is used,

if (is.null(theta)) theta = initial()

This statement is used to ensure that 'theta' is always set as some argument do not depend on 'theta'. In R-4.0 you need to change this statement to

if (!length(theta)) theta = initial()

The vignette and examples are updated and will be available in the next build.

Thanks to GV who reported this error.

H