Problem with cairo capabilities

I am trying to understand why capabilities() are not the same between R running in the console and RStudio despite that both use the same R binaries. Because I do not have cairo capability in RStudio, I can not change the fonts in graphics nor save them in PDF.

In RStudio:

enter image description here

I only have 1 R installation:

> Sys.getenv("R_HOME")
[1] "/usr/local/lib/R"

Any ideas why cairo is not supported in RStudio where it is if I run R in bash.

Regards,
Philippe

I fixed the problem by manually building R.