
Whenever you open R, these packages automatically load and you can immediately start to use the functions they contain. When R is installed, you can access bundled packages (e.g., base, graphics) that provide access to a suite of functions capable of performing a range of tasks. In R, functions are stored and shared in units referred to as packages.

R, as with other programming languages, uses functions for performing different tasks. If you’re interested in specializing your Rstudio window even further, you can create custom editor themes (see this Rstudio blog for a useful tutorial). Using a dark palette in RStudio is especially useful during long work sessions.
RSTUDIO THEMES CODE
Note we included example code to illustrate syntax highlighting. For example, an RStudio window using the Modern theme and the Ambiance Editor theme is shown in Figure 2.2. We generally find that Editor themes with a dark background and mellow colored syntax highlighting is easier on the eyes. You can also switch the Editor font and specify the Editor theme from a suite of options. To switch between themes, click on the Tools bar at the top of the window, click on the Global Options tab, and then click on the Appearance tab where you will see the option to switch between three RStudio themes: Modern, Classic, and Sky. RStudio provides great flexibility in changing themes and code highlighting to customize the RStudio interface. Although we will use RStudio, most of what is presented in this book can be accomplished in R (without an added interface) with few or no changes.įigure 2.1 shows the default Rstudio theme and layout. We will use the RStudio IDE, which according to its developers “is a powerful productive user interface for R.” 6 RStudio is widely used, it is used increasingly in the R community, and it makes learning to use R a bit simpler. At minimum, an IDE typically consists of a source code editor and build automation tools.
RSTUDIO THEMES SOFTWARE
These interfaces are used to facilitate software development. Generally such interfaces are referred to as integrated development environments (IDE). Several enhanced interfaces for R have been developed.


4.4.1 Accessing Specific Elements of Data Frames.4.1.2 Accessing Specific Elements of Vectors.

RSTUDIO THEMES HOW TO
