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`.
tgve(
path = Sys.getenv("TEMP_path_ENV"),
browse = TRUE,
remote = FALSE,
url = "https://tgve.github.io/app/"
)
character directory of a current instance to browse. Defaults to `TEMP_PATH_ENV` environment variable.
boolean to decide whether to browse the instance or not.
boolean whether to run a remote instance of TGVE. If TRUE the above `path` and `browse` parameters will be ignored. Defaults to `FALSE`
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.
directory of the new instance if `path` is not provided.
# \donttest{
tgve()
#> attemping to browse: /tmp/Rtmp1i03Cg/tgve/index.html
#> NULL
# just get the path of the HTML
p = tgve(browse = FALSE)
file.exists(p)
#> [1] TRUE
# }