Unable to load widgetTools package with a new R installation

A R 2.4.0 instance was just installed with basic package and bioconductor 1.9. There is no error reported during compilation and installatino, but when we try to load “widgetTools” package, the following error occurs:

> library(“widgetTools”)
Error in fun(…) : The tcl/tk library is not available in your system.
Download/install the tcltk library from www.tcl.tk/software/tcltk/
Error: .onLoad failed in ‘loadNamespace’ for ‘widgetTools’
Error: package/namespace load failed for ‘widgetTools’

Continue reading

Create PNG/JPEG in R without real X11 server

Our development also encountered this problem. The remote server
runs Linux and does not have X11 running. The png() or jpeg() function
in R fails because the native device needs to open a X11 window. Hence
the situation is:

  1. Developer requires to using R script to create PNG/JPEG image on the fly.
  2. The remote server is not able to run in X11 mode due to its server nature.

Continue reading