I want to incorporate a static PDF (created from LaTeX source separately from the R package) into an R package as a vignette. One approach I found was to use the LaTeX pdfpages package, which works fine locally and on some but is not present in all RHub environments. Is the use of pdfpages a viable approach? What is the set of LaTeX packages that can be assumed? I tried using R.rsp as an alternative but it did not work for me and I stopped trying it because I had an approach that appeared to work.
[R-pkg-devel] Should the LaTeX package pdfpages be available for use in vignettes?
4 messages · Greg Hunt, Dirk Eddelbuettel
On 23 April 2022 at 18:05, Greg Hunt wrote:
| I want to incorporate a static PDF (created from LaTeX source separately | from the R package) into an R package as a vignette. I do that in several vignettes via a zero-depends approach described by Mark in this blog post: https://www.markvanderloo.eu/yaRb/2019/01/11/add-a-static-pdf-vignette-to-an-r-package/ Tastes tastes great and has zero calories! Dirk
dirk.eddelbuettel.com | @eddelbuettel | edd at debian.org
Dirk, I'd like to use that approach, its what I have coded already and minimal dependencies are attractive, but it appears that the approach does not work on all platforms. I haven't finished checking, but so far using the RHub API:: - Solaris - vignette build skipped - check_on_linux: linux-x86_64-debian-gcc - succeeded - check_for_cran - failed - fedora clang devel - failed - windows-x86_64-devel - succeeded - debian-gcc-devel - succeeded - fedora-gcc-devel - failed - Windows Server 2022, R-devel, 64 bit - succeeded This inconsistency is where the question comes from and leads to the part of the question that amounts to "what can I assume about Latex packages?" Greg
On Sat, 23 Apr 2022 at 22:52, Dirk Eddelbuettel <edd at debian.org> wrote:
On 23 April 2022 at 18:05, Greg Hunt wrote: | I want to incorporate a static PDF (created from LaTeX source separately | from the R package) into an R package as a vignette. I do that in several vignettes via a zero-depends approach described by Mark in this blog post: https://www.markvanderloo.eu/yaRb/2019/01/11/add-a-static-pdf-vignette-to-an-r-package/ Tastes tastes great and has zero calories! Dirk -- dirk.eddelbuettel.com | @eddelbuettel | edd at debian.org
On 23 April 2022 at 23:02, Greg Hunt wrote:
| I'd like to use that approach, its what I have coded already and minimal | dependencies are attractive, but it appears that the approach does not work | on all platforms. I haven't finished checking, but so far using the RHub | API:: I see. Well that is largely irrelevant (at least to me) as it *will* work at CRAN where the build environment is consistent for packages as described in Writing R Extensions. And I generally skip vignettes in package checks in CI. For RHub bug reports you need to contact RHub admins. This mailing list sort-of covers it lacking other obvious venues but it is otherwise about getting package to CRAN standards. Dirk
dirk.eddelbuettel.com | @eddelbuettel | edd at debian.org