You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I just did a search through CRAN source code for possible problems in the use
of return() in R packages. Unlike C, in R return() is a function; if you have
code like
if (condition) return;
the function won't be called, so execution will continue to the next line.
Your packages appear to have some instances of that usage, shown below. Some
of these may be false positives (e.g. you used "return" as a local variable
name), but I think most of them are bugs. Please take a look,
and if changes are needed, submit a revised version to CRAN.
@dmurdoch just sent a mass email to maintainers:
and further down has this snippet:
I think he got us. The full segment is here and I think we should indeed make that
return(NULL)
.PR coming in a moment.
The text was updated successfully, but these errors were encountered: