Re: [R] sweave output

2010-10-05 Thread Duncan Murdoch
On 05/10/2010 7:58 AM, Rubin, Norman wrote: I'm just starting to use sweave with latex and have a beginner question I expect this has been asked before - but I cannot seem to find the answer An input like: <>= X<- 1:3 X @ Generates [1] 1 2 3 Is there a way to suppress the [1] ? This isn'

[R] sweave output

2010-10-05 Thread Rubin, Norman
I'm just starting to use sweave with latex and have a beginner question I expect this has been asked before - but I cannot seem to find the answer An input like: <>= X <- 1:3 X @ Generates [1] 1 2 3 Is there a way to suppress the [1] ? I know I can write each term out using this the line is

Re: [R] Sweave output from print.summary.glm is too wide

2009-08-18 Thread Duncan Mackay
Hi Peter Sorry I must have been reading too much into your email. I had thought that either latex or xtable packages handled summaries effectively. I have not really got into summaries in Sweave. I do not know whether SweaveListingUtils may help. I had a look at it but I did not have the time t

Re: [R] Sweave output from print.summary.glm is too wide

2009-08-18 Thread Duncan Mackay
Oops I forgot to mention ?xtable and ?latex in Frank Harrell's Hmisc or Design packages (I cannot remember) Duncan Hi Peter If all else fails you can make the space between the columns smaller by changing the column spacing in latex by: \setlength\tabcolsep{3pt} The default is 7pt. You m

Re: [R] Sweave output from print.summary.glm is too wide

2009-08-18 Thread Duncan Mackay
Hi Peter If all else fails you can make the space between the columns smaller by changing the column spacing in latex by: \setlength\tabcolsep{3pt} The default is 7pt. You may have to go a little higher if it looks cramped. I have gone down as far as 2pt using a small font size Also changi

[R] Sweave output from print.summary.glm is too wide

2009-08-18 Thread Peter Dunn
Hi all I am preparing a document using Sweave; a really useful tool. But I am having a problem. Consider this toy example Sweave file: \documentclass{article} \begin{document} <>= options(width=40) # Set width to 40 characters hide <- capture.output(example(glm)) # Create an example

[R] sweave output

2009-07-20 Thread Rainer M Krug
Hi I am using sweave and have read somewhere a way of adding ... when printing vectors / dataframes which are longer then a given length, but I can't find this anymore. Could somebody point me into the right direction, where I could find it? Thanks Rainer -- Rainer M. Krug, Centre of Excellen

Re: [R] Sweave-output causes error-message in pdflatex

2009-03-27 Thread Duncan Murdoch
On 3/27/2009 10:12 AM, Gerrit Voigt wrote: Dear list, Latex/Sweave has trouble processing Sveave-output coming from the summary-command of a linear Model. >summary(lmRub) The output line causing the trouble looks in R like this Signif. codes: 0 ‘***’ 0.001 ‘**’ 0.01 ‘*’ 0.05 ‘.’ 0.1 ‘ ’ 1 In

[R] Sweave-output causes error-message in pdflatex

2009-03-27 Thread Gerrit Voigt
Dear list, Latex/Sweave has trouble processing Sveave-output coming from the summary-command of a linear Model. >summary(lmRub) The output line causing the trouble looks in R like this Signif. codes: 0 ‘***’ 0.001 ‘**’ 0.01 ‘*’ 0.05 ‘.’ 0.1 ‘ ’ 1 In my Sweaved Tex-file that line looks like this