R/path.R

Defines functions set_path path

Documented in path

#' Show Exchange Path of TV
#'
#' The main R session uses this path to exchange information with the TV session.
#'
#' @keywords internal
path <- function(...) {
  tv_path <- .tv_env$tv_path
  file.path(tv_path, ...)
}

set_path <- function(path) {
  .tv_env$tv_path <- path
  invisible(path)
}
cynkra/tv documentation built on April 18, 2024, 5:46 p.m.