Re: [Rd] R CMD check and error in an \Sexpr in an Rd file

2011-11-04 Thread Renaud Gaujoux
Thank you Duncan for pointing this out. I did have tried using the command \out with no success, but I finally manage to do what I want with: \if{html}{\Sexpr[results=rd, stage=render]{"out{line\nnewline\n\nother line}"}} \if{text}{\Sexpr[results=rd, stage=render]{"out{line\nnewline\n\

Re: [Rd] R CMD check and error in an \Sexpr in an Rd file

2011-11-03 Thread Duncan Murdoch
On 03/11/2011 10:49 AM, Renaud Gaujoux wrote: On 03/11/2011 16:28, Duncan Murdoch wrote: > On 03/11/2011 10:21 AM, Renaud Gaujoux wrote: >> Thank you Georgi. >> With the fix \long the output is indeed consistent with the >> documentation. >> I think my use of cat() worked by luck as its outp

Re: [Rd] R CMD check and error in an \Sexpr in an Rd file

2011-11-03 Thread Renaud Gaujoux
On 03/11/2011 16:33, Georgi Boshnakov wrote: Dear Renalud,, Would a 'results=tex' (html, text) be possible? or 'results=source' that could be combined with \if{format}{text}? This may well be a clean approach. After my previous email, I looked again at the definition of thr \AsIs macro. Its

Re: [Rd] R CMD check and error in an \Sexpr in an Rd file

2011-11-03 Thread Renaud Gaujoux
On 03/11/2011 16:28, Duncan Murdoch wrote: On 03/11/2011 10:21 AM, Renaud Gaujoux wrote: Thank you Georgi. With the fix \long the output is indeed consistent with the documentation. I think my use of cat() worked by luck as its output should not have been rendered. Would a 'results=tex' (htm

Re: [Rd] R CMD check and error in an \Sexpr in an Rd file

2011-11-03 Thread Georgi Boshnakov
doch; Renaud Gaujoux; r-devel@r-project.org Subject: Re: [Rd] R CMD check and error in an \Sexpr in an Rd file Thank you Georgi. With the fix \long the output is indeed consistent with the documentation. I think my use of cat() worked by luck as its output should not have been rendered. Would a 'r

Re: [Rd] R CMD check and error in an \Sexpr in an Rd file

2011-11-03 Thread Duncan Murdoch
On 03/11/2011 10:21 AM, Renaud Gaujoux wrote: Thank you Georgi. With the fix \long the output is indeed consistent with the documentation. I think my use of cat() worked by luck as its output should not have been rendered. Would a 'results=tex' (html, text) be possible? or 'results=source' that

Re: [Rd] R CMD check and error in an \Sexpr in an Rd file

2011-11-03 Thread Renaud Gaujoux
Manchester email: georgi.boshna...@manchester.ac.uk Oxford Road Manchester M13 9PL UK ____________________ From: Duncan Murdoch [murdoch.dun...@gmail.com] Sent: 03 November 2011 12:19 To: Renaud Gaujoux Cc: Georgi Boshnakov; r-devel@r-project.org Subject: Re: [Rd] R CMD

Re: [Rd] R CMD check and error in an \Sexpr in an Rd file

2011-11-03 Thread Georgi Boshnakov
x: (+44) (0)161 306 3669 Alan Turing Building 1.125 The University of Manchester email: georgi.boshna...@manchester.ac.uk Oxford Road Manchester M13 9PL UK ________ From: Duncan Murdoch [murdoch.dun...@gmail.com] Sent: 03 November 2011 12:19 To: Renaud Gaujoux Cc: Georgi Boshnakov; r

Re: [Rd] R CMD check and error in an \Sexpr in an Rd file

2011-11-03 Thread Renaud Gaujoux
Although I use Latex quite a lot, I am not literate in Latex macro languages (e.g. the definition of AsIs). Is there (I am sure there is) a reason why a plain verbatim environment is not used in this case? On 03/11/2011 14:19, Duncan Murdoch wrote: On 11-11-03 7:58 AM, Renaud Gaujoux wrote:

Re: [Rd] R CMD check and error in an \Sexpr in an Rd file

2011-11-03 Thread Duncan Murdoch
On 11-11-03 7:58 AM, Renaud Gaujoux wrote: Georgi, I tried with paste() instead of cat(), but I then get the following in my PDF manual: [1] "line\nnext line" i.e. what would be printed in the R console, which is not what I want. I would like to get something like this in the Latex code: \begi

Re: [Rd] R CMD check and error in an \Sexpr in an Rd file

2011-11-03 Thread Renaud Gaujoux
Georgi, I tried with paste() instead of cat(), but I then get the following in my PDF manual: [1] "line\nnext line" i.e. what would be printed in the R console, which is not what I want. I would like to get something like this in the Latex code: \begin{verbatim} line next line \end{verbatim}

Re: [Rd] R CMD check and error in an \Sexpr in an Rd file

2011-11-01 Thread Georgi Boshnakov
: georgi.boshna...@manchester.ac.uk Oxford Road Manchester M13 9PL UK -- Message: 18 Date: Tue, 01 Nov 2011 12:22:30 +0200 From: Renaud Gaujoux To: Duncan Murdoch Cc: Renaud Gaujoux , "r-devel@r-project.org" Subject: Re: [Rd] R CMD check an

Re: [Rd] R CMD check and error in an \Sexpr in an Rd file

2011-11-01 Thread Renaud Gaujoux
Getting back to the \Sexpr issue, I tried with R-2.14.0 and I still see the following issues: - verbatim multiline is not shown properly on PDF (\Sexpr[results=verbatim, stage=render]{cat("line\nnext line")}) - verbatim with empty lines breaks PDF generation (\Sexpr[results=verbatim, stage=ren

Re: [Rd] R CMD check and error in an \Sexpr in an Rd file

2011-10-31 Thread Martin Maechler
Hi Kasper, On Mon, Oct 31, 2011 at 16:55, Kasper Daniel Hansen wrote: > > Martin, > > I am pretty sure (but I will probably be proven wrong) that when > r-announce was created it was stated that every email got sent to both > r-help and r-devel, Hmm, I don't believe you.  To the contrary, I'd ev

Re: [Rd] R CMD check and error in an \Sexpr in an Rd file

2011-10-31 Thread Kasper Daniel Hansen
Martin, I am pretty sure (but I will probably be proven wrong) that when r-announce was created it was stated that every email got sent to both r-help and r-devel, and I see I have received emails from r-announce in the past despite only being subscribed to r-devel and not r-help. For example, I c

Re: [Rd] R CMD check and error in an \Sexpr in an Rd file

2011-10-31 Thread Martin Maechler
> Thank you very much Duncan, Uwe and Peter. Sorry if I > missed the announcement, I follow more r-devel than > r-help, which I find a bit hard to quickly read. But please --- this concerns every one on R-devel --- if you do not subscribe to R-help, then do subscribe to R-announce

Re: [Rd] R CMD check and error in an \Sexpr in an Rd file

2011-10-31 Thread Renaud Gaujoux
Thank you very much Duncan, Uwe and Peter. Sorry if I missed the announcement, I follow more r-devel than r-help, which I find a bit hard to quickly read. Will try now on the 2.14.0. Renaud On 31/10/2011 14:28, Prof Brian Ripley wrote: On Mon, 31 Oct 2011, Renaud Gaujoux wrote: I do not see

Re: [Rd] R CMD check and error in an \Sexpr in an Rd file

2011-10-31 Thread peter dalgaard
On Oct 31, 2011, at 13:23 , Renaud Gaujoux wrote: > I do not see it on main CRAN home page. > Do you mean http://cran.r-project.org/src/base-prerelease/R-latest.tar.gz ? Links need to be updated. Have a look in http://cran.r-project.org/src/base/R-2 > > On 31/10/2011 14:19, Uwe Ligges wrote:

Re: [Rd] R CMD check and error in an \Sexpr in an Rd file

2011-10-31 Thread Prof Brian Ripley
On Mon, 31 Oct 2011, Renaud Gaujoux wrote: I do not see it on main CRAN home page. No, but see the announcement on R-announce this morning: https://stat.ethz.ch/pipermail/r-help/2011-October/294203.html Things which need human intervention can take some hours: the CRAN front page and binary

Re: [Rd] R CMD check and error in an \Sexpr in an Rd file

2011-10-31 Thread Uwe Ligges
On 31.10.2011 13:23, Renaud Gaujoux wrote: I do not see it on main CRAN home page. Do you mean http://cran.r-project.org/src/base-prerelease/R-latest.tar.gz ? Home page is not yet updated, see today's announcement by Peter Dalgaard who said it is at: http://cran.r-project.org/src/base/R-2/R

Re: [Rd] R CMD check and error in an \Sexpr in an Rd file

2011-10-31 Thread Renaud Gaujoux
I do not see it on main CRAN home page. Do you mean http://cran.r-project.org/src/base-prerelease/R-latest.tar.gz ? On 31/10/2011 14:19, Uwe Ligges wrote: On 31.10.2011 13:13, Renaud Gaujoux wrote: Thank you Duncan. I tried with: * using R version 2.14.0 RC (2011-10-24 r57417) * using platfo

Re: [Rd] R CMD check and error in an \Sexpr in an Rd file

2011-10-31 Thread Uwe Ligges
On 31.10.2011 13:13, Renaud Gaujoux wrote: Thank you Duncan. I tried with: * using R version 2.14.0 RC (2011-10-24 r57417) * using platform: x86_64-unknown-linux-gnu (64-bit) But I still get the errors for verbatim multiline and the strange error if an error occurs in \Sexpr. Is your patch in

Re: [Rd] R CMD check and error in an \Sexpr in an Rd file

2011-10-31 Thread Renaud Gaujoux
Thank you Duncan. I tried with: * using R version 2.14.0 RC (2011-10-24 r57417) * using platform: x86_64-unknown-linux-gnu (64-bit) But I still get the errors for verbatim multiline and the strange error if an error occurs in \Sexpr. Is your patch included in this version? I will try now with

Re: [Rd] R CMD check and error in an \Sexpr in an Rd file

2011-10-28 Thread Duncan Murdoch
On 28/10/2011 10:53 AM, Duncan Murdoch wrote: On 28/10/2011 10:49 AM, Renaud Gaujoux wrote: > Hi, > > another Rd related issue I encountered is that if an error occurs in an > \Sexpr in an Rd file, then on get the following error: > > * checking for portable compilation flags in Makevars ...

Re: [Rd] R CMD check and error in an \Sexpr in an Rd file

2011-10-28 Thread Duncan Murdoch
On 28/10/2011 10:49 AM, Renaud Gaujoux wrote: Hi, another Rd related issue I encountered is that if an error occurs in an \Sexpr in an Rd file, then on get the following error: * checking for portable compilation flags in Makevars ... OK * checking for portable use of $(BLAS_LIBS) and $(LAPACK_

[Rd] R CMD check and error in an \Sexpr in an Rd file

2011-10-28 Thread Renaud Gaujoux
Hi, another Rd related issue I encountered is that if an error occurs in an \Sexpr in an Rd file, then on get the following error: * checking for portable compilation flags in Makevars ... OK * checking for portable use of $(BLAS_LIBS) and $(LAPACK_LIBS) ... OK * checking examples ... ERROR Er