[Rd] system(..., intern=TRUE) splits long lines (PR#2623)
ripley at stats.ox.ac.uk
ripley at stats.ox.ac.uk
Tue Mar 11 08:14:58 MET 2003
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 at 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 at stat.math.ethz.ch mailing list
> https://www.stat.math.ethz.ch/mailman/listinfo/r-devel
>
--
Brian D. Ripley, ripley at 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
More information about the R-devel
mailing list