News‎ > ‎

Model 'rgeneric' and R-4.0

posted 29 Sep 2020, 09:29 by Havard Rue
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.