Dear Mark, You rely on external packages like rcmdcheck and devtools, so if you insist on using those, you should contact the package authors.
The workflow as described in the manual : https://cran.r-project.org/doc/manuals/R-exts.html#Checking-and-building-packages is as follows : R CMD build pkg --compact-vignettes R CMD check pkg_x.y.z.tar.gz --as-cran In a basic Travis script this can be used as: script: - R CMD build . --compact-vignettes=gs+qpdf - R CMD check *tar.gz --as-cran You find more information here : https://towardsdatascience.com/travis-ci-for-r-advanced-guide-719cb2d9e0e5 Cheers Joris -- Joris Meys Statistical consultant Department of Data Analysis and Mathematical Modelling Ghent University Coupure Links 653, B-9000 Gent (Belgium) ------------------------------ Disclaimer : http://helpdesk.ugent.be/e-maildisclaimer.php ________________________________________ From: R-package-devel <r-package-devel-boun...@r-project.org> on behalf of R. Mark Sharp <rmsh...@me.com> Sent: Thursday, November 21, 2019 5:08 PM To: R Package Devel Subject: [R-pkg-devel] compression of vignettes I have been unsuccessful with all of the following attempts to have compression of dynamically generated vignettes during the build on travis-ci and within RStudio. Help is appreciated. I have tried the following travis-ci YAML to have vignettes compressed. script: - R -e 'r <- rcmdcheck::rcmdcheck(".", args = c('--no-manual'), build_args = c('--compact-vignettes=both'); devtools::test(); quit(save = "no", status = if (length(c(r$errors, r$warnings)) > 0) { 1 } else { 0 }, runLast = FALSE)' script: - R -e 'r <- rcmdcheck::rcmdcheck(".", args = c('--no-manual', '--compact-vignettes=gs+qpdf'); devtools::test(); quit(save = "no", status = if (length(c(r$errors, r$warnings)) > 0) { 1 } else { 0 }, runLast = FALSE)' script: - R -e 'r <- rcmdcheck::rcmdcheck(".", args = c('--no-manual', '--compact-vignettes="gs+qpdf"'); devtools::test(); quit(save = "no", status = if (length(c(r$errors, r$warnings)) > 0) { 1 } else { 0 }, runLast = FALSE)' I have tried the following build arguments in RStudio --as-cran --compact-vignettes=gs+qpdf --as-cran --compact-vignettes=both R. Mark Sharp, Ph.D. Data Scientist and Biomedical Statistical Consultant 7526 Meadow Green St. San Antonio, TX 78251 mobile: 210-218-2868 rmsh...@me.com ______________________________________________ R-package-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-package-devel ______________________________________________ R-package-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-package-devel