"
TODO Description
Author
Affiliation

Building Stories with Data

Published

October 26, 2022

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:

: 

# 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()
systemfonts::system_fonts() %>% View("fonts")

# 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
systemfonts::register_font(
  name = "Poppins", 
  plain = "fonts/Poppins-Bold.ttf"
)

# The new font is now ready to use!

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/.