R/vignettes.R

Defines functions get_vignettes

Documented in get_vignettes

#' Access the vignettes
#'
#' This function allows to access to the vignettes despite them not being
#' installed properly. I had to do that as I want students to be able to install
#' the package quickly from github. They thus won't use a package bundle, nor I
#' want them to have to build the vignettes on their computers.
#'
#' @export
#'
#' @examples
#' get_vignettes()
#'
get_vignettes <- function() {
  utils::browseURL(paste0(find.package("LM2GLMM"), "/doc/")) ## for installed
  utils::browseURL(paste0(find.package("LM2GLMM"), "/inst/doc/")) ## for development
  return(invisible(NULL))
}
courtiol/LM2GLMM documentation built on July 3, 2022, 7:42 a.m.