On Thu, 19 May 2011, Timothy Bates wrote:

lol:-)
is there a way to get a fortune on start up in R?

One possible way is to put something like this into your .Rprofile

if(interactive()) {
  library("fortunes")
  fortune()
}

The interactive() condition avoids having it in the output of certain scripts etc.

hth,
Z

On 19 May 2011, at 00:33, Rolf Turner wrote:


On 19/05/11 10:26, bill.venab...@csiro.au wrote:

<SNIP>
Most of [the Google style guide's] advice is very good (meaning I agree with 
it!) but some is a bit too much (for example, the blanket advice never to use 
S4 classes and methods - that's just resisting progress, in my view).
<SNIP>

I must respectfully disagree with this view, and concur heartily with the style 
guide.
S4 classes and methods are a ball-and-chain that one has to drag along.  See 
also
fortune("S4 methods"). :-)

   cheers,

       Rolf

______________________________________________
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.

Reply via email to