You are here

Revision of errors from Tue, 09/01/2009 - 20:13

Revisions allow you to track differences between multiple versions of your content, and revert back to older versions.

general strategies for locating errors

  • Use the traceback() function in R after an error occurs.It will print out the sequence of function calls that lead to the error.

argument is missing, with no default

Variations include:
Error in single.na(to) : argument is missing, with no default

Typical cause: A leading or trailing comma in your code makes R think that you wanted to pass in a parameter, but left it empty (hence "missing, with not default")

Examples:
leading comma
to=c(,'x','y','z')

trailing comma
mxMatrix("Name"
nrow=3,ncol=3,free=TRUE, values=.5,
)

Cure: remove the errant comma