[R] [semi-OT] Using fortune() in an email signature

2010-09-01 Thread Stuart Luppescu
Hello, As you can see from my signature in this message, I use the R fortune function to generate a fortune, which is then fed to the signature program, which constructs a named pipe containing the fortune-bearing sig, which is then included in mail messages. The problem is that it's got

Re: [R] [semi-OT] Using fortune() in an email signature

2010-09-01 Thread David Winsemius
On Sep 1, 2010, at 4:49 PM, Stuart Luppescu wrote: Hello, As you can see from my signature in this message, I use the R fortune function to generate a fortune, which is then fed to the signature program, which constructs a named pipe containing the fortune-bearing sig, which is then included

Re: [R] [semi-OT] Using fortune() in an email signature

2010-09-01 Thread Dirk Eddelbuettel
On 1 September 2010 at 15:49, Stuart Luppescu wrote: | Hello, As you can see from my signature in this message, I use the R | fortune function to generate a fortune, which is then fed to the | signature program, which constructs a named pipe containing the | fortune-bearing sig, which is then

Re: [R] [semi-OT] Using fortune() in an email signature

2010-09-01 Thread Christian Raschke
Simply using option --slave instead seems to do the trick. $ /usr/bin/R --slave test-fortune.R Similarly to Brian, I'm much more reluctant to help people who don't exist -- who knows, maybe you're a computer program who has just passed the Turing test :-) -- Martin Maechler (about

Re: [R] [semi-OT] Using fortune() in an email signature

2010-09-01 Thread Matt Shotwell
Or using R GNU tools: m...@max:~$ R -e fortunes::fortune() | gawk '/^[^]/ {print}' It's not a question of trying variations, rather of following instructions. -- Brian D. Ripley (about using 'Writing R Extensions') R-help (January 2006) -Matt On Wed, 2010-09-01 at 16:49 -0400, Stuart

Re: [R] [semi-OT] Using fortune() in an email signature

2010-09-01 Thread Stuart Luppescu
On Wed, 2010-09-01 at 16:32 -0500, Christian Raschke wrote: Simply using option --slave instead seems to do the trick. $ /usr/bin/R --slave test-fortune.R Great! Thanks very much, Christian. Matt Shotwell, I didn't try your solution, since Christian's is so simple, but thanks for writing

Re: [R] [semi-OT] Using fortune() in an email signature

2010-09-01 Thread Allan Engelhardt
On 01/09/10 22:18, Dirk Eddelbuettel wrote: [...] Doing the same with Rscript is left as an exercise I like exercises: Rscript --default-packages=fortunes -e print(fortune()) Allan __ R-help@r-project.org mailing list