From vograno at arbitrade.com  Mon Mar 10 19:59:26 2003
From: vograno at arbitrade.com (vograno@arbitrade.com)
Date: Tue Mar 11 08:54:37 2003
Subject: [Rd] system(..., intern=TRUE) splits long lines (PR#2623)
Message-ID: <200303101859.h2AIxQn9026306@pubhealth.ku.dk>

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]]


[Rd] system(..., intern=TRUE) splits long lines (PR#2623)
vograno@arbitrade.com