Re: [R] How to get R plots with FastRweb

From: Simon Urbanek <simon.urbanek_at_r-project.org>
Date: Wed, 20 Apr 2011 11:27:23 -0400

Devi,

FastRWeb doesn't use Java - it is entirely R based so all you need is a web server with either CGI or PHP. The client it uses is either a C++ client (part of FastRWeb in the cgi-bin directory of the installed package - just copy to you server's cgi-bin) or a PHP client (in Rserve/src/client/php/simple.php - simply uncomment process_FastRWeb()). The location of the R scripts it serves is defined by PROJECT_ROOT at the time you compile FastRWeb which is by default /var/FastRWeb so by default foo.png.R would be /var/FastRWeb/web.R/foo.png.R

Clearly, you could use Java to connect to the Rserve serving FastRWeb but it sort of defeats the purpose, because FastRWeb does all the work for you consisting of parsing the request and running the scripts.

If you still have issues, I can point you to a sample configuration including the setup etc. (for a unix server) if that helps.

Cheers,
Simon

PS: please use stats-rosuda-devel mailing list - I'm not monitoring R-help.

On Apr 20, 2011, at 3:14 AM, MLSC MANIPAL wrote:

> Dear friends,
>
> I am working in a web service project which uses integration of Java with R. I have used RJava to connect with Java and that is working fine. As R produces more interactive plots, I would also like to pipe plots generate from R on web page. I came to know that FastRWeb, R2HTML, brew and WebGraphics, Cairo together can be used to do that. I have installed all those successfully. I am developing my web service project with NetBeans. For testing purpose I have used the excersie (kmeans) given in the FastRWeb document.I have put the kmeans.png.R program in my netbeansProject/R directory where other java code runs properly.
>
> student_at_mlscubl30:~/NetBeansProjects/R$ ls
> build build.xml dist kmeans.png.R nbproject src test web
> student_at_mlscubl30:~/NetBeansProjects/R$
>
> When i try to execute it with http://localhost:8080/R/kmeans.png in browser it does not execute it. Hence can you please tell me what exactly i have to do in order to make it up and run?
>
> thanks in advance.
>
> Regards,
> Devi
> Manipal Life Sciences Center



R-help_at_r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. Received on Wed 20 Apr 2011 - 15:30:50 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Wed 20 Apr 2011 - 16:00:31 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.

list of date sections of archive