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 ______________________________________________ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel