diff --git a/01_DataScientistToolbox/02_09_installingRPackages/index.Rmd b/01_DataScientistToolbox/02_09_installingRPackages/index.Rmd index 769548003..0912289ba 100644 --- a/01_DataScientistToolbox/02_09_installingRPackages/index.Rmd +++ b/01_DataScientistToolbox/02_09_installingRPackages/index.Rmd @@ -64,13 +64,13 @@ n <- signif(nrow(a), 2) - 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, eval=FALSE} -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 @@ -86,7 +86,7 @@ install.packages("slidify") - Place the names of the R packages in a character vector ```{r, eval=FALSE} -install.packages(c("slidify", "ggplot2", "devtools")) +install.packages(c("ggplot2", "swirl", "devtools")) ``` --- diff --git a/01_DataScientistToolbox/02_09_installingRPackages/index.html b/01_DataScientistToolbox/02_09_installingRPackages/index.html index db5febd43..fefce9983 100644 --- a/01_DataScientistToolbox/02_09_installingRPackages/index.html +++ b/01_DataScientistToolbox/02_09_installingRPackages/index.html @@ -83,7 +83,7 @@
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 topic
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"))
```