:
# Once inside the project, install {systemfonts}
install.packages("systemfonts")
# Check which fonts are already there by using
:: systemfonts()
systemfonts
# To make that easier to look at, use View()
::system_fonts() %>% View("fonts")
systemfonts
# To add a new font, upload it to the project
# using the Upload button in the Files tab,
# then register the font, pointing to its path
::register_font(
systemfontsname = "Poppins",
plain = "fonts/Poppins-Bold.ttf"
)
# The new font is now ready to use!
TODO Title
TODO Description
Today I’ve been exploring RStudio Cloud in preparation for an #rstats #dataviz workshop , and I’m really impressed with how easy it is to use!
I wasn’t sure how to get the fonts I wanted working but turns out it comes with many (good!) fonts pre-loaded and it’s easy to add more:
Oops, typo alert. The call in the image should be systemfonts::system_fonts()
Reuse
Citation
For attribution, please cite this work as:
Thompson, Cara. 2022. “Setting up Fonts on RStudio Cloud.”
October 26, 2022. https://www.cararthompson.com/posts/2022-10-26-today-ive-been-exploring-r-studio/.