SciPy_2016
SciPy_2016 copied to clipboard
Python and R: Writing Cross Language Tools (SciPy 2016 Talk)
Python and R: Together At Last
Writing Cross-Language Tools
This repo contains slides and code examples for a SciPy 2016 talk in which
we implement a function that computes the sum of an array (tally).
The Python Package
Build
cd tally_py && python setup.py develop
Run
import numpy as np
from tally_py import tally
a = np.array([1., 2., 3.])
tally(a)
# 6
The R Package
Build
Using devtools:
cd tally_r && Rscript -e "devtools::install()"
Run
library(tallyR)
tally(c(1, 2, 3))
# [1] 6