From simon.urbanek at r-project.org  Fri Mar  7 17:33:12 2008
From: simon.urbanek at r-project.org (Simon Urbanek)
Date: Fri, 7 Mar 2008 11:33:12 -0500
Subject: [Rd] Build options for R
In-Reply-To: <47D16B4B.3030803@bios.unc.edu>
References: <47D16B4B.3030803@bios.unc.edu>
Message-ID: <0AE8E805-0318-46AA-8954-DB207B58BC67@r-project.org>


On Mar 7, 2008, at 11:20 AM, Scott Zentz wrote:

> Hello Everyone,
>
> I had posted the message below to the r-help listserv...
>
>> Recently I was given a Java servlet based web calculator that will
>> call R (libR.so to be exact) but I am having trouble trying to  
>> disable R
>> from requiring --save, --no-save or --vanilla... Is there any way to
>> build R on linux and disable R from asking --save, --no-save or
> --vanilla??
>
> I received this reply from someone...
>
>> If you are calling libR.so, it is an option set when you initialize  
>> R.
>> See Rf_initEmbeddedR in 'Writing R Extensions' and the examples in  
>> the
> tests/Embedded directory in the sources.
>> BTW, discussion of embedded R is definitely off topic for R-help: use
> the R-devel list.
>
> Now my question is. Is there any way to modify the source so that I  
> can
> force R to use the --no-save option? If so, would someone be kind  
> enough
> to show me what code I would modify to force the --no-save option?
>

Simply specify it:

char *args[]={ "R", "--no-save", 0 };
Rf_initialize_R(2, args);

Cheers,
S



[Rd] Build options for R
Simon Urbanek