About this Course
In this course, you will be introduced to shell commands. We have selected a set of commands we think will be useful in general to a wide range of audience. After completing this course, you should be able to use the shell for version control, managing cloud services (like deploying your own shiny server etc.), execute shell commands in R & RMarkdown and execute R commands and scripts in the shell.
What will you learn?
Apart from learning shell commands, the tutorial will also focus on
- exploring R release names
- mapping shell commands to R functions
- exploring RStudio Terminal
- executing shell commands from R
- execute shell commands in RMarkdown
- execute R scripts in the shell
You will need a computer with internet access. We have created a RStudio Cloud Project to ensure that all readers are using the same environment while learning.
Who is this course for?
This course is for anyone who is interested in learning to use shell/terminal for data science or in general.
How this course is structured?
- Introduction introduces the shell. It shows how to launch it in different operating systems. Apart from introducing the RStudio terminal, it will explore basic commands and different ways to view the documentation.
- Navigating File System explores how to navigate between different directories, list contents of a directory and create & delete files & directories.
- File Management describes how to create, copy, move, delete and compare files and directories.
- Input/Output demonstrates how to print text on the terminal and read content from files. It will cover sorting/viewing/searching file contents.
- Search & Regex shows how to search text in file(s) using pattern matching and find files and folders using names and extensions.
- sudo describes super user and root user privileges and shows how to install, update and remove packages using `sudo`.
- Retrieve Content from Web explores how to download files from the internet using `wget` and `curl`.
- File Compression demonstrates how to list, extract, create and add files to archives using `tar`, `gzip`, `zip` and `unzip`.
- System Info & Others explains how to view system information, suspend activity and access command history list.
- R & Shell demonstrates how to execute shell commands in R. It will also look at using shell commands in RMarkdown documents and how to execute R commands and scripts from the command line.