[R] Execution timing in .First()

gerald.jean at dgag.ca gerald.jean at dgag.ca
Fri Feb 12 20:19:46 CET 2010


Hello,

I have a .First function in my personnal Rprofile file.  Through the .First
function I want to load an R data base at position 2 in the search list but
R complains with:

"Attempting to load the environment 'package:stats'"

and further down the initialization process, when .First.sys() is run and
default packages are loaded, my newly loaded data base ends up at position
7 in the search list, not what I want!

Is there any way around that, like delaying the execution of the load as
the last action in the initialisation steps?

Thanks,

Gérald Jean
Conseiller senior en statistiques,
VP Planification et Développement des Marchés,
Desjardins Groupe d'Assurances Générales
télephone            : (418) 835-4900 poste (7639)
télecopieur          : (418) 835-6657
courrier électronique: gerald.jean at dgag.ca

"In God we trust, all others must bring data"  W. Edwards Deming


Le message ci-dessus, ainsi que les documents l'accompagnant, sont destinés uniquement aux personnes identifiées et peuvent contenir des informations
privilégiées, confidentielles ou ne pouvant être divulguées. Si vous avez reçu ce message par erreur, veuillez le détruire.

This communication ( and/or the attachments ) is intended for named recipients only and may contain privileged or confidential information which is
not to be disclosed. If you received this communication by mistake please destroy all copies.


More information about the R-help mailing list