duncantl/CodeDepends

partial match to 'calls'

Closed this issue · 1 comments

Minor issue, similar to #22. Discovered by @nick-ulle.

> options(warnPartialMatchDollar = TRUE)
> options(warn = 2)
> CodeDepends::getInputs(quote(foo$bar))
Error in collector$call : 
  (converted from warning) partial match of 'call' to 'calls'

Looks like it shows up in a few places:

clark@DSI-CF ~/dev/CodeDepends/R (master)
$ grep "collector\$call[^s]" *
functionHandlers.R:        collector$call(as.character(e[[1]]))
functionHandlers.R:        collector$call(paste(fname, "<-", sep = ""))
functionHandlers.R:    collector$call(as.character(e[[1]]))
functionHandlers.R:        collector$call(asVarName(e[[1]]))
functionHandlers.R:    collector$call(asVarName(e[[1]]))
functionHandlers.R:        collector$call(nameToUse)
functionHandlers.R:    collector$call("spread")
functionHandlers.R:    collector$call(as.character(e[[1]]))

If you like I can submit a patch.