Skip to content

Commit 978c8c9

Browse files
committed
Added if (!require(dplyr)), so that it won't be installed over and over and over.
1 parent 3e4c162 commit 978c8c9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

PA1_template.Rmd

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ Since we'll be using `group_by()` and related commands to figure this out we nee
4545

4646
```{r install_dplyr}
4747
options(repos="https://cran.rstudio.com" )
48-
install.packages("dplyr")
48+
if (!require(dplyr)) install.packages("dplyr")
4949
library(dplyr)
5050
```
5151

0 commit comments

Comments
 (0)