[R-pkg-devel] Vignettes from LaTeX files.
Duncan Murdoch
murdoch@dunc@n @end|ng |rom gm@||@com
Fri Mar 5 21:41:30 CET 2021
On 05/03/2021 2:40 p.m., Henrik Bengtsson wrote:
> Thank you. Glad to hear it's useful.
>
> This plain TeX/LaTeX vignette engine is implemented using base R. If
> someone is willing to drive the efforts, I think it's not too much
> work to refactor it and propose it for base R itself, where I think it
> belongs,
What is your reasoning for this? As a former R Core member, I would say
the reasons for something to be added to base R are:
- it's generally useful
- it doesn't have a lot of dependencies
- it doesn't work as well in a contributed package
The first two conditions seem to be met, but what's wrong with leaving
it in R.rsp? Would something in base R be simplified by having this there?
Duncan
e.g. in the 'utils' package where Sweave lives, or in 'tools'
> where tools::texi2dvi() lives. The vignette engine could be called
> 'utils::tex', e.g. %\VignetteEngine{utils::tex}. To me it meets the
> standards for reproducible documentation from source, although,
> obviously there's no 'tangle':d code output. If we want the latter,
> we're getting into literate programming, and we already have several
> vignette engines for that.
>
> Just a thought,
>
> Henrik
>
> On Thu, Mar 4, 2021 at 7:20 PM Rolf Turner <r.turner using auckland.ac.nz> wrote:
>>
>>
>>
>> I have now tried out building vignettes from plain LaTeX source,
>> following the admirably lucid instructions provided by Henrik Bengtsson
>> in:
>>
>> https://cran.r-project.org/web/packages/R.rsp/vignettes/R_packages-LaTeX_vignettes.pdf
>>
>> It all went unbelievably smoothly; no problems whatever.
>>
>> I am deeply grateful to Henrik.
>>
>> cheers,
>>
>> Rolf Turner
>>
>> --
>> Honorary Research Fellow
>> Department of Statistics
>> University of Auckland
>> Phone: +64-9-373-7599 ext. 88276
>>
>
> ______________________________________________
> R-package-devel using r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-package-devel
>
More information about the R-package-devel
mailing list