[Rd] Clash between 'Cairo' and 'EBImage' packages on Windows

Henrik Bengtsson hb at stat.berkeley.edu
Sat Jul 19 20:26:03 CEST 2008


on Windows XP Pro with R version 2.7.1 Patched (2008-06-27 r46012) the
'Cairo' and the 'EBImage' packages does not play well together.

Loading EBImage before Cairo cause the following to happen:

# Rterm --vanilla
> library(EBImage);
> library(Cairo)
Error in inDL(x, as.logical(local), as.logical(now), ...) :
  unable to load shared library 'C:/PROGRA~1/R/R-2.7.1pat/library/Cairo/libs/Cai
  LoadLibrary failure:  The specified procedure could not be found.

Error : .onLoad failed in 'loadNamespace' for 'Cairo'
Error: package/namespace load failed for 'Cairo'

with a dialog titled 'Rterm.exe - Entry Point Not Found' saying 'The
procedure entry point cairo_pdf_surface_create could not be located in
the dynamic link library libcairo-2.dll'.

Loading the packages in the reverse order works, but the Rterm seems
unstable, e.g. calling q() immediately after will exit the R session
without questions:

# Rterm --vanilla
> library(Cairo)
> library(EBImage)
> q()
[Immediately back to the command line].

I cannot reproduce the problem on R v2.7.1 on Ubuntu Hardy.

> sessionInfo()
R version 2.7.1 Patched (2008-06-27 r46012)

LC_COLLATE=English_United States.1252;LC_CTYPE=English_United States.1252;LC_MON
ETARY=English_United States.1252;LC_NUMERIC=C;LC_TIME=English_United States.1252

attached base packages:
[1] stats     graphics  grDevices utils     datasets  methods   base

other attached packages:
[1] EBImage_2.4.0 Cairo_1.4-2



More information about the R-devel mailing list