[prev in list] [next in list] [prev in thread] [next in thread]
List: r-help
Subject: Re: [R] Sweave rendering of simple character
From: Duncan Murdoch <murdoch () stats ! uwo ! ca>
Date: 2007-08-31 23:34:01
Message-ID: 46D8A569.8070602 () stats ! uwo ! ca
[Download RAW message or body]
Deepayan Sarkar wrote:
> On 8/31/07, Ken Knoblauch <knoblauch@lyon.inserm.fr> wrote:
>
>> Hi,
>>
>> When I compile the construction
>>
>> \begin{Scode}{eval=FALSE}
>> ?HSP
>> \end{Scode}
>>
>> with Sweave and latex, it outputs in the pdf as,
>>
>> > `?` (HSP)
>>
>> which is not incorrect but a bit more formal than I wanted
>> for demonstrating the use of the help shortcut.
>> I would like the output to look like,
>>
>>
>>> ?HSP
>>>
>> but I can't seem to make this work.
>>
>
> I'm not familiar with the Scode environment, but
>
>
> <<eval=FALSE,keep.source=TRUE>>=
> ?HSP
> @
>
>
> does what you want.
>
Like Deepayan, I also use <<>>= notation, but this probably works
anywhere: put keep.source=TRUE in your \SweaveOpts{} at the start of
the file.
Duncan Murdoch
______________________________________________
R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic