+ - 0:00:00
Notes for current slide
Notes for next slide

Rstudio::conf 2020

😏
powered by xaringan

Amy Tzu-Yu Chen

1 / 11

R-Ladies Photo

2 / 11

RMarkdown

  • Now you can use Rmarkdown to produce (almost) any type of documents. You can even reuse them easily
3 / 11

RMarkdown

  • Now you can use Rmarkdown to produce (almost) any type of documents. You can even reuse them easily
library(rmarkdown) # Docs
library(xaringan) # Slides
library(blogdown) # Blogs or simple website
library(pkgdown) # R package website
library(bookdown) # Write a book
3 / 11

RMarkdown

  • Now you can use Rmarkdown to produce (almost) any type of documents. You can even reuse them easily
library(rmarkdown) # Docs
library(xaringan) # Slides
library(blogdown) # Blogs or simple website
library(pkgdown) # R package website
library(bookdown) # Write a book
3 / 11

RMarkdown

  • Now you can use Rmarkdown to produce (almost) any type of documents. You can even reuse them easily
library(rmarkdown) # Docs
library(xaringan) # Slides
library(blogdown) # Blogs or simple website
library(pkgdown) # R package website
library(bookdown) # Write a book

[1] Rob Hyndman had a talk on Rmd. He uses Rmarkdown for everything except writing emails. Has template R packages etc.

[2] Yihui had a cool demo on how changing 1-5 lines can change one single Rmd into 14 different format

[3] Show infinite moon reader

[4] Show examples

3 / 11

Highcharter

  • not free for commercial use
4 / 11

Common New Tools for Pkg Dev

library(usethis) # Set up stuff that you can't ever remember
library(roxygen2) # Documentation
library(testthat) # Write tests
library(devtools) # Iterate and develop
library(remotes) # Install github dependencies
5 / 11

ggplot2

  • The general trend: encourage people to build their own extensions instead of contributing back to ggplot2.

  • Upcoming release of 4.0

  • Focus on faster rendering of plots

6 / 11

ggplot2

  • The general trend: encourage people to build their own extensions instead of contributing back to ggplot2.

  • Upcoming release of 4.0

  • Focus on faster rendering of plots

  • ggproto: basically build your own gg class

6 / 11

funneljoin

landed %>%
after_inner_join(registered,
by_user = "user_id",
by_time = "timestamp",
type = "first-firstafter",
suffix = c("_landed", "_registered"))
#> # A tibble: 5 x 3
#> user_id timestamp_landed timestamp_registered
#> <dbl> <date> <date>
#> 1 1 2018-07-01 2018-07-02
#> 2 4 2018-07-01 2018-07-02
#> 3 3 2018-07-02 2018-07-02
#> 4 6 2018-07-07 2018-07-10
#> 5 5 2018-07-10 2018-07-11
7 / 11

library(later)

  • Asynchronous programming came up a lot. Partly due to popularity of shiny.

  • Schedule an R function or formula to run after a specified period of time.

  • Similar to JavaScript's setTimeout function.

later::later(function() {
summary(mtcars)
}, 5)

[*] Not really. See next page.

8 / 11

library(future)

  • Unifying R parallel solutions across platforms without changing much on existing code

  • Page 6-9

10 / 11

Thanks!

Slides created via the R package xaringan.

11 / 11

R-Ladies Photo

2 / 11
Paused

Help

Keyboard shortcuts

, , Pg Up, k Go to previous slide
, , Pg Dn, Space, j Go to next slide
Home Go to first slide
End Go to last slide
Number + Return Go to specific slide
b / m / f Toggle blackout / mirrored / fullscreen mode
c Clone slideshow
p Toggle presenter mode
t Restart the presentation timer
?, h Toggle this help
Esc Back to slideshow