Skip to content
Prev 43166 / 398506 Next

Problem with hasArg() using R-files

Please do give reproducible example.  The code you gave, which you claimed
`works correctly' doesn't:
+                  {
+                   q <- length(par); x <- data
+                   if(hasArg(crit))
+                           cat("\n Crit present\n")
+                   else
+                           cat("\n Crit not present\n")
+                  }
Error in SDT.Optim(Par0, Freq, crit, T) : unused argument(s) ( ...)

The reason is that the function definition says SDT.Optim should only accept
two arguments, but is called with four.

Please also provide the error messages (if any), instead of just saying that
it doesn't `work'.  Whatever does that mean?

Andy
------------------------------------------------------------------------------
Notice:  This e-mail message, together with any attachments,...{{dropped}}