diff --git a/R/save_tt.R b/R/save_tt.R index 6ad403d7..49188114 100644 --- a/R/save_tt.R +++ b/R/save_tt.R @@ -12,7 +12,7 @@ #' @examples #' #' library(tinytable) -#' filename <- file.path(tempfile(), "table.tex") +#' filename <- file.path(tempdir(), "table.tex") #' tt(mtcars[1:4, 1:4]) |> save_tt(filename) #' save_tt <- function(x, output, overwrite = FALSE) { diff --git a/man/save_tt.Rd b/man/save_tt.Rd index f28aaf0f..623f127b 100644 --- a/man/save_tt.Rd +++ b/man/save_tt.Rd @@ -26,7 +26,7 @@ This function saves an object of class tinytable to a specified file and format, \examples{ library(tinytable) -filename <- file.path(tempfile(), "table.tex") +filename <- file.path(tempdir(), "table.tex") tt(mtcars[1:4, 1:4]) |> save_tt(filename) }