egonw / rrdf

R package for handling RDF data.
Other
29 stars 11 forks source link

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

Open egonw opened 9 years ago

egonw commented 9 years ago

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.