libR seems to include a main() function.  Should it?

I'm hoping this simpler question will get more of a response than my
previous post about R a la carte :)

The evidence that libR includes main() is two-fold.  First, when I use
nm, I see the _main defined.  Second, when I run a program linked to
libR, the main R shell takes over, even though I have my own main (in
another library).

Looking at the sources, it seems the only possible contributor of
main() is src/main/Rmain.c.  I wouldn't expect this in the library,
and the documentation of the library (in "R Extensions") says you must
supply your own main.

I have tried to follow through the Makefile's, but the spot the
library is built has not jumped out at me.

I've encountered this with number of generations of R on a number of
platforms (Debian Linux and OS X).

Thanks.

______________________________________________
[EMAIL PROTECTED] mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html

Reply via email to