Your SlideShare is downloading. ×
R Apache
Upcoming SlideShare
Loading in...5
×

Thanks for flagging this SlideShare!

Oops! An error has occurred.

×
Saving this for later? Get the SlideShare app to save on your phone or tablet. Read anywhere, anytime – even offline.
Text the download link to your phone
Standard text messaging rates apply

R Apache

1,119
views

Published on


0 Comments
2 Likes
Statistics
Notes
  • Be the first to comment

No Downloads
Views
Total Views
1,119
On Slideshare
0
From Embeds
0
Number of Embeds
1
Actions
Shares
0
Downloads
10
Comments
0
Likes
2
Embeds 0
No embeds

Report content
Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
No notes for slide

Transcript

  • 1. RApache Software Architecture Using R/Apache as the Statistical Engine for Web Applications http://biostat.mc.vanderbilt.edu/RApacheProject Jeffrey Horner Vanderbilt University Department of Biostatistics June 15, 2006Apache 2.0 Multi-Processing Models Hello World Example: http://locahost/test/hello -----------http.conf---------------+----------test.R--------------------------- | LoadModule R_module mod_R.so | handler <- function(r){ Prefork Perchild | apache.write(r,"<h1>Hello World!</h1>") Parent Parent <Location /test/hello> | OK SetHandler r-handler | } Children Children Rsource /var/www/html/test.R | RreqHandler handler | </Location> | | R R R -----------------------------------+-------------------------------------------- Worker WinNT Parent Parent Children Child
  • 2. GDD/NRart Example GDD/NRart Example Output library(’GDD’) library(’NRart’) r2 <- function(r) { apache.set_content_type(r,"image/png") GDD(ctx=apache.gdlib_ioctx(r),w=500,h=500,type="png") nr.image(x^3 + .28 * tan(x + t) + cos(x + 2*t)*.3i - 0.7, steps=3, points=400, col=rainbow(256), zlim=c(-pi, pi)) dev.off() OK }RApache Demonstrations Ongoing Work Full Feature Test Handler Demonstrates all the capabilities of RApache include CGI, Rmemcache manipulating HTTP headers, and file uploading. Implements client API to memcached, a possibly distributed EVT-Web cache (not a database) of small objects. R objects are Implements a web interface to a protein searching stored in memcache server via serialize(). algorithm using Extreme Value Theory. The web interface udbMySQL takes a group of related proteins as input from the user and generates a profile via an external program (MEME). Then Uses the "User Defined Database" interface to store R a model is built to predict which other proteins from a large objects of arbitrary size and structure in a MySQL table. database (MySQL) are also related to the group of proteins Getting the next release out the door that the user specified. Testing against Apache 2.2, R-2.3.1. Looking into getting Polyart rid of some of the apache.* methods in favor of a more Demonstrates the use of RApache as a web service to transparent interface, especially apache.write(). explore images created through the process of finding roots of functions, i.e. using the NRart package.

×