A Broad Packages Talk

Javier Luraschi - RStudio

Seattle useR

Packages

Packages

This talk will present packages to:

  • Scale computing: What to do when code is slow?
  • Perform non-standard visualizations, as in, beyond ggplot2.
  • Train deep learning models, to classify images and beyond.
  • Interoperate with other languages, like Python.

But first, lets talk about the lifecycle of a package…

Lifecycle

![](https://img.shields.io/badge/lifecycle-maturing-orange.svg)

SpaceX

A private aerospace manufacturer and space transportation services company.

Boston Robotics

An engineering and robotics design company founded in 1992 as a spin-off from the Massachusetts Institute of Technology.

Polar Bear

A polar bear exploring technological advancements applicable to maritime transportation.

Scaling

What to do when code is slow?

profvis

Visualize R profiling data.

cloudml

R interface to Google Cloud Machine Learning Engine.

Call:
lm(formula = sale_price ~ area + beds + age, data = hpiR::seattle_sales)

Coefficients:
(Intercept)         area         beds          age  
   166678.1      -1579.2     146588.3        216.7  

sparklyr

R Interface to Apache Spark.

Formula: sale_price ~ area + beds + age

Coefficients:
(Intercept)        area        beds         age 
166678.1295  -1579.1792 146588.2559    216.7374 

Visualization

r2d3

R Interface to D3 Visualizations.

nomnoml

The sassy diagram renderer.

nomnoml

The sassy diagram renderer.

voxels

Deep Learning

How does one classifies images?

Many more applications: Speech recognition, natural language processing, self-driving cars, etc. See arXiv:1803.01164.

TensorFlow

[1] 2

keras

Deep Learning for humans.

$acc
[1] 0.9681

pixels

Tools for Working with Pixels in R

kerasjs

Run Keras models in the browser, with GPU support using WebGL.

Show HN: Embedding Deep Learning models into your Slides using R

kartsim

Kart simulation for model training

Interoperability

How do I work with Python projects?

  • reticulate: Call Python code from R.
  • feather: Save and load data from R and Python.
  • arrow: Share data in memory from R and other languages.

Feather

A lightweight binary columnar data store designed for maximum speed, based on Arrow’s memory layout.

Arrow

Apache Arrow is a cross-language development platform for in-memory data.

The R arrow package supports feather, parquet, streams, and more.

Thanks!

Thanks!

  • github: github.com/javierluraschi
  • twitter: twitter.com/javierluraschi
  • linkedin: linkedin.com/in/javierluraschi