Re: [R] Line feed for a long character string

2011-05-11 Thread Lisa
Hi, Duncan, On your and William Dunlap’s suggestion, I tried this: cat(sep="\n", strwrap("my long character string")), and it works very well. Thanks so much for your help. Lisa -- View this message in context: http://r.789695.n4.nabble.com/Line-feed-for-a-long-character-string-tp3515824p3

Re: [R] Line feed for a long character string

2011-05-11 Thread Duncan Murdoch
On 11/05/2011 4:46 PM, Lisa wrote: Dear all, Does anyone know how to make a line feed automatically based on the width of console window? For example, when you cat() a long character string just like this: You can use the strwrap() function to insert line breaks. If it's not under your contr

[R] Line feed for a long character string

2011-05-11 Thread Lisa
Dear all, Does anyone know how to make a line feed automatically based on the width of console window? For example, when you cat() a long character string just like this: cat("Seminar series is an opportunity for students to learn about ongoing researches in the field of mathematics, computer sci