inSileco / inSileco.github.io

:globe_with_meridians: Our blog powered by blogdown
https://blog.insileco.io/
GNU General Public License v3.0
8 stars 1 forks source link

Adjust function names in posts using `showtext` package #28

Closed david-beauchesne closed 6 years ago

david-beauchesne commented 6 years ago

In the latest version of the showtext package, the functions have transitioned from using _ to . in functions, e.g. add.font.google(). We should adjust the posts to reflect this change.

KevCaz commented 6 years ago

@david-beauchesne I think it is the other way around...

R>> font.add(family = 'Academicons', regular = 'academicons.ttf')
'font.add()' is now renamed to 'font_add()'
The old version still works, but consider using the new function in future code