dir.img | R Documentation |
fn
.
Any folders in the path that do not exist are created.Concatenates a path, filename, and file extension into an output path, then opens a connection to the output path using function fn
.
Any folders in the path that do not exist are created.
dir.img(filename, fn, ext = "", path = ".", ..., append.date = T)
filename |
The output file name. |
fn |
Function that accepts x as its first argument and a file path as its second argument. |
ext |
The file extension. |
path |
The path to the output file. |
... |
Additional arguments to |
append.date |
Whether to write the output to a directory with today's date. |
The resulting value of fn
.
dir.img(pdf,"example","pdf",path="path/to")
plot(1:5,1:5)
dev.off()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.