R/import_pokefont.R

Defines functions import_pokefont

Documented in import_pokefont

#'Import Pokefonts
#'
#'Use this function to import the Pokemon Fonts to R.
#'@export
import_pokefont <- function() {

  poke_font_dir <- system.file("fonts", package="Rokemon")

  suppressWarnings(suppressMessages(extrafont::font_import(poke_font_dir, prompt=FALSE)))

  message(
    sprintf(
      "You might need to install the font on your system too.\n\nYou can find them in [%s]",
      poke_font_dir )
  )

}
schochastics/Rokemon documentation built on Jan. 16, 2022, 2:52 a.m.