[Rd] Passing R code from webpage

2013-02-17 Thread Matevz Pavlic
Hi all, Is there a way to pass R code from web page (html file) to do some statistics and than plot the output in web browser. I am looking forever at this, and cant find a way. Regards,m -- View this message in context:

Re: [Rd] Passing R code from webpage

2013-02-17 Thread Pierre Chausse
If R and ghostcript are installed on the server that hosts you webpage, it is easy. All you need is a minimum of php. I started with doR (which I think does not exist anymore) and modified it. Even better, some people offers a solution for you. Here is a GPL licenced solution.

Re: [Rd] Passing R code from webpage

2013-02-17 Thread Marc Schwartz
On Feb 16, 2013, at 5:48 PM, Matevz Pavlic matevzpav...@gmail.com wrote: Hi all, Is there a way to pass R code from web page (html file) to do some statistics and than plot the output in web browser. I am looking forever at this, and cant find a way. Regards,m You might have

Re: [Rd] Passing R code from webpage

2013-02-17 Thread Simon Urbanek
On Feb 16, 2013, at 6:48 PM, Matevz Pavlic wrote: Hi all, Is there a way to pass R code from web page (html file) to do some statistics and than plot the output in web browser. I am looking forever at this, and cant find a way. Typically this is done by sending an AJAX request to R

Re: [Rd] Passing R code from webpage

2013-02-17 Thread Mike Marchywka
From: simon.urba...@r-project.org Date: Sun, 17 Feb 2013 09:16:57 -0500 To: matevzpav...@gmail.com CC: r-devel@r-project.org Subject: Re: [Rd] Passing R code from webpage On Feb 16, 2013, at 6:48 PM, Matevz Pavlic wrote: Hi all, Is there

Re: [Rd] Passing R code from webpage

2013-02-17 Thread Simon Urbanek
On Feb 17, 2013, at 9:29 AM, Mike Marchywka wrote: From: simon.urba...@r-project.org Date: Sun, 17 Feb 2013 09:16:57 -0500 To: matevzpav...@gmail.com CC: r-devel@r-project.org Subject: Re: [Rd] Passing R code from webpage On Feb 16, 2013, at 6:48 PM, Matevz Pavlic wrote: Hi all, Is

Re: [Rd] Passing R code from webpage

2013-02-17 Thread Matevz Pavlic
Hi , thanks for all the replies. I'll have a good look at this FastRWeb. Just one thing. My pages are done with Razor *.CSTHML. Could this be a problem for FastRWeb (and me) ;)? regards, m -- View this message in context:

Re: [Rd] Passing R code from webpage

2013-02-17 Thread Simon Urbanek
On Feb 17, 2013, at 11:30 AM, Matevz Pavlic wrote: Hi , thanks for all the replies. I'll have a good look at this FastRWeb. Just one thing. My pages are done with Razor *.CSTHML. Could this be a problem for FastRWeb (and me) ;)? R doesn't care how you generate the pages - it will be

Re: [Rd] Passing R code from webpage

2013-02-17 Thread Matevz Pavlic
Hi, yes, i saw that about Cshtml...but it's done already, can't change it now. Are there any samples of web pages or some samples to download for FastRWeb? I am having troubles understanding how to install this and get it to work... tnx, m -- View this message in context:

Re: [Rd] Passing R code from webpage

2013-02-17 Thread Simon Urbanek
On Feb 17, 2013, at 12:09 PM, Matevz Pavlic wrote: Hi, yes, i saw that about Cshtml...but it's done already, can't change it now. Are there any samples of web pages or some samples to download for FastRWeb? I am having troubles understanding how to install this and get it to work...

Re: [Rd] Passing R code from webpage

2013-02-17 Thread Jeff Ryan
Another really great tool, leveraging Simon's incredible work with Rserve, is to use pyRserve. Combined with Flask as a web framework you can do quite a bit with very minimal code. http://flask.pocoo.org/ http://pypi.python.org/pypi/pyRserve/ HTH Jeff On Sun, Feb 17, 2013 at 12:10 PM, Simon

Re: [Rd] Printing of anonymous functions in calls is sub-optimal

2013-02-17 Thread Duncan Murdoch
On 13-02-16 6:29 PM, Duncan Murdoch wrote: On 13-02-16 10:22 AM, Hadley Wickham wrote: This is a little tricky for the deparser. It sees a call to a function which was determined by an expression. Sometimes you want parens, sometimes you don't. For example, if getfun(y) returns a function,

Re: [Rd] Passing R code from webpage

2013-02-17 Thread Matevz Pavlic
Hi again, i am very sorry, but i can't install this from the details in INSTALL file. As I understand these are instructions for Unix server, but i'd like to install it on window... -- View this message in context:

Re: [Rd] Passing R code from webpage

2013-02-17 Thread Matevz Pavlic
Here's what i did (Windows) : 1.) install.packages(FastRWeb) 2.) system(paste(cd,system.file(package=FastRWeb), install.sh) 3.) code{system.file(cgi-bin, package=FastRWeb) I ran all this from Rstudio. But i don't understand what var means. I suspect it's a folder, probably in unix...because