slides

Quarto

R Presenter has been rebranded as Quarto. Quarto enables you to weave together content and executable code into a finished presentation. To learn more about Quarto presentations see https://quarto.org/docs/presentations/.

Posit

In fact, Rstudio (the company) got purchased by Posit.

  • They were talking about rebranding RStudio (the IDE), but haven’t yet. Too much equity in the brand name, I guess.
  • But what’s super cool, is RStudio now supports running Python code alongside R, thanks to the reticulate package.
# Python
print(".tsafkaerb rof R stae nohtyP"[::-1])
Python eats R for breakfast.

More Code

Let’s compare…

# Python
def reverse_string(s):
  return s[::-1]
print(reverse_string(".tsafkaerb rof R stae nohtyP"))
Python eats R for breakfast.

# R
reverse_string <- function(s) {
  return(paste(rev(strsplit(s, NULL)[[1]]), collapse = ""))
}
print(reverse_string(".edoc R eht ta gnikool tsuj niarb ym struh sihT"))
[1] "This hurts my brain just looking at the R code."

One More Slide

library(ggplot2) 
g = ggplot(mtcars, aes(x = disp, y = hp, color=factor(cyl))) + 
  geom_point() +
  theme_minimal() +
  labs(title="Can't get enough of that mtcars...",
       caption="Figure 1.",
       y="Horsepower",
       x="Displacement [cu in]")
g