From hpages at fhcrc.org  Wed Oct  5 22:33:03 2011
From: hpages at fhcrc.org (=?ISO-8859-1?Q?Herv=E9_Pag=E8s?=)
Date: Wed, 05 Oct 2011 13:33:03 -0700
Subject: [Rd] Question about Rweb
In-Reply-To: <45ca01cc8399$6ae06eb0$40a14c10$@gmail.com>
References: <096E99C76E4DCC469728CD4104D7C9B602A8F0@MBX10A.davidson.edu>	<1567A640-1E4F-4E7E-8FC6-74FFEAA247DA@r-project.org>
	<45ca01cc8399$6ae06eb0$40a14c10$@gmail.com>
Message-ID: <4E8CBEFF.6030500@fhcrc.org>

Hi,

On 11-10-05 01:00 PM, Ted Byers wrote:
> Hi Simon,
>
> Any chance of getting step by instructions on setting it up to work with a
> web server like Apache's httpd server (I have Apache's web server running,
> actually a couple instances on different ports, and I do all my CGI
> programming using Perl)?
>
> I am not so much looking to provide a web interface for working with R, but
> rather want to write CGI programs that use R for specific analyses and
> graphics.  I was considering writing my R scripts as usual (using the
> capabilities of QRMlib and RQuantLib, in particular), and have them invoked
> by a cgi script written in perl.  But your description suggests it can be
> made faster.  Each package I looked at for doing this was interesting, but I
> always got stuck at the point of figuring out how to get Apache's httpd
> server to run my R scripts.  Your description suggests that a request
> requiring R can be just passed onto Rserve, but how does one set that up;
> i.e. to pass the request arguments through to the R script, and to tell
> Rserve which R script to use?
>
> Any insights on setting this up would be appreciated.
>
> On http://rforge.net/FastRWeb/files/, I read that FastRWeb is to be
> installed using "install.packages('FastRWeb',,'http://www.rforge.net/')",

The same page also shows that only the source package and the Mac binary
are available.

> but that gives me the following message:
>
>> install.packages('FastRWeb',,'http://www.rforge.net/')
> Installing package(s) into 'C:\Users\Ted\Documents/R/win-library/2.12'
> (as 'lib' is unspecified)
> Warning message:
> In getDependencies(pkgs, dependencies, available, lib) :
>    package 'FastRWeb' is not available
>>
>
> This was on:
>
> R version 2.12.0 (2010-10-15)
> Copyright (C) 2010 The R Foundation for Statistical Computing
> ISBN 3-900051-07-0
> Platform: x86_64-pc-mingw32/x64 (64-bit)

No Windows binary.

Cheers,
H.

>
> Thanks
>
> Ted
>
>
>> -----Original Message-----
>> From: r-devel-bounces at r-project.org [mailto:r-devel-bounces at r-
>> project.org] On Behalf Of Simon Urbanek
>> Sent: October-05-11 3:06 PM
>> To: Tonidandel, Scott
>> Cc: r-devel at r-project.org
>> Subject: Re: [Rd] Question about Rweb
>>
>>
>> On Oct 5, 2011, at 2:16 PM, Tonidandel, Scott wrote:
>>
>>> Greetings,
>>>
>>> I am working on creating an interactive website that will generate
> R-code
>> [snip]
>> I may be biased, but I would recommend using FastRWeb, it's much more
>> efficient and has a lot of advantages (allows pre-loading of data and
> code,
>> supports parallel connections etc.).
>>
>> See
>> http://rforge.net/FastRWeb
>> and
>> https://www.urbanek.info/research/pub/urbanek-iasc08.pdf
>>
>> We use it heavily internally for a lot of things we do, so it's definitely
> a very
>> active project (in fact I know about several people using it externally as
> well).
>> In case you get convinced that this is a good option, please feel free to
>> contact me if you have any questions and need any help.
>>
>> Cheers,
>> Simon
>>
>> ______________________________________________
>> R-devel at r-project.org mailing list
>> https://stat.ethz.ch/mailman/listinfo/r-devel
>
> ______________________________________________
> R-devel at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-devel


-- 
Herv? Pag?s

Program in Computational Biology
Division of Public Health Sciences
Fred Hutchinson Cancer Research Center
1100 Fairview Ave. N, M1-B514
P.O. Box 19024
Seattle, WA 98109-1024

E-mail: hpages at fhcrc.org
Phone:  (206) 667-5791
Fax:    (206) 667-1319



[Rd] Question about Rweb
=?ISO-8859-1?Q?Herv=E9_Pag=E8s?=