From Mark.Bravington at csiro.au  Wed Apr  7 01:23:34 2004
From: Mark.Bravington at csiro.au (Mark.Bravington@csiro.au)
Date: Wed Apr  7 01:23:42 2004
Subject: [Rd] .First and base reorganization in  R 1.9.0
Message-ID: <C4178DC99E08604EA5E2BDB989F093800240A235@extas2-hba.tas.csiro.au>

I noticed that, in R1.9.0 beta where the old 'base' package has been split into 4, '.First' gets executed with just the new 'base' loaded, before 'stats' 'utils' and 'graphics' are available. The NEWS file does warn that this will be the case for .Rprofile, but doesn't mention .First.

Is this actually the intended behaviour where .First is concerned? I've always found it useful to think of the auto-executing property of .First as mimicking what would happen if you just typed .First() once the prompt was available, but this is no longer the case. [And if people really want code that executes without stats etc., they can always use .Rprofile.]

Obviously it can be worked round by including library( utils) etc. in .First, but it does create some version issues [well, my packages would need changing, anyway :), whereas apart from this they work under both 1.8.1 and 1.9.0.].

Just thought I'd check

Mark

*******************************

Mark Bravington
CSIRO (CMIS)
PO Box 1538
Castray Esplanade
Hobart
TAS 7001

phone (61) 3 6232 5118
fax (61) 3 6232 5012
Mark.Bravington@csiro.au


[Rd] .First and base reorganization in R 1.9.0
Mark.Bravington@csiro.au