Skip to content

Instantly share code, notes, and snippets.

@BenjaminWolfe
Created September 23, 2019 21:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save BenjaminWolfe/5f95b589af2cdf63bf7ed5006c4e6520 to your computer and use it in GitHub Desktop.
Save BenjaminWolfe/5f95b589af2cdf63bf7ed5006c4e6520 to your computer and use it in GitHub Desktop.
#' Eureka!
#'
#' Running `devtools::check()` on my Windows laptop,
#' I kept getting the following warning:
#'
#' ```
#' 'qpdf' is needed for checks on size reduction of PDFs
#' ```
#'
#' I downloaded the latest version of `qpdf` from SourceForge,
#' but I don't have admin rights to add it to my Windows PATH.
#' So instead I ran the following:
devtools::check(
env_vars = list(
PATH = paste(
Sys.getenv("PATH"),
"C:\\Users\\wolfebe1\\Software\\qpdf\\bin",
sep = ";"
)
)
)
#' Bam! Zero warnings!
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment