[Rd] cat with backspace and newline characters

Brian G. Peterson brian at braverock.com
Tue Nov 5 14:30:14 CET 2013


On 11/05/2013 07:22 AM, Martin Maechler wrote:
> which --- as you allude to below --- shows that  RStudio  has changed R
> in so far that it adds a '\n'  even when R, i.e.  cat()  does not.
>
> I can understand that the RStudio programmers want to protect
> their users (*) from getting funny looking output,
> but I still don't like the fact that R inside RStudio is tweaked
> to behave differently from regular R.

No, it just suggests exactly what Prof. Ripley alluded to...

... the output of cat() will be dependent on the display terminal.

RStudio doesn't include R at all, and in fact makes use of the/any R 
binary installed via other processes.  It is not 'tweaked'.

It *does* include a 'terminal' to display the interactions with the R 
console.

Regards,

Brian

-- 
Brian G. Peterson
http://braverock.com/brian/
Ph: 773-459-4973
IM: bgpbraverock



More information about the R-devel mailing list