Skip to content
Prev 27122 / 63461 Next

parse() does not complain for not finished strings?

Hello,
parse() is supposed to detect incomplete instructions, isn't it?
For instance:
expression(log(10))
Error in parse(mc) : unexpected end of input at
2: log(
expression(text <- "some incomplete string\n")
I don't understand why parse() does not complain in this third case, and
why it "finishes" my string and adds a '\n' at its end. Does anybody
could explain me,... or is this a bug?
Many thanks.

Philippe Grosjean