Notice that the yaml at the beginning of this file includes a latex_engine which will be used when creating a pdf document.
It also includes a mainfont setting called DejaVu Sans. This is not the only font that will
work to produce the spark graphs. However, it is a free font available through the
extrafont
package. If you have not installed extrafont you should do so using the normal
package installation procedures. You should then make sure that the desired font is installed.
The code below will not run automatically when you knit, instead you should run it in the console.
install.packages(c("extrafont")) font_install("DejaVu Sans")
If there are any difficulties please read the extrafont documentation.
library(knitr) library(skimr)
Try knitting this document to PDF, HTML, doc or any other format you wish to try. You will notice that there are slight differences between them. To understand the impact of the engine and font choices you should experiment with different options.
The first example shows what printing the basic skim function looks like. You can try knitting to different formats to see how it changes.
skim(iris)
It is possible that the histograms will not print in all of the formats.
Unfortunately this is outside the control of the skimr team because it relates to the operating system you are using, fonts installed, and locale.
Any scripts or data that you put into this service are public.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.