Skip to content

Automatically sending .Rmd -> html files

2 messages · Nick, Enrico Schumann

1 day later
#
Hi,
I wasn't aware of any buzz :-) But seriously, as you mentioned yourself, 
this is not really a finance question. So you may get better answers on 
R-help.

I don't use Markdown; but still, some thoughts/pointers:

(1) To borrow Perl's slogan, there is more than one way to do it. And 
this is definitely the rule here: just find some setup that works for 
you. In the end, you will anyway collect all pieces in a script, ie, a 
batch file on Windows. The Task Scheduler accepts such batch files. (If 
you want complete automation, you will also want to think about 
error-handling: "Hm, you want me to send this file, but it is more than 
24h old.")

I wouldn't expect to do everything in R; there are many 
incredibly-useful tools that can be run from the command line, even on 
Windows (as an example, I use Sweave to automatically create tex-files; 
tex-files could be transformed into HTML via tools like Pandoc).

You may also want to have a look at the CRAN Task View for Reproducible 
Research.

(2) You will run R non-interactively, so have a look at the 
documentation of RScript and R CMD BATCH.

(3) You can send e-mails from the command line on Windows with 
programmes like Blat ( http://www.blat.net/ ). This may also allow you 
to send HTML mails, but I wouldn't know: I only send and read plain-text 
mails, ie, the format that this mailing list expects.


Regards,
Enrico