Revision of errors from Wed, 09/02/2009 - 02:22

The revisions let you track differences between multiple versions of a post.

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

Vexing Error Code #1

Warning messages:
1: In convertVFN(values, free, labels, lbound, ubound, nrow, ncol) :
NAs introduced by coercion
2: In convertVFN(values, free, labels, lbound, ubound, nrow, ncol) :
NAs introduced by coercion
3: In convertVFN(values, free, labels, lbound, ubound, nrow, ncol) :
NAs introduced by coercion
4: In convertVFN(values, free, labels, lbound, ubound, nrow, ncol) :
NAs introduced by coercion
5: In convertVFN(values, free, labels, lbound, ubound, nrow, ncol) :
NAs introduced by coercion
6: In convertVFN(values, free, labels, lbound, ubound, nrow, ncol) :
NAs introduced by coercion
7: In convertVFN(values, free, labels, lbound, ubound, nrow, ncol) :
NAs introduced by coercion
8: In convertVFN(values, free, labels, lbound, ubound, nrow, ncol) :
NAs introduced by coercion
9: In convertVFN(values, free, labels, lbound, ubound, nrow, ncol) :
NAs introduced by coercion
10: In convertVFN(values, free, labels, lbound, ubound, nrow, ncol) :
NAs introduced by coercion

This error occurs when I attempt to introduce 10 new 1X1 matrices into a model coded using the path specification approach (see code on the "Errors Returned by R" thread).