R: added cairo dependency

Closes #587, closes #613.