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_pictures
finalProjectMaterials.qmd
or catPictures
for128_f24
my_work_for_forestry128_in_fall_2024
myWorkFor_forestry128_inFall_2024
The 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/sarah
It 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/sarah
C:/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.qmd
C:/
C:/Users/Sarah
C:/Users/Sarah/Desktop
C:/Users/Sarah/Documents/for128/lab_01.qmd
~/Documents/for128/lab_01.qmd
lab_01.qmd
:
/home/sarah/Documents/for128/lab_01.qmd
/home/sarah/Documents
lab_01.qmd
is:
for128/lab_01.qmd
R
demoR
with setwd()
R
console, though. This does not apply to Quarto documents.R
with getwd()