knitr::opts_chunk$set(echo = TRUE) library(dplyr) library(knitr) library(pmtables) dir <- "build"
tab <- stable(stdata())
longtab <- stable_long(stdata())
sttab <- st_new(stdata())
pttab <- pt_cat_long(pmt_first, span="STUDYf", cols = "SEXf")
brokentab <- tab brokentab[4] <- ""
st_as_image(tab, dir = dir, stem = "convert-stable")
st_as_image(longtab, dir = dir, stem = "convert-longtable", ntex = 2)
st_as_image(pttab, dir = dir, stem = "convert-pttab")
st_as_image(sttab, dir = dir, stem = "convert-sttab")
file <- st_aspng(tab, dir = dir, stem = "include-from-png") include_graphics(file)
st_as_image(tab, dir = dir, stem = "smaller-page", textwidth = 4)
st_as_image(tab, dir = dir, stem = "smaller-width", width = 0.5)
st_as_image(tab, dir = dir, stem = "bigger-border", border = "0.2cm 3cm")
st_as_image(tab, dir = dir, stem = "test-utopia", font = "utopia")
st_as_image(tab, dir = dir, stem = "test-roboto", font = "roboto")
st_as_image(brokentab)
st_image_show(st_aspng(brokentab))
date() sessionInfo()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.