Error in R for missing object
- by griffin
I have several nested functions, some of which as called in lapply clauses. In the process, sometimes I don't set a default for a parameter and instead check if it was supplied using the missing function.
I'm getting a strange error right now when I'm not passing a value for a parameter, it has no default, yet missing resolves to FALSE. And when I try to use or check the parameter in any other way (using length, exists, etc.), I get an error:
Error in try(length(x)) : argument "data" is missing, with no default
Has anyone experienced this failure of the missing function before?