Learn R Programming

extrafont (version 0.13)

font_install: Install a font package and register it in the fonts database

Description

If the font package specified by fontpkg is not already installed, it will be downloaded from CRAN. The font package will then be registered in the fonts database.

Usage

font_install(fontpkg = NULL, prompt = TRUE)

Arguments

fontpkg
The name of an R package containing a font, e.g., "fontcm".
prompt
Ask user to install font from CRAN if not already installed

Examples

Run this code
font_install('fontcm')

Run the code above in your browser using DataLab