[R] Execution of larger blocks of pasted code often fails?

peter dalgaard pdalgd at gmail.com
Wed May 29 08:46:50 CEST 2013


On May 28, 2013, at 19:26 , Mark Breman wrote:

> Thanks everyone for the suggestions.
> 
> If the problem is caused by a restriction in one of the (software)
> components i'm using (OS, terminal etc), should the remaining of the pasted
> code simply be missing after the point where the error occurs? As can be
> seen from my example above the entire block of code is pasted and is
> executed by the R command line, although with errors from the point where
> the first error occured.

Looks like it is dropping characters when its input buffer runs full. That's pretty typical behavior for terminals (real and emulated). 

> 
> Can it be that the paste mechanism i'm using (from GEdit to GNOME terminal
> on Ubuntu Linux) is adding control characters between pasting multiple
> blocks of code and these (invisible) characters are causing the problem?

-- 
Peter Dalgaard, Professor,
Center for Statistics, Copenhagen Business School
Solbjerg Plads 3, 2000 Frederiksberg, Denmark
Phone: (+45)38153501
Email: pd.mes at cbs.dk  Priv: PDalgd at gmail.com



More information about the R-help mailing list