knitr::opts_chunk$set( collapse = TRUE, comment = "#>", fig.path = "README-" )
flag-icons for R
You can install flagr from github with:
# install.packages("devtools") devtools::install_github("JohnCoene/flagr")
library(flagr) flagr("be") # belgian flag flagr("gr") # greek flag flagr("us", width = 100, height = 60) # us flag flagr("ch", squared = TRUE) # swiss flag squared
Flag icons are SVG, leading to large /inst
directory.
R CMD check results 0 errors | 0 warnings | 1 note checking installed package size ... NOTE installed size is 7.9Mb sub-directories of 1Mb or more: htmlwidgets 7.8Mb
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.