[Rd] system(..., intern=TRUE) splits long lines (PR#2623)
vograno at arbitrade.com
vograno at arbitrade.com
Mon Mar 10 19:59:26 MET 2003
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]]
More information about the R-devel
mailing list