format_table_path | R Documentation |
Format the path to output file
format_table_path(file, dir = NULL, path.type = c("proj", "none", "raw"))
file |
the name of the output file. |
dir |
the directory where the output file is stored. |
path.type |
a character string indicating how the path to the output
file should be formatted; use |
Note that the default value for path.type
is "proj"
. This requires
that an RStudio project file is able to be found using
rprojroot::find_root()
with the rprojroot::is_rstudio_project criterion.
Once pmtables finds a root for a given working directory, it caches the value
for the remainder of the R session. An error will be generated if a table is
attempted to be saved using path.type="proj"
but an RStudio project file
was not able to be located.
A string with the formatted table file path.
## Not run:
format_table_path("foo.tex", "my/path")
format_table_path("foo.tex", "my/path", path.type = "proj")
format_table_path("foo.tx", "my/path", path.type = "raw")
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.