Install R cairo package after installing cairo via conda
<p>I'm trying to install the Cairo package for R. I don't have admin rights for the server so I installed Cairo via the conda package manager <code>conda install -c https://conda.anaconda.org/anaconda cairo</code>. I have compiled R from source in my home directory. 
I have tried to add the following to my bashrc:</p>

<pre><code>export CAIRO_LIBS=-L${HOME}/miniconda/pkgs/cairo-1.12.18-6/lib/cairo/
export CAIRO_CFLAGS=-I${HOME}/miniconda/pkgs/cairo-1.12.18-6/include/cairo/
</code></pre>

<p>When I try <code>install.packages('Cairo')</code>, I get the following error:</p>

<pre><code>configure: CAIRO_CFLAGS=-I/N/u/jfreimer/Mason/miniconda/pkgs/cairo-1.12.18-6/include/cairo/
checking if R was compiled with the RConn patch... no
checking cairo.h usability... yes
checking cairo.h presence... yes
checking for cairo.h... yes
checking for PNG support in Cairo... yes
checking for ATS font support in Cairo... no
configure: CAIRO_LIBS=-L/N/u/jfreimer/Mason/miniconda/pkgs/cairo-1.12.18-6/lib/cairo/
checking for library containing deflate... -lz
checking whether Cairo programs can be compiled... configure: error: Cannot compile a simple Cairo program. See config.log for details.
ERROR: configuration failed for package ‘Cairo’
* removing ‘/N/home/j/f/jfreimer/Mason/R/lib64/R/library/Cairo’
</code></pre>

<p>Anaconda has an R package of cairo (<a href="https://anaconda.org/r/r-cairo" rel="nofollow">https://anaconda.org/r/r-cairo</a>) so all of the dependencies that I need should be installable via conda. However, I am trying to use the standalone R that I installed and not conda R as I have had trouble with other packages in conda R. I was wondering if anyone has any suggestions </p>