This lesson is still being designed and assembled (Pre-Alpha version)

Overview

Teaching: 10
Exercises: 2

Questions

  • How do you know which packages you used?

Objectives

  • Print out the packages used in a session.

Conclusion

Reproducibility!!

Challenge 1: Can you do it?

What is the output of this command?

sessionInfo()

Output

R version 4.0.5 (2021-03-31)
Platform: x86_64-apple-darwin17.0 (64-bit)
Running under: macOS Catalina 10.15.7

Matrix products: default
BLAS:   /Library/Frameworks/R.framework/Versions/4.0/Resources/lib/libRblas.dylib
LAPACK: /Library/Frameworks/R.framework/Versions/4.0/Resources/lib/libRlapack.dylib

locale:
[1] en_US.UTF-8/en_US.UTF-8/en_US.UTF-8/C/en_US.UTF-8/en_US.UTF-8

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

loaded via a namespace (and not attached):
 [1] compiler_4.0.5       magrittr_2.0.1       assertthat_0.2.1    
 [4] tools_4.0.5          stringi_1.6.1        knitr_1.33          
 [7] stringr_1.4.0        xfun_0.22            evaluate_0.14       
[10] sandpaper_0.0.0.9023

This tells you everything you need!!

Keypoints

  • Use .Rmd files for lessons even if you don’t need to generate any code
  • Run sandpaper::check_lesson() to identify any issues with your lesson
  • Run sandpaper::build_lesson() to preview your lesson locally