Re: [R] sweave question

2013-02-14 Thread Mark Leeds
Hi Dan, Duncan and Yihui: I apologize for my late response. Dan: Your backslash explanation was great but yes, I think there was a transmission problem in the link I sent. I made the changes and everything compiled without a glitch but the actual tex file ends up with many begin{Schunk} and

Re: [R] sweave question

2013-02-14 Thread Duncan Mackay
Hi Mark I need pdfs for Sweave etc, my colleagues want wmfs or the ilk and for publishing eps/tiff so I just add a section for each with in the 'print' chunk Duncan At 02:49 15/02/2013, you wrote: Hi Dan, Duncan and Yihui: I apologize for my late response. Dan: Your backslash

Re: [R] sweave question

2013-02-13 Thread Nordlund, Dan (DSHS/RDA)
-Original Message- From: r-help-boun...@r-project.org [mailto:r-help-bounces@r- project.org] On Behalf Of Mark Leeds Sent: Wednesday, February 13, 2013 2:59 PM To: r-help@r-project.org Subject: [R] sweave question Hi Everyone: I was having trouble getting the plot size correct

Re: [R] sweave question

2013-02-13 Thread Mark Leeds
-project.org Subject: [R] sweave question Hi Everyone: I was having trouble getting the plot size correct when putting a plot in an sweave document. So, I searched on the internet and I found a clever solution where the person uses the cat function to write latex code so he can include

Re: [R] sweave question

2013-02-13 Thread Duncan Mackay
, February 13, 2013 2:59 PM To: r-help@r-project.org Subject: [R] sweave question Hi Everyone: I was having trouble getting the plot size correct when putting a plot in an sweave document. So, I searched on the internet and I found a clever solution where the person uses the cat function to write

Re: [R] sweave question

2013-02-13 Thread Daniel Nordlund
: Wednesday, February 13, 2013 4:18 PM To: Nordlund, Dan (DSHS/RDA) Cc: r-help@r-project.org Subject: Re: [R] sweave question thanks dan. I'll try the double slash on both sides when I get back later tonight. In the solution on the net, he only had the backslash on the end quotes ( well

Re: [R] sweave question

2013-02-13 Thread Yihui Xie
Other people in this thread have explained the rule of double backslashes. I just want to add one more comment: That clever solution was in 2009 when knitr has not come out, and I have used this picture several times to show how much I dislike it:

[R] Sweave question - Setting Soutput code chunks to stay inside page margins?

2012-01-19 Thread Tal Galili
Hello all, Sometimes I get to make an R code chunk (in Sweave) which is longer then the margins of the page. Is there a way to force it to go to the next line (in Sweave) once that happens? Here are two cases this happens in the resulting .tex file (one is a hard case, and the other is simpler)

Re: [R] Sweave question - Setting Soutput code chunks to stay inside page margins?

2012-01-19 Thread Yihui Xie
Do you have a practical case in which you have to print 114 a's without spaces? I mean this is such an extreme case that is unlikely to happen in real life. As long as you have spaces in your string, it will be easy for LaTeX to wrap long lines, although LaTeX should be able to do it even if the

Re: [R] Sweave question - Setting Soutput code chunks to stay inside page margins?

2012-01-19 Thread Tal Galili
Hi Yihui, The a's case happens when, for example, one prints some long equation function without using spaces in it. It happened to me in something I wrote which I will write now while including spaces if I had known it would solve the issue, but I have yet to have found one (for Sweave, that is

Re: [R] Sweave question - Setting Soutput code chunks to stay inside page margins?

2012-01-19 Thread Duncan Murdoch
On 12-01-19 3:24 AM, Tal Galili wrote: Hello all, Sometimes I get to make an R code chunk (in Sweave) which is longer then the margins of the page. Is there a way to force it to go to the next line (in Sweave) once that happens? Sweave normally uses a verbatim environment, so you have to

Re: [R] Sweave question

2010-11-15 Thread Dieter Menne
Duncan Murdoch-2 wrote: See SweavePDF() in the patchDVI package on R-forge. In case googling patchDVI only show a few Japanese Pages, and search for patchDVI in R-Forge gives nothing: try https://r-forge.r-project.org/projects/sweavesearch/ (or did I miss something obvious, Duncan?)

Re: [R] Sweave question

2010-11-15 Thread Duncan Murdoch
On 15/11/2010 6:22 AM, Dieter Menne wrote: Duncan Murdoch-2 wrote: See SweavePDF() in the patchDVI package on R-forge. In case googling patchDVI only show a few Japanese Pages, and search for patchDVI in R-Forge gives nothing: try https://r-forge.r-project.org/projects/sweavesearch/

Re: [R] Sweave question

2010-11-15 Thread Ralf B
Thank you for all your comment. In result of own research I found this method that seems to do what I want in addition to your suggestions: tools::texi2dvi(myfile.tex, pdf=TRUE) Thanks again, Ralf On Mon, Nov 15, 2010 at 6:42 AM, Duncan Murdoch murdoch.dun...@gmail.com wrote: On 15/11/2010

Re: [R] Sweave question

2010-11-15 Thread Duncan Murdoch
On 15/11/2010 12:38 PM, Ralf B wrote: Thank you for all your comment. In result of own research I found this method that seems to do what I want in addition to your suggestions: tools::texi2dvi(myfile.tex, pdf=TRUE) Sure, but this doesn't quite answer your original question: you can't pass

Re: [R] Sweave question

2010-11-14 Thread Duncan Murdoch
On 13/11/2010 10:31 PM, Ralf B wrote: Thank you. The article you cited explains on the last page how this is done and shows how Sweave is run from within R and it says that it creates the .tex file. My last remaining question is now if there is a way to execute this Sweave tex output by

[R] Sweave question

2010-11-13 Thread Ralf B
It seems that Sweave is supposed to be used from Latex and R is called during the LaTeX compilation process whenever R chunks appear. What about the other way round? I would like to run it triggered by R. Is this possible? I understand that this does not correspond to the idea of literate

Re: [R] Sweave question

2010-11-13 Thread Johannes Huesing
Ralf B ralf.bie...@gmail.com [Sat, Nov 13, 2010 at 10:03:49PM CET]: It seems that Sweave is supposed to be used from Latex and R is called during the LaTeX compilation process whenever R chunks appear. This is not how it works. In the first page of

Re: [R] Sweave question

2010-11-13 Thread Ralf B
Thank you. The article you cited explains on the last page how this is done and shows how Sweave is run from within R and it says that it creates the .tex file. My last remaining question is now if there is a way to execute this Sweave tex output by executing Latex from R. In other words, what is

Re: [R] Sweave question

2010-04-29 Thread Duncan Murdoch
On 28/04/2010 11:31 PM, Felipe Carrillo wrote: Hi: I am using Sweave and texi2dvi to generate a LaTeX document but can't find the way to hide the graphics while the R chunks are being executed. I thought results=hide would do it but that't not the case. Sweave runs figure chunks multiple

Re: [R] Sweave question

2010-04-29 Thread Felipe Carrillo
Message From: Duncan Murdoch murdoch.dun...@gmail.com To: Felipe Carrillo mazatlanmex...@yahoo.com Cc: r-h...@stat.math.ethz.ch Sent: Thu, April 29, 2010 4:12:58 AM Subject: Re: [R] Sweave question On 28/04/2010 11:31 PM, Felipe Carrillo wrote: Hi: I am using Sweave and texi2dvi

[R] Sweave question

2010-04-28 Thread Felipe Carrillo
Hi: I am using Sweave and texi2dvi to generate a LaTeX document but can't find the way to hide the graphics while the R chunks are being executed. I thought results=hide would do it but that't not the case. If I do: \begin{figure}[h] figA=true,echo=F,fig=T,results=hide= a rnorm(1000) plot(a) @