Skip to content

R-alpha: thoughts on batch and fortran

2 messages · Jim Lindsey, Thomas Lumley

#
Batch:
  For me, batch in its present state is broken and useless. My primary
need for batch is to produce a final output file of a session after I
have worked out a sequence of procedures. I save my instructions in a
file that I can source, then run it in batch to have a copy of input
and output together. (If there was a log file (or dribble), this
problem would be solved.) At present, there are two problems with batch:
(1) I always run R interactively with saving the .RData shut off. This
is not possible in batch. Robert promised that it would be changed in
R0.14 but that never occurred so I am obliged to modify the C code of
each new version of R to avoid the problems of rereading .RData that I
described at that time.
(2) In any case, since 0.49, I cannot use batch because, as soon as
it hits a plot instruction, it stops with an error.

Fortran:
  I think that, if .Fortran is to exist, then the full fortran library
(except I/O) should be available, not just those functions required by
the basic R. I am thinking in particular of the complex functions that
I require for Kalman filtering in carma (soon to be released as a
dynamic library). Having the full f2c library linked in (-lf2c, when it
works under Linux - see the recent comments of my son, Patrick) does
not take more space unless it is actually used because it is dynamic.
carma will not work without these functions so how can I release
something that will not work for most users?
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
r-devel mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-devel-request@stat.math.ethz.ch
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
#
On Thu, 21 Aug 1997, Jim Lindsey wrote:
I don't think it's as simple as this.  If you can assume all users have
libf2c then your carma Makefile can link it with -lf2c.  This would be
ideal as I think some versions of Unix do still load libraries when the
program loads, whether or not they are actually used.

The real problem comes with machines that don't have f2c.  Most of our
machines here don't, for example, as we tend to use real Fortran when we
want it.  We currently don't assume that everyone has f2c as then we would
not need to distribute C versions of Fortran code. This would have the
added advantage that people who use real Fortran don't have to load
libf2c. 

If we don't assume that everyone has f2c then people distributing
libraries need to distribute all or part of libf2c. Source to libf2c is
readily available. 

I asked for opinions on this question a while back and didn't get any.


Thomas Lumley
------------------------------------------------------+------
Biostatistics		: "Never attribute to malice what  :
Uni of Washington	:  can be adequately explained by  :
Box 357232		:  incompetence" - Hanlon's Razor  :
Seattle WA 98195-7232	:				   :
------------------------------------------------------------

=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
r-devel mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-devel-request@stat.math.ethz.ch
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-