[Rd] Using R from Java
Hello, I am interesting in using R from a web application, for basic statistics and plots. The server is Java-based (tomcat). The simplest solution is a system call that generates the text or the image, then the servlet forwards the output. This can be done from any language, but it is quite inelegant and slow for the initialization time. Is there any package or approach for accessing R from a Java servlet you can suggest? Thanks in advance for any suggestion. Regards, -Marzio -- http://marzio.sala.googlepages.com [[alternative HTML version deleted]] __ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel
Re: [Rd] package config file for windows
Thanks for your answer. You confirm what I fear, it is not easily possible to test for SSE2 support on windows. Can I assume there exists inttypes.h on windows platform? Thanks again Christophe Le 14 sept. 08 à 01:11, Duncan Murdoch a écrit : Christophe Dutang wrote: Hi, I'm maintaining randtoolbox package on CRAN and I wonder how to do a windows config file? I need to test SSE2 instructions support as well as inttypes.h library check. Currently I use the trick of 'foreign' package, i.e. I have config.win file with cp -p src/config.h.win src/config.h and config.h.win was written manually from config.h.in. There is no test at all on windows. In 'writing r extension' on this topic, we find " You should bear in mind that the configure script may well not work on Windows systems (this seems normally to be the case for those generated by Autoconf, although simple shell scripts do work). If your package is to be made publicly available, please give enough information for a user on a non-Unix platform to configure it manually, or provide a ‘configure.win’ script to be used on that platform. (Optionally, there can be a ‘cleanup.win’ script as well. Both should be shell scripts to be executed by ash, which is a minimal version of Bourne-style sh.) " Which tool do I need to write config script on windows? Do I need an autoconf-cygwin solution? ( http://sources.redhat.com/autobook/autobook/autobook_242.html#SEC242 ) or just a port of autoconf available on sourceforge? I think most configure scripts on Windows were written using a text editor, i.e. by hand. Windows systems are pretty consistent, so the kinds of tests and searches that you need to do on *nix aren't needed. You can assume that the Rtools are installed, but don't rely on anything else. We're unlikely to drop tools from that collection, so this advice should last quite a while. Duncan Murdoch Thanks in advance Christophe [[alternative HTML version deleted]] __ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel __ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel
Re: [Rd] Using R from Java
Hi Marzio, I am interesting in using R from a web application, for basic statistics and plots. The server is Java-based (tomcat). The simplest solution is a system call that generates the text or the image, then the servlet forwards the output. This can be done from any language, but it is quite inelegant and slow for the initialization time. Is there any package or approach for accessing R from a Java servlet you can suggest? The biocep project might be a good match, see http://biocep-distrib.r-forge.r-project.org/doc.html HTH, Tobias __ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel
Re: [Rd] package config file for windows
On 14/09/2008 5:26 AM, Christophe Dutang wrote: Thanks for your answer. You confirm what I fear, it is not easily possible to test for SSE2 support on windows. Can I assume there exists inttypes.h on windows platform? I think you misunderstood. The test scripts produced by autoconf won't necessarily work on Windows, but it's still worth trying. Just extract the tests for SSE2 and inttypes.h from your script on some other platform, and adapt them to Windows. They can probably be shortened, because there's less variability. You can count on Windows using gcc 4.x for current and future versions, probably until 5.x becomes commonly used. I don't know if inttypes.h is guaranteed in all of those, but it is currently present. Duncan Murdoch Thanks again Christophe Le 14 sept. 08 à 01:11, Duncan Murdoch a écrit : Christophe Dutang wrote: Hi, I'm maintaining randtoolbox package on CRAN and I wonder how to do a windows config file? I need to test SSE2 instructions support as well as inttypes.h library check. Currently I use the trick of 'foreign' package, i.e. I have config.win file with cp -p src/config.h.win src/config.h and config.h.win was written manually from config.h.in. There is no test at all on windows. In 'writing r extension' on this topic, we find " You should bear in mind that the configure script may well not work on Windows systems (this seems normally to be the case for those generated by Autoconf, although simple shell scripts do work). If your package is to be made publicly available, please give enough information for a user on a non-Unix platform to configure it manually, or provide a ‘configure.win’ script to be used on that platform. (Optionally, there can be a ‘cleanup.win’ script as well. Both should be shell scripts to be executed by ash, which is a minimal version of Bourne-style sh.) " Which tool do I need to write config script on windows? Do I need an autoconf-cygwin solution? ( http://sources.redhat.com/autobook/autobook/autobook_242.html#SEC242 ) or just a port of autoconf available on sourceforge? I think most configure scripts on Windows were written using a text editor, i.e. by hand. Windows systems are pretty consistent, so the kinds of tests and searches that you need to do on *nix aren't needed. You can assume that the Rtools are installed, but don't rely on anything else. We're unlikely to drop tools from that collection, so this advice should last quite a while. Duncan Murdoch Thanks in advance Christophe [[alternative HTML version deleted]] __ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel __ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel
Re: [Rd] Using R from Java
Hi Marzio -- "Marzio Sala" <[EMAIL PROTECTED]> writes: > Hello, > > I am interesting in using R from a web application, for basic statistics and > plots. The server is Java-based (tomcat). > The simplest solution is a system call that generates the text or the image, > then the servlet forwards the output. This can be done from any language, > but it is quite inelegant and slow for the initialization time. > > Is there any package or approach for accessing R from a Java servlet you can > suggest? The FAQ has a section on R Web Interfaces http://cran.r-project.org/doc/FAQ/R-FAQ.html#R-Web-Interfaces include R/Apache and RServe. There is also Bioconductor's RWebServices, http://bioconductor.org/packages/2.2/bioc/html/RWebServices.html which produces soap-based web services from (strongly-typed) R packages. Martin > > Thanks in advance for any suggestion. > > Regards, > -Marzio > > -- > http://marzio.sala.googlepages.com > > [[alternative HTML version deleted]] > > __ > R-devel@r-project.org mailing list > https://stat.ethz.ch/mailman/listinfo/r-devel -- Martin Morgan Computational Biology / Fred Hutchinson Cancer Research Center 1100 Fairview Ave. N. PO Box 19024 Seattle, WA 98109 Location: Arnold Building M2 B169 Phone: (206) 667-2793 __ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel