Skip to content

R on the web

1 message · David Brahm

#
Arne Mueller <a.mueller at icrf.icnet.uk> wrote:
One possibility is to generate a pdf file, then redirect the user's browser to
that file.  Here are a few relevant lines from such a cgi script:

## Inside the R code:
  pdf("mynewgraph.pdf")
  ## Graphics commands
  dev.off()
## After R has run:
  print "<META HTTP-EQUIV=Refresh CONTENT='0; URL=mynewgraph.pdf'>";