Re: [R] prettyR arrives

From: Rick Bilonick <rab45+_at_pitt.edu>
Date: Sat 05 Aug 2006 - 04:22:51 EST

On Fri, 2006-08-04 at 19:37 -0400, Jim Lemon wrote:
> Hi all,
>
> I have finally gotten the prettyR package going (many thanks to Kurt
> Hornik for his patience).
>
> prettyR is a set of functions that allows the user to produce HTML
> output from R scripts. Given an R script that runs properly, an HTML
> listing complete with embedded graphics can be produced simply by
> passing the script to the core function htmlize (Phillipe Grosjean has
> not only offered great suggestions, but provided a fancier function
> named R2html). It is even possible to have the output magically appear
> in your friendly local HTML browser when the script has been processed.
>
> The package includes some basic descriptive functions that display "the
> usual suspects" in formats that should not agitate those accustomed to
> the vanilla listings that abound in the real world.
>
> prettyR is intended to assist the R beginner in producing basic stats
> right from the word "go". No knowledge beyond that of writing an R
> script is required, but there is quite a bit of room to learn and
> innovate. Have fun and please let me know if you break it.
>
> Jim
>
> ______________________________________________
> R-help@stat.math.ethz.ch 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.
>

Thanks but I could not get R2html in prettyR to work:

> R2html(Rfile="/ophth/cornea/R/lme_4.R",
+ HTMLfile="/ophth/cornea/Reports/lme_4.html") Error in CreateIndexFile(HTMLfile, basenavfile, baselistfile, title) :

        unused argument(s) ( ...)

lme_3.r has the R script and lme_3.html is the html file I'd like to create. The help file for R2html does not give an example.

> args(R2html)

function (Rfile, HTMLfile, echo = TRUE, split = FALSE, browse = TRUE,

    title = "R listing", bgcolor = "#dddddd", ...)

What am I doing wrong? I can source the script file.

> args(CreateIndexFile)

function (HTMLbase, HTMLdir, title = "R listing")

Is there a problem in R2html's call to CreateIndexFile? The arguments don't seem to match.

Rick B.



R-help@stat.math.ethz.ch 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. Received on Sat Aug 05 04:32:44 2006

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.1.8, at Sat 05 Aug 2006 - 06:18:22 EST.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.