[R] .Rprofile file and .First function

Robert Citek rwcitek at alum.calberkeley.org
Sat May 13 14:38:03 CEST 2006


On May 12, 2006, at 4:06 PM, MARK LEEDS wrote:
> would someone mind to send me an example of a .Rprofile file and  
> a .First function just so I can get an idea. Thanks a lot.

I don't have a .First function, but here's my .Rprofile:

# options for the interactive environment
options(prompt="\nR > ") ;
options(width=1000) ;
quit <- "To quit, type q()" ;
exit <- "To exit, type q()" ;
q <- "Almost there.  To quit, type q()" ;

# familiar aliases / functions
h <- function() {
   history(max.show = Inf)
} ;

printf <- function (...) {
   cat(sprintf(...)) ;
} ;

Regards,
- Robert
http://www.cwelug.org/downloads
Help others get OpenSource software.  Distribute FLOSS
for Windows, Linux, *BSD, and MacOS X with BitTorrent




More information about the R-help mailing list