build_vignettes: Build CRAN and gh-pages vignettes

Description Usage Arguments

Description

Build CRAN html redirect vignettes that are placed in inst/doc/ that redirect to the gh-pages branch of the github url provided in the DESCRIPTION file. This function is heavily inspired by devtools::build_vignettes().

Usage

1
2
3
4
5
6
build_vignettes(pkg = ".", dependencies = "VignetteBuilder",
  output_dir = file.path(as.package(pkg)$path, "_gh-pages"),
  extra_dirs = file.path(as.package(pkg)$path, "vignettes",
  c(lazy_widgets_dir(), assets_dir())),
  delete_files = file.path(as.package(pkg)$path, "vignettes",
  c(".build.timestamp")), include_vignette_source = FALSE)

Arguments

pkg

path to package. Provided directly to devtools::as.package()

dependencies

supplied directly to devtools::install_deps()

output_dir

directory where the fully contained vignette directory should be exported

extra_dirs

list of directories that will be copied to the gh-pages that are not vignettes and should not be shipped with the package. Files that should be exist in both gh-pages and the package should be contained in the vignettes/.install_extras file.

delete_files

list of files that should be deleted if they still exist when the function ends

include_vignette_source

boolean to determine if the vignettes should be copied to the destination directory. Default behavior is to NOT copy the original vignettes


packagedocs documentation built on May 2, 2019, 4:18 a.m.