I am aware .First is a function, that should have been apparent from by my use of .First(). I expect .First to be loaded from .RData as it indeed does exist (as I had confirmed before I posted to R-help). If, after starting R.app, I type .First() the function executes as expected, however I wish to have this occur without user input.
Thanks for your help. On 17/10/08 10:29 AM, "Prof Brian Ripley" <[EMAIL PROTECTED]> wrote: > On Fri, 17 Oct 2008, Jonsen, Ian wrote: > >> Hi, >> >> I am having problems using .First() with the Mac OS X gui version of R 2.7.2 >> (under OS X 10.5.5); .First is ignored on startup. .First() does work in the >> command-line version of R under Mac OS X but my specific task requires the >> gui version. I can find no reference to this issue in the Mac OS X FAQ or in >> other manuals, does anyone have a solution for this? > > > .First is a function: where are you expecting it to be loaded from? From > .Rprofile? From .RData? Both of those are preferentially taken from the > current working directory which is almost surely different for R.app (the > correct name for the 'gui version') and R (the command-line script). > > I very much doubt '.First is ignored on startup': it is much more likely > that it is not supplied (fire up R and type .First to see if it exists). > Or, what you have in it doesn't work in R.app .... > > BTW, R-sig-mac looks far more appropriate given your subject line. > >> >> Thanks, >> >> Ian >> >> >> -- >> Ian Jonsen >> >> Research Scientist >> Population Ecology Division >> Bedford Institute of Oceanography >> Fisheries and Oceans Canada >> Box 1006, 1 Challenger Drive >> Dartmouth, NS B2Y 4A2 CANADA >> >> 1.902.426.9760 >> [EMAIL PROTECTED] >> http://www.mathstat.dal.ca/~jonsen >> >> ______________________________________________ >> R-help@r-project.org mailing list >> https://stat.ethz.ch/mailman/listinfo/r-help >> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html >> and provide commented, minimal, self-contained, reproducible code. >> -- Ian Jonsen Research Scientist Population Ecology Division Bedford Institute of Oceanography Fisheries and Oceans Canada Box 1006, 1 Challenger Drive Dartmouth, NS B2Y 4A2 CANADA 1.902.426.9760 [EMAIL PROTECTED] http://www.mathstat.dal.ca/~jonsen ______________________________________________ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.