I have faced with the strange behavior of the .Traceback
object in R.
When I try to print the short error message, it is ok and the .Traceback[[1]]
has the one element. But when I try to print very long string, the .Traceback[[1]]
object becomes the list of two elements. Look:
>stop(paste("short", "string"))
Error: short string
>.Traceback
[[1]]
[1] "stop(paste(\"short\", \"string\"))"
>stop(paste("very loooooooooooooooooooooooooooooooooooooooooooooooooooooong", "string"))
Error: very loooooooooooooooooooooooooooooooooooooooooooooooooooooong string
>.Traceback
[[1]]
[1] "stop(paste(\"very loooooooooooooooooooooooooooooooooooooooooooooooooooooong\", "
[2] " \"string\"))"
Could you help me to figure it out? I'm really confused by this unintended behavior.