getwd() #get working directory setwd("~/Desktop/") #set working directory #setwd works with linux absolute or relative pathnames: # ~/ returns you to your login directory # /home/ takes you to the home directory #where user login directories are usually stored # ../ moves you up one directory # ./my_sub_dir moves you down to the subdirectory #named "my_sub_dir" getwd() #get working directory dir() #list of directory files ls() #list of R objects