R, RStudio, and QuartoR is a programming language.R and our computer).Image credit: The Culinary School of Fort Worth
R, the ingredientsImage credit: foodandwine.com
Image credit: Country living magazine
Image credit: budgetbytes.com
Understanding your computer and its file system is vital to success in this class and beyond.
Last week, we threw you into the deep end with data science tools.
This week, we’ll spend a bit more time on the details to help you interact with your computer and these tools.
Today, we’ll focus on file systems and file/folder naming.
Some best practices are important for naming files and folders:
lab_01.qmd or cat_picturesfinalProjectMaterials.qmd or catPicturesfor128_f24my_work_for_forestry128_in_fall_2024myWorkFor_forestry128_inFall_2024The root directory is the start or base of your file system.
C://When interacting with your computer, you are logged in as a user. Each user has a home directory.
For example:
C:/Users/Sarah/home/sarahIt is often easier to use a shortcut to access your home directory: ~. On Windows, macOS, and Linux, you can use ~ to access your home directory:
~ is equivalent to C:/Users/Sarah and /home/sarahC:/Users/Sarah and /home/sarah are examples of paths. In particular, these are paths to Sarah’s home directory.
//home/sarah/home/sarah/Desktop/home/sarah/Documents/for128/lab_01.qmd~/Documents/for128/lab_01.qmdC:/C:/Users/SarahC:/Users/Sarah/DesktopC:/Users/Sarah/Documents/for128/lab_01.qmd~/Documents/for128/lab_01.qmdlab_01.qmd:
/home/sarah/Documents/for128/lab_01.qmd/home/sarah/Documentslab_01.qmd is:
for128/lab_01.qmdR demoR with setwd()
R console, though. This does not apply to Quarto documents.R with getwd()