diff --git a/basics.Rmd b/basics.Rmd index 1f9691774..572bf4ecb 100644 --- a/basics.Rmd +++ b/basics.Rmd @@ -28,7 +28,7 @@ r_latest_version <- xml2::read_html("https://cran.r-project.org/bin/macosx/") %> rstudio_latest_version <- xml2::read_html("https://www.rstudio.com/products/rstudio/download/") %>% - rvest::html_node("h4") %>% + rvest::html_node("h3") %>% rvest::html_text() %>% stringr::str_extract_all("[0-9].") %>% unlist() %>% @@ -36,9 +36,9 @@ rstudio_latest_version <- ``` -1. [Install R](https://r4ds.had.co.nz/introduction.html#r2){target="_blank"} (*r4ds*) -- You need to have this installed but you won't open the application since you'll be working in RStudio. If you already installed R, make sure you're current! The latest version of R is `r r_latest_version`. (You will have to reinstall packages after updating; think of it as good housekeeping.) +1. [Install R](https://r4ds.had.co.nz/introduction.html#r2){target="_blank"} (*r4ds*) -- You need to have this installed but you won't open the application since you'll be working in RStudio. If you already installed R, make sure you're current! The latest version of R (as of `r Sys.Date()` is `r r_latest_version`. (You will have to reinstall packages after updating; think of it as good housekeeping.) -2. [Install RStudio](https://r4ds.had.co.nz/introduction.html#rstudio3){target="_blank"} (*r4ds*) -- Download the free, Desktop version for your OS. Working in this IDE will make working in R much more enjoyable. As with R, stay current. RStudio is constantly adding new features. The latest version is `r rstudio_latest_version`. +2. [Install RStudio](https://r4ds.had.co.nz/introduction.html#rstudio3){target="_blank"} (*r4ds*) -- Download the free, Desktop version for your OS. Working in this IDE will make working in R much more enjoyable. As with R, stay current. RStudio is constantly adding new features. The latest version (as of `r Sys.Date()`) is `r rstudio_latest_version`. 3. [Get comfortable with RStudio](https://b-rodrigues.github.io/modern_R/getting-to-know-rstudio.html){target="_blank"} -- In this chapter of Bruno Rodriguez's *Modern R with the Tidyverse*, you'll learn about panes, options, getting help, keyboard shortcuts, projects, add-ins, and packages. Be sure to try out: