Overview
Syllabus
Intro
What is R? • A tool for statistical data analysis and graphical representation of data and results • Open Source
What is Rserve?
pyRserve Python-Land
What is pyRserve?
QAP1 Python-Land
QAP1 - Quad Attributes Protocol V1 • Message-orientierted binary protocol Exchange arbitrary complex data
Installation
Easy start...
First real steps: String evaluation Simple expression in R, result returned to Python
More string evaluation • Creating a function in R and calling it
R Namespaces Connector conn provides two special attributes
A more pythonic approach ... (1)
Functions as arguments In R many functions expect functions as arguments
References to variables in R
Out-of-bound messages ... aka callbacks • Allows R to push messages to Python These trigger pre-defined callback functions • Rserve needs to be started with special config file
Basic usage of Out-of-bound messages Setup a callback function in Python
Application of oob (1): progress report
Taught by
EuroPython Conference