[R] custom startup/welcome message
Bretschneider SIG-R
bretschr at xs4all.nl
Thu Apr 4 16:27:26 CEST 2013
Dear lejeczek,
Re:
> hi everybody
>
> I wonder if there is a simple way, but not simple would be
> ok too,
> to customize info/welcome page at session start time?
>
> what I'd like to do is to put together simple short howto /
> dos & don'ts page for users,
> I'm thinking it would be great if it was possible
Indeed, you can put all kinds of things in the Rprofile.
I use this:
# ============================================= my own first-function
.First <- function(){
cat("\n>>> R 2.15.2 Rprofile van 13-02-2013 \n\nFunctions added:\t sinc()\t permute()\t combine()\n dice(n)\t countif()\t pplot()\t lplot()\n ln()\t xmatplot()\t ascii()\t chr()\n to.dec()\t to.hex()\tincr()\tdecr()\n as.sci()\tas.eng()\tnprint()\nVectors added: eps, ans, xpoints, xcols\nText:lorem\n\n")
cat("Default Packages:",getOption("defaultPackages"))
}
# ==============================================
This gets printed after R's built-in message.
As this text states, I also put my own functions in the Rprofile. Works fine.
Best wishes,
Franklin
--
Franklin Bretschneider
--
Dept Biologie
Kruytgebouw W711
Padualaan 8
3584 CH Utrecht
The Netherlands
More information about the R-help
mailing list