R-alpha: batch mode and optimization

Jim Lindsey (jlindsey@luc.ac.be)
Mon, 3 Jun 1996 09:50:31 +0200 (MET DST)

From: Jim Lindsey <jlindsey@luc.ac.be>
Message-Id: <9606030750.AA30090@alpha.luc.ac.be>
Subject: R-alpha: batch mode and optimization
To: r-testers@stat.math.ethz.ch
Date: Mon, 3 Jun 1996 09:50:31 +0200 (MET DST)

(1) Here is a rather strange bug in batch mode:
	y <- c(1.2345,2.6754)
	x <- c(4.3452,6.8776)
yields only one or two significant digits. Inserting a print(x) or an option()
between the second and third lines makes it work correctly.
(2) Batch mode always adds all new data to the .RData file. This is not good
for at least two reasons: (a) the environment is changing between 
successive calls and (b) you can end up with an enormous .RData file. I found
myself with several megabytes after a series of batch calls, and anomalous
results caused by previous calls.
(3) I have sent Ross the code for interfacing the Dennis and Schnabel nonlinear
optimization routines to R. It was an interesting exercise to call R functions
from Fortran...
(4) If anyone is interested, I have the R code to do all of the exercises in
my Introductory Statistics book (OUP, 1995).
r-testers mailing list -- To (un)subscribe, send
subscribe	or	unsubscribe
(in the "body", not the subject !)  To: r-testers-request@stat.math.ethz.ch