From ripley at stats.ox.ac.uk  Tue Mar 11 08:14:58 2003
From: ripley at stats.ox.ac.uk (ripley@stats.ox.ac.uk)
Date: Tue Mar 11 09:15:11 2003
Subject: [Rd] system(..., intern=TRUE) splits long lines (PR#2623)
In-Reply-To: <200303101859.h2AIxQn9026306@pubhealth.ku.dk>
Message-ID: <Pine.LNX.4.44.0303110810440.7225-100000@gannet.stats>

This is already fixed: *please* don't send bug reports on obselete 
versions of R, especially without checking the current NEWS file:

		CHANGES IN R VERSION 1.6.2

...

    o	system(intern=TRUE) has an undocumented line length limit of
	119 chars both on Unix and Windows.  The limit is now 8096 and
	documented.  On Unix (only) every 120th character used to be
	discarded.


On Mon, 10 Mar 2003 vograno@arbitrade.com wrote:

> system(..., intern=TRUE) splits long lines after 118th character and
> discards the 119th character 
> 
> > a <- paste(rep("a", 124), collapse="")
> > system(paste("echo", a), intern=TRUE)
> system(paste("echo", a), intern=TRUE)
> [1]
> "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
> aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa" "aaaaa"
> 
> > 
> 
> The result is a vector of length 2 and it should be that of 1.
> 
> version
>          _                
> platform i686-pc-linux-gnu
> arch     i686             
> os       linux-gnu        
> system   i686, linux-gnu  
> status                    
> major    1                
> minor    6.0              
> year     2002             
> month    10               
> day      01               
> language R                
> 
> 
> Thanks,
> Vadim
> 
> -------------------------------------------------- 
> DISCLAIMER\ This e-mail, and any attachments thereto, is intende... [[dropped]]
> 
> ______________________________________________
> R-devel@stat.math.ethz.ch mailing list
> https://www.stat.math.ethz.ch/mailman/listinfo/r-devel
> 

-- 
Brian D. Ripley,                  ripley@stats.ox.ac.uk
Professor of Applied Statistics,  http://www.stats.ox.ac.uk/~ripley/
University of Oxford,             Tel:  +44 1865 272861 (self)
1 South Parks Road,                     +44 1865 272866 (PA)
Oxford OX1 3TG, UK                Fax:  +44 1865 272595


[Rd] system(..., intern=TRUE) splits long lines (PR#2623)
ripley@stats.ox.ac.uk