

Once you are done typing the command, press ENTER to proceed with the installation: This is how the command would look like in the R Console. Since in our case, we are interested to install the readxl package, then you’ll need to type this command in the R Console: install.packages("readxl") Now you’ll need to use the following template to install your package: install.packages("name of the package") Step 2: Type the command to install the package Steps to Install a Package in R Step 1: Launch R The same steps that will be reviewed can be used to install other packages in R as well. This package is used to import Excel files into R. In general, you can use this template to install a package in R: install.packages("name of the package")įor illustration purposes, I’ll show you how to install the readxl package. In this short guide, I’ll show you how to install a package in R using a simple example. Often times you may need to install a package in R.
