pdf_safely | R Documentation |
Wraps pdf
. If the file already exists,
it will not be overwritten. A message will be printed indicating whether the file
was successfully written or if it already existed.
pdf_safely(file = stop("'file' must be specified"), ...)
file |
Path/file name to for PDF file. Required. |
... |
Optional. Passed on to |
None.
## Not run:
pdf_safely(file = "graphs.pdf")
# ... code that generates plots ...
dev.off()
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.