I am building an application with RApache and my code in R is receiving POST data. One of the post datas is POST$f which is a string- say "sin(x)". Is there any way to put this into the plot function successfully?
Thanks!
I am building an application with RApache and my code in R is receiving POST data. One of the post datas is POST$f which is a string- say "sin(x)". Is there any way to put this into the plot function successfully?
Thanks!
But it is not something I would recommend.
eval(parse(...))
is already dangerous, and then to do it with arbitrary user input from a web site is just a gaping security hole.Or even using
system()
to do even more bad things.