Re: [R] Any good R server-with connection examples

2012-10-23 Thread Aleksandar Blagotić
Don't try to integrate R with PHP, as you'll end up writing spaghetti code.
Use AJAX to send requests to the server with RApache scripts. OpenCPU will
do the job just fine, but make sure you use JSONP/CORS to bypass the same
origin policy. Long story short, it's something like this:

LAMP -AJAX- R

aL3xa



On Tue, Oct 23, 2012 at 3:41 PM, Matt Shotwell matt.shotw...@vanderbilt.edu
 wrote:

  I want to connect R with HTML/PHP pages to take input from user,do
  some
  statistical processing on it   show results to HTML page again.
  I search on net,i got Rserve package,but examples  are mainly for java
  langaure  not for PHP
  i am wondering how to connect it to PHP-Apache-MySQL
  Is there any good tutorial/video which will tell me how to do that ?
  At least tell me logical way how to use it ?

 Check out http://rapache.net/

 rApache connects R and the Apache 2 web server, such that R can act as a
 server-side scripting language, like PHP. This may be the easiest way,
 using R, to take user input from the web browser.

 The site has some decent documentation and links to examples.

 --Matt

 __
 R-help@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.


[[alternative HTML version deleted]]

__
R-help@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.


Re: [R] nice report generator?

2012-02-10 Thread Aleksandar Blagotić
Hi guys,

AFAICT, this conversation now discusses some domain-specific issues.
However, in reply to OP and OQ, I'll shamelessly advertise the package that
Gergely Daróczi and I have released recently. It's named rapport, and you
can grab it from CRAN or GitHub (https://github.com/aL3xa/rapport/). Check
it out, as its purpose is to deliver reports in bosses-friendly format.
It relies on pandoc, so you can easily convert it to external formats like
ODT, DOCX, PDF, LaTeX, etc. Check out the project homepage for more
details: http://rapport-package.info/

Cheers,
aL3xa



On Tue, Feb 7, 2012 at 16:45, Martin Studer martin.remo.stu...@gmail.comwrote:

 Hi Michael, Hi all,

 an alternative for reading/writing tables from/to Excel is the package
 XLConnect. It is platform-independent and therefore runs under Windows,
 UNIX/Linux  Mac. It supports reading/writing worksheets as well as named
 ranges. In addition, for reporting purposes, there is support for cell
 styles. You can find an example here:

 http://miraisolutions.wordpress.com/2011/08/31/xlconnect-a-platform-independent-interface-to-excel/
 XLConnect – A platform-independent interface to Excel . With respect to
 cell
 styles: you either completely code up the styling according to your needs
 using /setCellStyle/ (which can be cumbersome if you need to apply a lot of
 styling) or you can use so-called style actions controlled via
 /setStyleAction/. See the XLConnect reference manual for more information.

 Best regards,
 Martin


 --
 View this message in context:
 http://r.789695.n4.nabble.com/nice-report-generator-tp4169939p4365144.html
 Sent from the R help mailing list archive at Nabble.com.

 __
 R-help@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.


[[alternative HTML version deleted]]

__
R-help@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.