Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Replace use of is.null() by missing() #34

Open
egonw opened this issue Jul 19, 2015 · 0 comments
Open

Replace use of is.null() by missing() #34

egonw opened this issue Jul 19, 2015 · 0 comments

Comments

@egonw
Copy link
Owner

egonw commented Jul 19, 2015

Orginally reported by Maarten-Jan Kallen on rOpenSci for one method (that one actually is applied, but there is more such use):

No, you should just do

add.prefix <- function(store, prefix, namespace) {
      if (missing(store)) stop("A store must be given.")
      if (missing(prefix)) stop("A prefix must be given.")
      if (missing(namespace)) stop("A namespace must be given.")
# ...
}

Unfortunately, the original bug report is lost.

egonw added a commit that referenced this issue Jul 19, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant