Re: [R] Warning message if the plot statement breaks into 2 lines
This is a consequence of a change described in NEWS to allow multi-line *strings*. On Fri, 29 Oct 2004 [EMAIL PROTECTED] wrote: > Here is a curious observation. In > > > version > _ > platform i386-pc-mingw32 > arch i386 > os mingw32 > system i386, mingw32 > status > major2 > minor0.0 > year 2004 > month10 > day 04 > language R > > > > Try the following: > > > Plot(c(1:100), type = "l > + ") > Warning message: > plot type 'l > ' truncated to first character in: plot.xy(xy, type, pch, lty, col, bg, > cex, lwd, ...) > > > > Where as in > > version > _ > platform i386-pc-mingw32 > arch i386 > os mingw32 > system i386, mingw32 > status > major1 > minor9.1 > year 2004 > month06 > day 21 > language R > > > > plot(c(1:10), type = "l > Error: syntax error > > > > __ > [EMAIL PROTECTED] mailing list > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html > > -- Brian D. Ripley, [EMAIL PROTECTED] 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, UKFax: +44 1865 272595 __ [EMAIL PROTECTED] mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html
Re: [R] Warning message if the plot statement breaks into 2 lines
[EMAIL PROTECTED] wrote: Here is a curious observation. In version _ platform i386-pc-mingw32 arch i386 os mingw32 system i386, mingw32 status major2 minor0.0 year 2004 month10 day 04 language R Try the following: Plot(c(1:100), type = "l + ") Type > "l + " and see: [1] "l\n" The newline is truncated, as expected. So the new feature of multiline strings is great, isn't it? Uwe Ligges Warning message: plot type 'l ' truncated to first character in: plot.xy(xy, type, pch, lty, col, bg, cex, lwd, ...) Where as in version _ platform i386-pc-mingw32 arch i386 os mingw32 system i386, mingw32 status major1 minor9.1 year 2004 month06 day 21 language R plot(c(1:10), type = "l Error: syntax error __ [EMAIL PROTECTED] mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html __ [EMAIL PROTECTED] mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html
Re: [R] Warning message if the plot statement breaks into 2 lines
It has all to do with a string going over two lines and hence the line terminator is part of the string. If you close the string on the first line then the command is just fine. At least the newer version of the parser allows for embedded newline characters. --Mike On Fri, 29 Oct 2004 13:58:57 -0400 [EMAIL PROTECTED] wrote: > Here is a curious observation. In > > > version > _ > platform i386-pc-mingw32 > arch i386 > os mingw32 > system i386, mingw32 > status > major2 > minor0.0 > year 2004 > month10 > day 04 > language R > > > > Try the following: > > > Plot(c(1:100), type = "l > + ") > Warning message: > plot type 'l > ' truncated to first character in: plot.xy(xy, type, pch, lty, col, bg, > cex, lwd, ...) > > > > Where as in > > version > _ > platform i386-pc-mingw32 > arch i386 > os mingw32 > system i386, mingw32 > status > major1 > minor9.1 > year 2004 > month06 > day 21 > language R > > > > plot(c(1:10), type = "l > Error: syntax error > > > > __ > [EMAIL PROTECTED] mailing list > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html > -- Mike Meyer, Seattle WA __ [EMAIL PROTECTED] mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html