[R-pkg-devel] Skip running vignette code with package submission

Iñaki Úcar i.ucar86 at gmail.com
Mon Sep 11 17:05:45 CEST 2017


2017-09-11 16:42 GMT+02:00 Pamela Russell <pamela.russell.ucdenver at gmail.com>:
> Hi,
> I'm wondering if it's possible to have the CRAN maintainers skip running
> the code in my vignettes along with R CMD CHECK. I've developed a package
> that wraps a REST API for which authentication is required. My code fails
> with a helpful error message if the user does not have a valid API key
> installed locally.

You can conditionally disable your chunks with
knitr::opts_chunk$set(eval = FALSE), as in

This method is further developed in this R Journal article:


More information about the R-package-devel mailing list