Skip to content
Back to formatted view

Raw Message

Message-ID: <20080303145552.GA19683@eddelbuettel.com>
Date: 2008-03-03T14:55:52Z
From: Dirk Eddelbuettel
Subject: Script to start Rcmdr
In-Reply-To: <200803031013.53488.chrysopa@gmail.com>

On Mon, Mar 03, 2008 at 10:13:53AM -0300, Ronaldo Reis Junior wrote:
> Hi,
> 
> anybody know any way to make a bash script to start Rcmdr directly widthout 
> need to open R and execute library(Rcmdr)?
> 
> I try to make this using R CMD BATCH somethink, but dont find the way.

$ r -lRcmdr -e'while(TRUE) Sys.sleep(1)'

where r is the binary from our littler tool.  This loads the Rmcdr
package with the -l | --library switch abnd then evals a simple loop
to keep running.  You need to kill that loop with Crtrl-c at the end.

Dirk

-- 
Three out of two people have difficulties with fractions.