From ripley at stats.ox.ac.uk  Wed Mar  5 07:47:11 2003
From: ripley at stats.ox.ac.uk (ripley@stats.ox.ac.uk)
Date: Wed Mar  5 08:47:24 2003
Subject: [Rd]  order of package loading and printing messages to console
 on startup
In-Reply-To: <Pine.GSO.4.10.10303041737250.21740-100000@quetelet.stat.ucla.edu>
Message-ID: <Pine.LNX.4.44.0303050737570.15305-100000@gannet.stats>

What's changed is when the introductory message is printed, not when code 
in .Rprofile is run:

revision 1.118
date: 2003/02/26 15:51:17;  author: pd;  state: Exp;  lines: +6 -6
RNG change + delayed greeting

So it was intentional, but Peter D will have to explain why (as I wasn't
paying attention).

The profiles are run quite early (before the default packages are loaded)
and I think it is preferable to use .First to load packages (now the
system no longer makes use of it for that purpose).

On Tue, 4 Mar 2003, Roger Peng wrote:

> Recently in R-devel, I've noticed that when I start up R, code in
> .Rprofile (in the working directory) gets sourced but any messages printed
> out by that code (e.g. by `cat') are printed *before* the introductory
> statement about R.

[...]

-- 
Brian D. Ripley,                  ripley@stats.ox.ac.uk
Professor of Applied Statistics,  http://www.stats.ox.ac.uk/~ripley/
University of Oxford,             Tel:  +44 1865 272861 (self)
1 South Parks Road,                     +44 1865 272866 (PA)
Oxford OX1 3TG, UK                Fax:  +44 1865 272595


[Rd] order of package loading and printing messages to console on startup
ripley@stats.ox.ac.uk