The R Installation and Administration Manual discusses X11 issues in section C.1.
The manual states that X11 is the graphics device on Linux, and that:
"The ‘modern’ version of the ‘X11()’ device is based on ‘cairo’ graphics..."
The manual also describes Building the cairo devices in section 3.1.4, and that the instruction for doing this is:
make cairodevices
The full paragraph from the manual:
The devices based on cairographics (svg, cairo_pdf, cairo_ps and the type = "cairo" versions of png, jpeg, tiff and bmp) are implemented in a separate DLL winCairo.dll which is loaded when one of these devices is first used. It is not built by default, and needs to be built (after make all) by make cairodevices.
To enable the building of these devices you need to install the static cairographics libraries built by Simon Urbanek at https://www.rforge.net/Cairo/files/cairo-current-win.tar.gz. Set the macro ‘CAIRO_HOME’ in MkRules.local. (Note that this tarball unpacks with a top-level directory src/: ‘CAIRO_HOME’ needs to include that directory in its path.)
I hope these instructions help to resolve your problem.