Nothing
#' Access or modify the active GRASS doc version
#'
#' This set of function can be used to get the version used by the package or
#' to set the desired version.
#'
#' @param version [Double] The desired version of GRASS (7.8, 7.9, etc...)
#'
#' @return
#' The function `man_get_version` will return the currently set version, and
#' `man_set_version` will do so invisibly.
#'
#' @examples
#' man_set_version(7.9)
#' man_get_version()
#'
#' @export
man_set_version <- function(version=7.8){
if(version %% 1 == 0){
cli::cli_alert_danger("Version must be of the form: x.x (i.g 7.8)")
} else {
options(grass.version=version)
cli::cli_alert_info(paste0("GRASS GIS documentation - set to GRASS version ",
cli::col_green(.Options$grass.version)))
}
return(invisible(man_get_version()))
}
#' @export
#' @rdname man_set_version
man_get_version <- function(){
return(.Options$grass.version)
}
Any scripts or data that you put into this service are public.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.