Explore Connect Documentation
Snippets
1
2
3
4
5
6
7
# change directory to home directory
setwd("~")  
# display all files in current directory
dir(path = ".", all.files = TRUE)
# execute bash command ls -al (in Linux)
system("ls -al")  
Press desired key combination and then press ENTER.