Just some tips:
options(error=recover): it will tell R to launch debug section and you can choose which one to debug
options(show.error.locations=TRUE): let R show the source line number
Something else:
use traceback() to locate where the last error message is and then use browser() to run the function again to check what is wrong.
No comments:
Post a Comment