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 a Sweave document to texi2dvi, you
need to pass it through Sweave first.  So the two steps would be

Sweave("myfile.Rnw")
tools::texi2dvi("myfile.tex")

That's essentially what SweavePDF does, but it adds some extra bells and whistles, e.g. it can process multiple related files, it can go directly to a previewer,and it will set up forward and reverse searching from the previewer.

Duncan Murdoch


Thanks again,
Ralf

On Mon, Nov 15, 2010 at 6:42 AM, Duncan Murdoch
<murdoch.dun...@gmail.com>  wrote:
>  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/
>>
>>  (or did I miss something obvious, Duncan?)
>
>  No, I just didn't realize that it was hard to find.  But you can always
>  select R-forge as a repository, and then install.packages() will find it.
>
>  Duncan Murdoch
>
>  ______________________________________________
>  R-help@r-project.org 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.
>

______________________________________________
R-help@r-project.org 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 via email to