You might be better off using the knitr package which has options for
whether to evaluate code or not (or which pieces of code to evaluate).  If
you use this in Rstudio then you can knit directly to html from a variety
of input formats.  Otherwise you can use the external program pandoc to
convert the knitr output (using whichever format you prefer) to html (or
several other document types).  There is also a pander package which works
more directly with pandoc, but I am not sure if it would help much for this
case.

I like using the markdown format with knitr, it is pretty simple and
straight forward to write text and R code, then use knit to process the R
code (optionally) and pandoc to create a final version (currently I am
mostly producing pdf files for presentations, but it will also create
MSWord documents, html, and many others).


On Thu, Jan 10, 2013 at 6:52 PM, Erin Hodgess <erinm.hodgess@gmail.com>wrote:

> Dear R People:
>
> Is there a way to just print the commands without output into R2HTML,
> please?
>
> What I would like to do is to put up some commands for the students
> and see if they can get results.
>
> Thanks,
> Erin
>
>
> --
> Erin Hodgess
> Associate Professor
> Department of Computer and Mathematical Sciences
> University of Houston - Downtown
> mailto: erinm.hodgess@gmail.com
>
> ______________________________________________
> 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.
>



-- 
Gregory (Greg) L. Snow Ph.D.
538280@gmail.com

	[[alternative HTML version deleted]]


