save_tt | R Documentation |
This function saves an object of class tinytable to a specified file and format, with an option to overwrite existing files.
save_tt(x, output, overwrite = FALSE)
x |
The tinytable object to be saved. |
output |
String or file path.
|
overwrite |
A logical value indicating whether to overwrite an existing file. |
A string with the table when output
is a format, and the file path when output
is a valid path.
library(tinytable)
x <- mtcars[1:4, 1:5]
fn <- file.path(tempdir(), "test.html")
tt(x) |> save_tt(fn, overwrite = TRUE)
library(tinytable)
filename <- file.path(tempdir(), "table.tex")
tt(mtcars[1:4, 1:4]) |> save_tt(filename)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.