From f91bfc164827b42fdfd2e1b2d2fa6f4de2c958b1 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Laurent=20Sch=C3=BCpbach?=
There are approximately 5600 packages on CRAN covering a wide range of topics There are approximately 7100 packages on CRAN covering a wide range of topics A list of some topics is available through the Task
Views link, which groups
together many R packages related to a given topicObtaining R Packages
-
Installing an R Package
function in R
To install a single package, pass the name of the package to the
install.packages()
function as the first argument
The following the code installs the slidify package from CRAN
The following the code installs the ggplot2 package from CRAN
install.packages("slidify")
+install.packages("ggplot2")
-This command downloads the slidify package from CRAN and
+
This command downloads the ggplot2 package from CRAN and
installs it on your computer
Any packages on which this package depends will also be downloaded
and installed
@@ -131,7 +131,7 @@ Installing an R Package
Place the names of the R packages in a character vector
-install.packages(c("slidify", "ggplot2", "devtools"))
+install.packages(c("ggplot2", "swirl", "devtools"))
diff --git a/01_DataScientistToolbox/02_09_installingRPackages/index.md b/01_DataScientistToolbox/02_09_installingRPackages/index.md
index bb50c21b1..eb7e4ebf0 100644
--- a/01_DataScientistToolbox/02_09_installingRPackages/index.md
+++ b/01_DataScientistToolbox/02_09_installingRPackages/index.md
@@ -53,7 +53,7 @@ head(rownames(a), 3) ## Show the names of the first few packages
-- There are approximately 5600 packages on CRAN covering a wide range of topics
+- There are approximately 7100 packages on CRAN covering a wide range of topics
- A list of some topics is available through the [Task
Views](http://cran.r-project.org/web/views/) link, which groups
@@ -69,15 +69,15 @@ head(rownames(a), 3) ## Show the names of the first few packages
- To install a single package, pass the name of the package to the
`install.packages()` function as the first argument
-- The following the code installs the **slidify** package from CRAN
+- The following the code installs the **ggplot2** package from CRAN
```r
-install.packages("slidify")
+install.packages("ggplot2")
```
-- This command downloads the **slidify** package from CRAN and
+- This command downloads the **ggplot2** package from CRAN and
installs it on your computer
- Any packages on which this package depends will also be downloaded
@@ -94,7 +94,7 @@ install.packages("slidify")
```r
-install.packages(c("slidify", "ggplot2", "devtools"))
+install.packages(c("ggplot2", "swirl", "devtools"))
```