Re: [R] custom startup/welcome message

2013-04-05 Thread lejeczek


On 04/05/13 03:43, Prof Brian Ripley wrote:

On 04/04/2013 21:31, R. Michael Weylandt wrote:
On Thu, Apr 4, 2013 at 9:49 AM, lejeczek 
 wrote:

yeap, I've done it,
I was hoping for a complete customization,
and even Rprofile.site adds only to what is being 
printed by default anyway,
I mean that header is always there. R version. 
untill "Type 'q()'..

and R -q silences everything :(



I'm not sure what the question is now (and please 
"context post"
instead of top-posting) -- I suppose you could patch the 
C code that
prints that message if you want it to say something else. 
You'd have

to re-build R but it's easy code to change.

It's at the top of $R_HOME/src/main/version.c:
http://svn.r-project.org/R/trunk/src/main/version.c



Hmm, removing other people's copyright notices is bad 
form, and against the licence if you distribute the 
modified version.



Michael,
copyright, copyleft, it's not about it, if it was then we 
probably would not be discussing it, for.. there probably 
would not had been R in the first place.
I'm sure everybody here greatly appreciate open source, I 
have no doubts about is, massive respect, we all contribute, 
no need to preach it.

Jim,
I was afraid that would be the last resort, Rprofile, as I 
understand it, cannot alter this very first "welcome" 
message, can add to it but not change it.

maybe somewhere in R code though, no?
practicalities dictate terms I'm trying to work with, hoping 
this limited space for text, R-studio in my case, I can make 
more "useful"

and it's Linux it all runs on

regards everybody



Michael




On 04/04/13 15:01, Michael Weylandt wrote:


On Apr 4, 2013, at 6:20, lejeczek  
wrote:



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?


Probably easiest to do it by way of some cat() calls in 
your .Rprofile.

See ?Startup for details.

MW

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

many thanks

 [[alternative HTML version deleted]]

__
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide
http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, 
reproducible code.



__
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide 
http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, 
reproducible code.


__
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide 
http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, 
reproducible code.







__
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.


Re: [R] custom startup/welcome message

2013-04-04 Thread Prof Brian Ripley

On 04/04/2013 21:31, R. Michael Weylandt wrote:

On Thu, Apr 4, 2013 at 9:49 AM, lejeczek  wrote:

yeap, I've done it,
I was hoping for a complete customization,
and even Rprofile.site adds only to what is being printed by default anyway,
I mean that header is always there. R version. untill "Type 'q()'..
and R -q silences everything :(



I'm not sure what the question is now (and please "context post"
instead of top-posting) -- I suppose you could patch the C code  that
prints that message if you want it to say something else. You'd have
to re-build R but it's easy code to change.

It's at the top of $R_HOME/src/main/version.c:
http://svn.r-project.org/R/trunk/src/main/version.c



Hmm, removing other people's copyright notices is bad form, and against 
the licence if you distribute the modified version.




Michael




On 04/04/13 15:01, Michael Weylandt wrote:


On Apr 4, 2013, at 6:20, lejeczek  wrote:


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?


Probably easiest to do it by way of some cat() calls in your .Rprofile.
See ?Startup for details.

MW


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

many thanks

 [[alternative HTML version deleted]]

__
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide
http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.



__
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.


__
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.




--
Brian D. Ripley,  rip...@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, UKFax:  +44 1865 272595

__
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.


Re: [R] custom startup/welcome message

2013-04-04 Thread Tyler Rinker
What is your OS?


> Fom: michael.weyla...@gmail.com
> Date: Thu, 4 Apr 2013 15:31:31 -0500
> To: pelj...@yahoo.co.uk
> CC: r-help@r-project.org
> Subject: Re: [R] custom startup/welcome message
>
> On Thu, Apr 4, 2013 at 9:49 AM, lejeczek  wrote:
> > yeap, I've done it,
> > I was hoping for a complete customization,
> > and even Rprofile.site adds only to what is being printed by default anyway,
> > I mean that header is always there. R version. untill "Type 'q()'..
> > and R -q silences everything :(
> >
>
> I'm not sure what the question is now (and please "context post"
> instead of top-posting) -- I suppose you could patch the C code that
> prints that message if you want it to say something else. You'd have
> to re-build R but it's easy code to change.
>
> It's at the top of $R_HOME/src/main/version.c:
> http://svn.r-project.org/R/trunk/src/main/version.c
>
> Michael
>
> >
> >
> > On 04/04/13 15:01, Michael Weylandt wrote:
> >>
> >> On Apr 4, 2013, at 6:20, lejeczek  wrote:
> >>
> >>> 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?
> >>
> >> Probably easiest to do it by way of some cat() calls in your .Rprofile.
> >> See ?Startup for details.
> >>
> >> MW
> >>
> >>> 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
> >>>
> >>> many thanks
> >>>
> >>> [[alternative HTML version deleted]]
> >>>
> >>> __
> >>> R-help@r-project.org mailing list
> >>> https://stat.ethz.ch/mailman/listinfo/r-help
> >>> PLEASE do read the posting guide
> >>> http://www.R-project.org/posting-guide.html
> >>> and provide commented, minimal, self-contained, reproducible code.
> >
> >
> > __
> > R-help@r-project.org mailing list
> > https://stat.ethz.ch/mailman/listinfo/r-help
> > PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
> > and provide commented, minimal, self-contained, reproducible code.
>
> __
> R-help@r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.
>   
__
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.


Re: [R] custom startup/welcome message

2013-04-04 Thread Jim Lemon

On 04/05/2013 01:49 AM, lejeczek wrote:

yeap, I've done it,
I was hoping for a complete customization,
and even Rprofile.site adds only to what is being printed by default
anyway,
I mean that header is always there. R version. untill "Type 'q()'..
and R -q silences everything :(


Hi lejeczek,
I had an idea and typed:

demo(base)
demo(R)

and there is no demo for "base" or "R". It is possible to create a file 
named R.R and stick it in the library/base/demo directory under the R 
home directory (on my PC it is /usr/local/lib64/R) with R source code in 
it. If you then enter:


demo(R)

in R you will run the file. You can put any valid R code into it.

Jim

__
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.


Re: [R] custom startup/welcome message

2013-04-04 Thread R. Michael Weylandt
On Thu, Apr 4, 2013 at 9:49 AM, lejeczek  wrote:
> yeap, I've done it,
> I was hoping for a complete customization,
> and even Rprofile.site adds only to what is being printed by default anyway,
> I mean that header is always there. R version. untill "Type 'q()'..
> and R -q silences everything :(
>

I'm not sure what the question is now (and please "context post"
instead of top-posting) -- I suppose you could patch the C code  that
prints that message if you want it to say something else. You'd have
to re-build R but it's easy code to change.

It's at the top of $R_HOME/src/main/version.c:
http://svn.r-project.org/R/trunk/src/main/version.c

Michael

>
>
> On 04/04/13 15:01, Michael Weylandt wrote:
>>
>> On Apr 4, 2013, at 6:20, lejeczek  wrote:
>>
>>> 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?
>>
>> Probably easiest to do it by way of some cat() calls in your .Rprofile.
>> See ?Startup for details.
>>
>> MW
>>
>>> 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
>>>
>>> many thanks
>>>
>>> [[alternative HTML version deleted]]
>>>
>>> __
>>> R-help@r-project.org mailing list
>>> https://stat.ethz.ch/mailman/listinfo/r-help
>>> PLEASE do read the posting guide
>>> http://www.R-project.org/posting-guide.html
>>> and provide commented, minimal, self-contained, reproducible code.
>
>
> __
> R-help@r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.

__
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.


Re: [R] custom startup/welcome message

2013-04-04 Thread lejeczek

yeap, I've done it,
I was hoping for a complete customization,
and even Rprofile.site adds only to what is being printed by 
default anyway,
I mean that header is always there. R version. untill 
"Type 'q()'..

and R -q silences everything :(


On 04/04/13 15:01, Michael Weylandt wrote:

On Apr 4, 2013, at 6:20, lejeczek  wrote:


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?

Probably easiest to do it by way of some cat() calls in your .Rprofile. See 
?Startup for details.

MW


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

many thanks

[[alternative HTML version deleted]]

__
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.


__
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.


Re: [R] custom startup/welcome message

2013-04-04 Thread Bretschneider SIG-R
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

__
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.


Re: [R] custom startup/welcome message

2013-04-04 Thread Michael Weylandt

On Apr 4, 2013, at 6:20, lejeczek  wrote:

> 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?

Probably easiest to do it by way of some cat() calls in your .Rprofile. See 
?Startup for details. 

MW

> 
> 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
> 
> many thanks
> 
>[[alternative HTML version deleted]]
> 
> __
> R-help@r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.

__
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.


[R] custom startup/welcome message

2013-04-04 Thread lejeczek
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

many thanks

[[alternative HTML version deleted]]

__
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.