R for
Authoring!!

OOH Session #82…
…test piloting

GitHub Copilot (II)

Open Office Hours
(June 17, 2025)

Recap of Session
#81:

GitHub Copilot

{datasets} package within base :

# Capture the output of library(help = "datasets")
datasets_list <- data(package = "datasets")$results[, "Item"]
# Display as a bullet list
cat(paste0("- ", datasets_list, collapse = "\n"))
- AirPassengers
- BJsales
- BJsales.lead (BJsales)
- BOD
- CO2
- ChickWeight
- DNase
- EuStockMarkets
- Formaldehyde
- HairEyeColor
- Harman23.cor
- Harman74.cor
- Indometh
- InsectSprays
- JohnsonJohnson
- LakeHuron
- LifeCycleSavings
- Loblolly
- Nile
- Orange
- OrchardSprays
- PlantGrowth
- Puromycin
- Seatbelts
- Theoph
- Titanic
- ToothGrowth
- UCBAdmissions
- UKDriverDeaths
- UKgas
- USAccDeaths
- USArrests
- USJudgeRatings
- USPersonalExpenditure
- UScitiesD
- VADeaths
- WWWusage
- WorldPhones
- ability.cov
- airmiles
- airquality
- anscombe
- attenu
- attitude
- austres
- beaver1 (beavers)
- beaver2 (beavers)
- cars
- chickwts
- co2
- crimtab
- discoveries
- esoph
- euro
- euro.cross (euro)
- eurodist
- faithful
- fdeaths (UKLungDeaths)
- freeny
- freeny.x (freeny)
- freeny.y (freeny)
- gait
- infert
- iris
- iris3
- islands
- ldeaths (UKLungDeaths)
- lh
- longley
- lynx
- mdeaths (UKLungDeaths)
- morley
- mtcars
- nhtemp
- nottem
- npk
- occupationalStatus
- penguins
- penguins_raw (penguins)
- precip
- presidents
- pressure
- quakes
- randu
- rivers
- rock
- sleep
- stack.loss (stackloss)
- stack.x (stackloss)
- stackloss
- state.abb (state)
- state.area (state)
- state.center (state)
- state.division (state)
- state.name (state)
- state.region (state)
- state.x77 (state)
- sunspot.m2014 (sunspot.month)
- sunspot.month
- sunspot.year
- sunspots
- swiss
- treering
- trees
- uspop
- volcano
- warpbreaks
- women

  1. Create a account
  2. Request access to
  3. Enable Copilot in your IDE
  4. Start coding with Copilot’s suggestions
  5. Use Copilot’s features like code completion, suggestions, and documentation generation

Note

Recommended steps were suggestions (slightly edited by Kulas)

Today…

Back into the Matrix

Session Info (June 17, 2025) Rendering:

R version 4.5.0 (2025-04-11 ucrt)
Platform: x86_64-w64-mingw32/x64
Running under: Windows 10 x64 (build 19045)

Matrix products: default
  LAPACK version 3.12.1

locale:
[1] LC_COLLATE=English_United States.utf8 
[2] LC_CTYPE=English_United States.utf8   
[3] LC_MONETARY=English_United States.utf8
[4] LC_NUMERIC=C                          
[5] LC_TIME=English_United States.utf8    

time zone: America/Chicago
tzcode source: internal

attached base packages:
[1] stats     graphics  grDevices utils     datasets  methods   base     

other attached packages:
[1] fontawesome_0.5.3

loaded via a namespace (and not attached):
 [1] digest_0.6.37     assertthat_0.2.1  lubridate_1.9.4   fastmap_1.2.0    
 [5] xfun_0.52         magrittr_2.0.3    glue_1.8.0        stringr_1.5.1    
 [9] knitr_1.50        htmltools_0.5.8.1 timechange_0.3.0  generics_0.1.3   
[13] rmarkdown_2.29    lifecycle_1.0.4   cli_3.6.5         vctrs_0.6.5      
[17] compiler_4.5.0    purrr_1.0.4       emo_0.0.0.9000    rstudioapi_0.17.1
[21] tools_4.5.0       evaluate_1.0.3    yaml_2.3.10       rlang_1.1.6      
[25] jsonlite_2.0.0    crayon_1.5.3      stringi_1.8.7