Help with Error - No

I am not versed in using code, I simply need to use this program for my public health class to calculate some Data. I am trying to Run the RQDA program on my Max OS 10.14.6 Mojave. If you have nay suggestions on how to advance past the error below that would be greatly appreciated.

R version 3.6.3 (2020-02-29) -- "Holding the Windsock"
Copyright (C) 2020 The R Foundation for Statistical Computing
Platform: x86_64-apple-darwin15.6.0 (64-bit)

R is free software and comes with ABSOLUTELY NO WARRANTY.
You are welcome to redistribute it under certain conditions.
Type 'license()' or 'licence()' for distribution details.

Natural language support but running in an English locale

R is a collaborative project with many contributors.
Type 'contributors()' for more information and
'citation()' on how to cite R or R packages in publications.

Type 'demo()' for some demos, 'help()' for on-line help, or
'help.start()' for an HTML browser interface to help.
Type 'q()' to quit R.

Loading required package: RSQLite
Loading required package: gWidgetsRGtk2
Loading required package: RGtk2
Loading required package: gWidgets
Error: package ‘cairoDevice’ required by ‘gWidgetsRGtk2’ could not be found

Try running


and then rerunning library(RQDA).

Thanks, I did as instructed. This is the message i got on my end.

also installing the dependency ‘cairoDevice’

There is a binary version available but the source version is later:
binary source needs_compilation
cairoDevice 2.27 2.28 TRUE

Do you want to install from sources the package which needs compilation? (Yes/no/cancel) Yes
trying URL ''
Content type 'application/x-gzip' length 1328951 bytes (1.3 MB)

downloaded 1.3 MB

The downloaded binary packages are in
installing the source package ‘cairoDevice’

trying URL ''
Content type 'application/x-gzip' length 40711 bytes (39 KB)

downloaded 39 KB

  • installing source package ‘cairoDevice’ ...
    ** package ‘cairoDevice’ successfully unpacked and MD5 sums checked
    ** using staged installation
    checking for pkg-config... no
    ERROR: Cannot find pkg-config.
    ERROR: configuration failed for package ‘cairoDevice’
  • removing ‘/Library/Frameworks/R.framework/Versions/3.6/Resources/library/cairoDevice’
    Warning in install.packages :
    installation of package ‘cairoDevice’ had non-zero exit status

The downloaded source packages are in

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.

Maybe it is a problem with your graphics device at a system level, try installing/reinstalling xquartz