Page MenuHomePhabricator

stat1002: R library Cairo is missing, probably since server update
Closed, ResolvedPublic


This has gone unnoticed for quite a while:
some Wikistats charts generated with R are no longer updated.
Library probably got missing after server update.

#install.packages(c("Cairo"), repos="" )

Error in library(Cairo) : there is no package called 'Cairo'
Execution halted

Event Timeline

Restricted Application added a project: Analytics. · View Herald TranscriptJan 13 2017, 5:52 PM
Restricted Application added a subscriber: Aklapper. · View Herald Transcript

Hm, not sure! It totally just worked for me, and all the libcairo2 stuff is installed properly via puppet.

export http_proxy=http://webproxy.eqiad.wmnet:8080; export HTTPS_PROXY=http://webproxy.eqiad.wmnet:8080;
> install.packages(c("Cairo"), repos="" )
installing to /home/otto/R/x86_64-pc-linux-gnu-library/3.2/Cairo/libs
** R
** preparing package for lazy loading
** help
*** installing help indices
** building package indices
** testing if installed package can be loaded
* DONE (Cairo)
ezachte closed this task as Resolved.Jan 18 2017, 4:20 PM

Ah, there is a commented line in my R input file, which I overlooked (and apparently is needed just once)


After removing the hash I get: error

'lib = "/usr/local/lib/R/site-library"' is not writable'

but after copying your above example faithfully I get option to install at local folder and problem is gone