In this chapter, we mainly introduce the fundamental programming knowledge in R. R is one of the most popular computer programming languages frequently used in biology.