Environment
Commands
ls() # list variables in memory
rm(varaibleName) # remove variables from memory
class(variableName) # check variable data type
		
Script
Rscript script.R # implement a R script
source("s1.R") # implement a R script in RStudio
		
Directory
getwd() #get the current directory
setwd(path) #set the working directory
list.dir(getwd()) #list files in the current directory
		
Data
data() # list datasets are available on your machine
		
Reference
  • Installing R Packages