\section{Rpad utilities} \everypar={\hangindent=9mm} \bcode{RpadURL(filename)} returns the URL for the given filename \bcode{RpadBaseURL(filename)} returns the base URL for the given filename \bcode{RpadBaseFile(filename)} returns the file name relative to the base R directory \bcode{RpadIsLocal()} returns TRUE if run locally (rather than the client-server version) \section{Rpad HTML utilities} \everypar={\hangindent=9mm} \bcode{HTML(x)} outputs an HTML representation of an object (uses package \code{R2HTML}) \bcode{HTMLon()} turn on HTML mode (the default is text) \bcode{HTMLoff()} turn off HTML mode \bcode{HTMLtag(tagName, ...), HTMLetag(tagName)} make starting and ending tags for \code{tagName} with ... elements as tag parameters \bcode{HTMLh1(text), HTMLh2(text), ...} headings H1, H2, ... \bcode{HTMLargs(...)} a string with the arguments as \code{"a='arg1'} \code{b='arg2'"}, and so on \bcode{HTMLradio(variableName, commonName="radio", text="")} a radio input with an R variable name \code{variableName}; \code{commonName} links it with other radio elements; \code{text} specifies an adjacent label \bcode{HTMLcheckbox(name, text="", checked=FALSE)} a checkbox input with an R variable name \code{name} \bcode{HTMLselect(name, text, default=1, size=1)} a select box with an R variable name \code{name} with the options \code{text} \bcode{HTMLinput(name, value="", rpadtype="Rvariable")} an input box with an R variable name \code{name} and default \code{value}; \code{rpadtype} can by \code{"Rstring"} or \code{"Rvariable"} \bcode{HTMLlink(url, text)} a link wrapped around \code{text} \bcode{HTMLimg(filename)} an img \bcode{HTMLembed(filename,width=600,height=600)} an embed (useful for pdf or svg) \everypar={\hangindent=0mm} Most of these return a character string, and automatic printing sends the string to the output with the effect that the HTML is displayed in Rpad. \section{Rpad plotting utilities} \everypar={\hangindent=9mm} \bcode{newgraph(name="",...)} sets up the graphics device (not needed unless you want to change parameters) \bcode{showgraph()} generates the HTML to show the graph and runs \code{newgraph} to advance to the next graphics file; \code{link=TRUE} creates a link to the EPS file \bcode{graphoptions(...)} changes the defaults for subsequent graphs \everypar={\hangindent=0mm} \code{newgraph} and \code{graphoptions} have the following options with the defaults given: \code{type="pngalpha", res=120, width=3.5, height=, pointsize=10, sublines=0, toplines=.6, ratio=4/3, leftlines=0, lwd=0.6} \bcode{RpadPlotName()} returns the name of the currently active plot %%% Local Variables: %%% mode: latex %%% TeX-master: t %%% End: