Skip to content

Commit

Permalink
add default repo
Browse files Browse the repository at this point in the history
  • Loading branch information
tompollard committed Jan 26, 2017
1 parent 68ed5a1 commit 2d759b9
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion notebooks/consort_diagram/plot_consort_diagram.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,9 @@ For more details, see:
```{r loadpackages, include=FALSE}
.packages <- c("diagram")
.inst <- .packages %in% installed.packages()
if(length(.packages[!.inst]) > 0) install.packages(.packages[!.inst])
if(length(.packages[!.inst]) > 0) {
install.packages(.packages[!.inst], repos = "http://cran.rstudio.com")
}
lapply(.packages, library, character.only=TRUE)
```

Expand Down

0 comments on commit 2d759b9

Please sign in to comment.