R/api_documentation.R

Defines functions api_documentation

Documented in api_documentation

#' Browse API Documentation
#'
#' This function opens in a web browser the documentation of the Rust API.
#'
#' @return \code{NULL}, invisibly.
#' @export
#'
api_documentation <- function() {
  original_dir <- getwd()
  on.exit(setwd(original_dir))
  find_package_root()
  dir <- file.path("src", "rust", "roxido")
  setwd(dir)
  run("doc", "--open")
  invisible(NULL)
}

Try the cargo package in your browser

Any scripts or data that you put into this service are public.

cargo documentation built on July 26, 2023, 5:20 p.m.