Skip to content

Commit 10c7782

Browse files
committed
Added a note about issue with installing packages by means of R Markdown / knitr.
1 parent 978c8c9 commit 10c7782

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

PA1_template.Rmd

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,11 @@ if (!require(dplyr)) install.packages("dplyr")
4949
library(dplyr)
5050
```
5151

52+
NOTE:
53+
54+
Installing packages by means of R Markdown (`knitr` document) is not advised. The consensus seems to be that users should manage their own package library. We should assume that people know how to install a missing package. Here we've opted to download and install the package _only_ if it's necessary. Arguably a number of users might have dplyr installed / loaded already. See this [resource](https://stackoverflow.com/questions/33969024/install-packages-fails-in-knitr-document-trying-to-use-cran-without-setting-a) for more on the subject.
55+
56+
5257
Calculate mean total number of steps per day:
5358

5459
```{r mean_total_steps}

0 commit comments

Comments
 (0)