vograno@arbitrade.com
2003-Mar-11 08:54 UTC
[Rd] system(..., intern=TRUE) splits long lines (PR#2623)
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]]
ripley@stats.ox.ac.uk
2003-Mar-11 09:15 UTC
[Rd] system(..., intern=TRUE) splits long lines (PR#2623)
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
Peter Dalgaard BSA
2003-Mar-11 09:28 UTC
[Rd] system(..., intern=TRUE) splits long lines (PR#2623)
vograno@arbitrade.com writes:> 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.> major 1 > minor 6.0Not so in 1.6.2:> a <- paste(rep("a", 124), collapse="") > system(paste("echo", a), intern=TRUE)[1]> "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"You might at least have checked the NEWS file for 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. -- O__ ---- Peter Dalgaard Blegdamsvej 3 c/ /'_ --- Dept. of Biostatistics 2200 Cph. N (*) \(*) -- University of Copenhagen Denmark Ph: (+45) 35327918 ~~~~~~~~~~ - (p.dalgaard@biostat.ku.dk) FAX: (+45) 35327907