format_all_paths | R Documentation |
As an alternative to formatting paths one at a a time, this function allows all file paths in the active document to be formatted at once. By default, all here() and file.path() calls are targeted, but these can be removed and other user-defined targets added. The function outputs some information on the file being formatted and number of times each target function call was found.
format_all_paths(fns = c("here", "file.path"), message = TRUE)
fns |
Target function calls to format. Defaults are "here" and "file.path" |
message |
Logical, specifying whether or not to print information about the cleaning process (file being formatted and number of times each target function call was found) to the console |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.