R 3.4.4r For Mac
I'm trying to use the dev version of shiny in hope of resolving an issue I'm having but I'm having problems installing the dev version of httpuv. Also for some reason it's using clang++ even though my ~/.R/Makevars contains: VER=. Question 890450: Please help me solve this equation.4r-4 When r=3 Answer by algebrahouse.com(1642) ( Show Source ): You can put this solution on YOUR website!
> install.packages('RGtk2') Package which is only available in source form, and may need compilation of C/C++/Fortran: ‘RGtk2’ Do you want to attempt to install these from sources? Y/n: y installing the source package ‘RGtk2’ trying URL 'Content type 'application/x-gzip' length 2792938 bytes (2.7 MB) ================================================== downloaded 2.7 MB * installing *source* package ‘RGtk2’. ** package ‘RGtk2’ successfully unpacked and MD5 sums checked checking for pkg-config. /usr/local/bin/pkg-config checking pkg-config is at least version 0.9.0. Yes checking for INTROSPECTION. Ddj sr driver for mac. No checking for GTK.
No configure: error: GTK version 2.8.0 required ERROR: configuration failed for package ‘RGtk2’ * removing ‘/Library/Frameworks/R.framework/Versions/3.4/Resources/library/RGtk2’ Warning in install.packages: installation of package ‘RGtk2’ had non-zero exit status The downloaded source packages are in ‘/private/var/folders/m4/l02774c51vx71qt6_wdq59lw0000gn/T/Rtmpa7sxIS/downloaded_packages’ > I am running macOS Sierra (Version 10.12.4) and R version 3.4.0. I assume you have R and RStudio installed already. If not, install it. Then do the following. 1) Install 2) Install 3) Download and 4) From terminal run R CMD INSTALL ~/Downloads/cairoDevice_2.24.tar.gz 5) Install Homebrew for Mac. 6) From terminal type the following commands: brew uninstall cairo --ignore-dependencies brew install --with-x11 cairo 7) Type brew edit gtk+ in terminal and scroll to def install section and edit the reference with quartz to (press i to edit and to save and exit, press escape key and type colon (shift+ semi colon key).

Then type wq.) '--with-gdktarget=x11', '--enable-x11-backend' 8) Then type brew install --build-from-source --verbose gtk+ in the same terminal window. 9) Then type export PKG_CONFIG_PATH=/usr/local/lib/pkgconfig:/usr/local/lib/pkgconfig/gtk+-2.0.pc:/opt/X11/lib/pkgconfig 10) Type R CMD INSTALL ~/Downloads/RGtk2_2.20.33.tar.gz from the same terminal window. Hopefully it will work for you. When I tried to install RGtk2 this comes up. I checked which gcc and it shows a c compiler. Why does it say that C compiler is not working?
$ R CMD INSTALL ~/Downloads/RGtk2_2.20.33.tar.gz * installing to library ‘/Library/Frameworks/R.framework/Versions/3.4/Resources/library’ * installing *source* package ‘RGtk2’. ** package ‘RGtk2’ successfully unpacked and MD5 sums checked checking for pkg-config.