library(ggplot2)
p <- ggplot(
data = mtcars,
mapping = aes(
x = mpg,
y = mpg,
label = rownames(mtcars)
)
)
# font not loaded so error will be generated
try(p + geom_label_hdx())
try(load_source_sans_3())
try(p + geom_label_hdx())
Run the code above in your browser using DataLab