R/open_doc.R

Defines functions open_doc

Documented in open_doc

#' Open documentation site of the package
#'
#' @importFrom utils browseURL
#'
#' @export
open_doc <- function() {
  guide_path <- system.file('docs/index.html', package = 'zazou')

  if (guide_path == "") stop('There is no pkgdown site in ', 'docs/index.html')

  browseURL(paste0('file://', guide_path))
}
abichat/zazou documentation built on Sept. 8, 2021, 6:53 a.m.