Skip to content
Prev 138279 / 398506 Next

Script to start Rcmdr

On Mon, 3 Mar 2008, Ronaldo Reis Junior wrote:

            
For some reason, Rcmdr requires an interactive session:

gannet% Rscript -e 'library(Rcmdr)'
Loading required package: tcltk
Loading Tcl/Tk interface ... done
The Commander GUI is launched only in interactive sessions

However, I was able to do

gannet% cat foo
#!/bin/sh
R_DEFAULT_PACKAGES=Rcmdr R

Probably you need R in interactive mode to respond to the Tcl/Tk callbacks 
(and not just terminate when no input is found).