Generate code to read a file
read_files(
path,
pdir = "",
type = "rmd",
to = "",
clipboard = TRUE,
radiant = FALSE
)Path to file. If empty, a file browser will be opened
Project dir
Generate code for _Report > Rmd_ ("rmd") or _Report > R_ ("r")
Name to use for object. If empty, will use file name to derive an object name
Return code to clipboard (not available on Linux)
Should returned code be formatted for use with other code generated by Radiant?
Return code to read a file at the specified path. Will open a file browser if no path is provided
if (interactive()) {
read_files(clipboard = FALSE)
}