Skip to content

Python and R: Writing Cross Language Tools (SciPy 2016 Talk)

License

Notifications You must be signed in to change notification settings

wlattner/SciPy_2016

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Python and R: Writing Cross Language Tools (SciPy 2016 Talk)

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published