Learn R Programming

tgver (version 0.3.0)

tgve: Open static TGVE instance

Description

This is the main and most basic function to run an instance of TGVE without back-end. Compared to tgve_server, this function only uses internal functions to setup an instance then opens the entry HTML file. If a path of an instance is provided it opens it, otherwise creates an instance from a `tempdir`.

Usage

tgve(
  path = Sys.getenv("TEMP_path_ENV"),
  browse = TRUE,
  remote = FALSE,
  url = "https://tgve.github.io/app/"
)

Value

directory of the new instance if `path` is not provided.

Arguments

path

character directory of a current instance to browse. Defaults to `TEMP_PATH_ENV` environment variable.

browse

boolean to decide whether to browse the instance or not.

remote

boolean whether to run a remote instance of TGVE. If TRUE the above `path` and `browse` parameters will be ignored. Defaults to `FALSE`

url

if `remote` is true, then this will be used as the parameter to pass to internal function `openURL`. It defaults, for convenience, to `https://tgve.github.io/app/` instance.

Examples

Run this code
# \donttest{
tgve()
# just get the path of the HTML
p = tgve(browse = FALSE)
file.exists(p)
# }

Run the code above in your browser using DataLab