Quantcast

Sweave: The opposite of tangle

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Sweave: The opposite of tangle

stefan.duke@gmail.com
Hi,
I am using Sweave to write an article. If I want to convert the *.rnw
to a *.tex file I have to run Sweave which might take a long time. Is
there away to get a tex-file as result without (evaluating) the
R-chunks, i.e. the opposite of tangle (that just gives R-chunk).
Thanks,
Stefan

______________________________________________
[hidden email] 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.
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: Sweave: The opposite of tangle

Kevin E. Thorpe
[hidden email] wrote:
> Hi,
> I am using Sweave to write an article. If I want to convert the *.rnw
> to a *.tex file I have to run Sweave which might take a long time. Is
> there away to get a tex-file as result without (evaluating) the
> R-chunks, i.e. the opposite of tangle (that just gives R-chunk).
> Thanks,
> Stefan
>

This is untested, but does Sweave("file.rnw", eval=FASLE) do what you want?

--
Kevin E. Thorpe
Biostatistician/Trialist, Knowledge Translation Program
Assistant Professor, Dalla Lana School of Public Health
University of Toronto
email: [hidden email]  Tel: 416.864.5776  Fax: 416.864.3016

______________________________________________
[hidden email] 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.
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: Sweave: The opposite of tangle

Kevin E. Thorpe
Kevin E. Thorpe wrote:

> [hidden email] wrote:
>> Hi,
>> I am using Sweave to write an article. If I want to convert the *.rnw
>> to a *.tex file I have to run Sweave which might take a long time. Is
>> there away to get a tex-file as result without (evaluating) the
>> R-chunks, i.e. the opposite of tangle (that just gives R-chunk).
>> Thanks,
>> Stefan
>>
>
> This is untested, but does Sweave("file.rnw", eval=FASLE) do what you want?
>

That should be FALSE above.  Don't post before coffee.
h

--
Kevin E. Thorpe
Biostatistician/Trialist, Knowledge Translation Program
Assistant Professor, Dalla Lana School of Public Health
University of Toronto
email: [hidden email]  Tel: 416.864.5776  Fax: 416.864.3016

______________________________________________
[hidden email] 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.
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: Sweave: The opposite of tangle

stefan.duke@gmail.com
Thanks! That was exactly what I was looking for.
Best,
Stefan


On Fri, Jun 25, 2010 at 12:37 PM, Kevin E. Thorpe
<[hidden email]> wrote:

> Kevin E. Thorpe wrote:
>>
>> [hidden email] wrote:
>>>
>>> Hi,
>>> I am using Sweave to write an article. If I want to convert the *.rnw
>>> to a *.tex file I have to run Sweave which might take a long time. Is
>>> there away to get a tex-file as result without (evaluating) the
>>> R-chunks, i.e. the opposite of tangle (that just gives R-chunk).
>>> Thanks,
>>> Stefan
>>>
>>
>> This is untested, but does Sweave("file.rnw", eval=FASLE) do what you
>> want?
>>
>
> That should be FALSE above.  Don't post before coffee.
> h
>
> --
> Kevin E. Thorpe
> Biostatistician/Trialist, Knowledge Translation Program
> Assistant Professor, Dalla Lana School of Public Health
> University of Toronto
> email: [hidden email]  Tel: 416.864.5776  Fax: 416.864.3016
>

______________________________________________
[hidden email] 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.
Loading...