Chapter 4 The different faces of R code: The console, scripts & RMarkdown

There are a number of ways to interact with R

  • Directly in the console, like a scientific calculator
  • Using script files (.R) with
  • R code types out and sent over to the console
  • notes “commented out” using hastags “#”
  • rmarkdown (.Rmd) files with
  • R code in species code chunks
  • notes written like in a word precessor
  • formatting using markdown, a markup language

This chapter will briefly introduce these different ways of working in R