R Cairo installation without apt-get, sudo
you need the cario dev files
apt-get install libcairo2-dev
I also needed to install the following
apt-get install libxt-dev
Looks like you need cario-devel. See below for instructions for installation. At least doing so resolved my missing "cairo.h" issue. Hope this helps.
Follow these steps
sudo apt-get install libcairo2-dev
Once installed, you can execute following commands in R-Studio
install.packages('Cairo')library(Cairo)