knitr::opts_knit$set(root.dir = rprojroot::find_rstudio_root_file()) # Set WD to Root here::i_am("dev/path.Rmd") library(fs) library(here)
fs::path_package("thaipdf", "pre-tex") system.file("pre-tex", package ="thaipdf" ) fs::path_package("thaipdf", "templates") system.file("templates", package ="thaipdf" )
Error if not exist
fs::path_package("thaipdf", "foo") system.file("foo", package ="thaipdf" )
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.