rstudio::conf(2022)
Designing the data science classroom
Mine Çetinkaya-Rundel
Full demo notes can be found here.
available::available()
usethis::create_package()
RStudio Cloud > Module 7 - Data package
data-raw
folder for data prep and properly ignore it from package building with usethis::use_data_raw()
.
weather
, put weather.R
and weather.csv
.weather.R
.devtools::load_all()
.usethis::use_r("weather")
.
devtools::document()
, devtools::load_all()
, ?weather
.usethis::use_git()
, then usethis::use_github()
.usethis::use_readme_rmd()
. Write some info, knit, commit, and push.DESCRIPTION
file and usethis::use_gpl3_license()
.usethis::use_pkgdown()
, build the site with devtools::build_site()
.usethis::use_github_pages()
, then use_github_action(name = "pkgdown")
. Check the action running on the repo and view your pkgdown website.RStudio Cloud > Module 7 - Data package
Add a new dataset: cities.csv
. Document it to the best of your ability. The data source is Wikipedia.
Work with your neighbor throughout this process. You might also choose to pair program, where only one of you write code and the other navigates.
usethis::use_tutorial("explore-usweather", title = "Exploring weather in US cities")
.devtools::install_github("YOUR_GITHUB_USERNAME/usweather")
. Confirm that the tutorial is accessible in the Tutorials pane.[Time permitting]
RStudio Cloud > Module 7 - Data package
Download this hex logo and add it to the package website. Take a look at the usethis documentation for functions that can help you place the file in the right location.
Work with your neighbor throughout this process. You might also choose to pair program, where only one of you write code and the other navigates.