search for: handle_char

Displaying 1 result from an estimated 1 matches for "handle_char".

2007 Jun 20
1
clients and carriage returns
...ased editors, which are using \r\n for EOL. I had not realized this before, but R throws a parse error when it sees \r, even on a Win32 OS. Near as I can tell browsing R source, this is true on all operating systems -- e.g. gram.y seems to look only for \n, and in src/gnuwin32/graphapp/events.c:handle_char(), \r is actively replaced with \n. I didn't find any specific mention of EOL/newline in "Writing R Extensions", and only reference to related escape sequences in "R Language Definition". My questions: - Is it safe (and indeed proper) for PL/R to always convert \r\n to...