Retrieves the path to the swagger index file.

swagger_index(version = "5")

Arguments

version

Major version number to be used for Swagger UI. Currently version "3" is compatible with OpenAPI spec 2.0, 3.0.

Examples


if (interactive()) {
  browseURL(swagger_index())
} else {
  print(paste("You can use swagger under: ", swagger_index()))
}
#> [1] "You can use swagger under:  /tmp/RtmprwMowA/temp_libpath1b93c4a96e63/swagger/dist5/index.html"