Re: [R] R-Latex question

2008-03-11 Thread Markus Jäntti
On Tue, 2008-03-11 at 10:23 -0700, threshold wrote: > cat("\hline \n");flush.console() you need to double the backslashes, as in cat("\\hline \n");flush.console() as in > cat("\\hline \n");flush.console() \hline The warning when using just one kind of hints at what is going on: > cat("\hline

Re: [R] R-Latex question

2008-03-11 Thread Peter Dalgaard
threshold wrote: > Hi, maybe my question is not typical. I want to make R table-kind output to > be readable immediately in Latex but I am struggling with symbol '\' needed > for instance in '\hline'. For example when 'Table' is a matrix class object: > > cat("&",Table[1,1], "&",Table[1,2], "\n");f

[R] R-Latex question

2008-03-11 Thread threshold
Hi, maybe my question is not typical. I want to make R table-kind output to be readable immediately in Latex but I am struggling with symbol '\' needed for instance in '\hline'. For example when 'Table' is a matrix class object: cat("&",Table[1,1], "&",Table[1,2], "\n");flush.console() cat("\hli