blankPDF | R Documentation |
Sometimes you need a placeholder. If you do, this is it!
blankPDF(
file,
height = 1,
width = 3.5,
messg = "Your Logo Could Be Here",
pointsize = 12,
col = "gray50"
)
file |
A file name for output |
height |
inches |
width |
inches |
messg |
Default is a reminder statement, but set "" if you don't want it. |
pointsize |
Default is 12 |
col |
Color for text in |
NULL is returned if file was created. Otherwise error is reported.
Paul Johnson
tdir <- tempdir()
dir.create(file.path(tdir, "blanks"), recursive = TRUE)
fn1 <- file.path(tdir, "blanks", "blank1.pdf")
blankPDF(file = fn1, messg = "Do you want a message?")
## Please inspect
if(interactive()) browseURL(fn1)
fn2 <- file.path(tdir, "blanks", "blank2.pdf")
blankPDF(file = fn2, height = 2, width = 3, messg = "")
if(interactive()) browseURL(fn2)
## delete test directory
unlink(file.path(tdir, "blanks"), recursive = TRUE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.