inst/Examples/quickBrownFox.R

txt <- "The quick brown fox"

require(grid)

{if(interactive())
  grid.newpage()
else
  pdf("Examples/quickBrownFox.pdf", width = 4, height=1.5)
}

pushViewport(viewport(gp = gpar(fontsize=18)))
grid.rect(width=unit(1, "strwidth", txt),
                      height=unit(1,   "strheight", txt), gp = gpar(lwd=2))
grid.text(txt)

Try the SoDA package in your browser

Any scripts or data that you put into this service are public.

SoDA documentation built on Oct. 28, 2020, 9:07 a.m.