knitr::opts_knit$set(root.dir = rprojroot::find_rstudio_root_file()) # Set WD to Root here::i_am("dev/tmp-file-test.Rmd") library(here) library(purrr) library(dplyr) library(fs)
devtools::load_all() fs::path_package("thaipdf", "inst", "templates", "template-thai-preamble.tex") %>% fs::file_size()
Not much, probably fine
Q: Question temporary file exist for how long???
A: Until Restart R
mk_tmp <- function() { tmp <- tempfile("test-", fileext = ".tex") write.csv(head(iris), tmp) tmp } mk_tmp()
tmp_chr <- character(5) for (i in 1:5) { tmp_chr[i] <- mk_tmp() } tmp_chr
fs::file_show("/var/folders/ry/z9m8k9cs4594pv3458npy1zw0000gn/T//RtmpkYObJn")
fs::file_size(tmp_chr[1])
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.