Re: [R] .Rprofile files (was R newbie configuration)

From: Mark Leeds <Mleeds_at_kellogggroup.com>
Date: Fri 06 Jan 2006 - 01:13:58 EST


Thanks a lot. setHook is
Currently not in my knowledge set
But it's great to save these
Thing so I can look them up
When I feel more comfortable.

Just to add to that Stata versus R discussion :

I believe, anyone who uses
any other package than R, is probably missing out in the long run. It's truly unbelievable what has been done here. I feel like I
fell asleep for 5 years ( by not using it ) and just woke up to all of these new
packages, facilities etc.

                        Mark




-----Original Message-----
From: Prof Brian Ripley [mailto:ripley@stats.ox.ac.uk] Sent: Thursday, January 05, 2006 4:04 AM To: Petr Pikal
Cc: Mark Leeds; R-Stat Help
Subject: Re: [R] .Rprofile files (was R newbie configuration)

And here is one with a working setHook call.

options(show.signif.stars=FALSE)
setHook(packageEvent("grDevices", "onLoad"),

         function(...) grDevices::ps.options(horizontal=FALSE)) set.seed(1234)
options(repos=c(CRAN="
http://cran.uk.r-project.org"))

On Thu, 5 Jan 2006, Petr Pikal wrote:

> Hi
>
> here is my example of .Rprofile file
>
>
> require(graphics)
> require(utils)
>
> # setHook(packageEvent("graphics", "onLoad"), function(...)
> # graphics::par(bg="white")) ## did not manage to persuade setHook
> # to work properly
>
> par(bg="white")
> RNGkind("Mersenne-Twister", "Inversion")
>
> # some set of my functions and data
>
> .libPaths("D:/programy/R/R-2.2.0/library/fun")
> library(fun)
> data(stand)
>
>
> HTH
> Petr
>
>
> On 4 Jan 2006 at 15:46, Mark Leeds wrote:
>
> Date sent: Wed, 4 Jan 2006 15:46:37 -0500
> From: "Mark Leeds" <Mleeds@kellogggroup.com>
> To: "R-Stat Help" <R-help@stat.math.ethz.ch>
> Subject: [R] R newbie configuration
>
>> I think I did enough reading on my
>> Own about startup ( part of the morning
>> And most of this afternoon )
>> to not feel uncomfortable asking
>> for confirmation of my understanding of this startup stuff.
>>
>> Obviously, the startup process is more complicated
>> Than below but, for my R newbie purposes,
>> It seems like I can think of the startup process as follows :
>>
>> Suppose my home directory = "c:documents and settings/mleeds" =
>> $HOME.
>>
>> Put things in $HOME/.Rprofile that are more generic on startup and
not
>> specific to any particular R project.
>>
>> Put various .First() functions in the working directories of the
>> particular projects that
>> they are associated with so that they loaded in when their .RData
>> directory gets loaded.
>>
>> If above is correct ( emphasis on correct for a newbie. I know there
>> is a lot more going on And things can be done more elegantly etc ),
>> Could someone send me an example of a .Rprofile file. I didn't use
>> these in S+ and I am wondering what you put in them ?
>>
>> Thanks
>>
>>
>>
>>
>>



>> This email and any files transmitted with it are
>> confidentia...{{dropped}}
>>
>> ______________________________________________
>> R-help@stat.math.ethz.ch mailing list
>> https://stat.ethz.ch/mailman/listinfo/r-help
>> PLEASE do read the posting guide!
>> http://www.R-project.org/posting-guide.html
>
> Petr Pikal
> petr.pikal@precheza.cz
>
> ______________________________________________
> R-help@stat.math.ethz.ch mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide!
http://www.R-project.org/posting-guide.html
>
-- 
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


**********************************************************************
This email and any files transmitted with it are confidentia...{{dropped}}

______________________________________________
R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html
Received on Fri Jan 06 01:32:57 2006

This archive was generated by hypermail 2.1.8 : Fri 06 Jan 2006 - 06:03:55 EST