Does anyone know how to commit POST variables (or other parts of an HTTP request) using FastRWeb? FastRWeb is a tool that allows you to run r scripts in a cgi environment. Here is an example program using FastRWeb.
run <- function(n = 100, ...) {
out("<H2>Some HTML</h2>")
n <- as.integer(n)
p <- WebPlot(800, 600)
x <- runif(n)
plot(x, rnorm(n), pch=19, col=2)
out(p)
oprint(n)
oprint(summary(x))
otable(data.frame(a=1:5, b=c("a","b","c","d","e")))
done()
}
The argument "n" will be displayed from the url request parameters in the URL. I would also like to write the contents of the POST. Does anyone know how to do this?
Greetings.
source
share