all_fonts <- system_fonts()
##-- Install a new font on the system --##
all_fonts_new <- system_fonts()
## all_fonts_new will be equal to all_fonts
reset_font_cache()
all_fonts_new <- system_fonts()
## all_fonts_new will now contain the new font
Run the code above in your browser using DataLab