Skip to content

Commit

Permalink
doc: document R CRAN mirror process
Browse files Browse the repository at this point in the history
The current benchmark docs showing how to install R packages
doesn't go into how to specify a CRAN mirror.

This commit shows how to specify the repo parameter when
installing a package.

Fixes: #10204
PR-URL: #10211
Reviewed-By: Andreas Madsen <amwebdk@gmail.com>
  • Loading branch information
lholmquist authored and italoacasas committed Dec 17, 2016
1 parent ea16a2a commit 6b98906
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions benchmark/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,21 @@ install.packages("ggplot2")
install.packages("plyr")
```

### CRAN Mirror Issues
In the event you get a message that you need to select a CRAN mirror first.

You can specify a mirror by adding in the repo parameter.

If we used the "http://cran.us.r-project.org" mirror, it could look somehting like
this:

```R
install.packages("ggplot2", repo="http://cran.us.r-project.org")
```

Of course, use the mirror that suits your location.
A list of mirrors is [located here](https://cran.r-project.org/mirrors.html).

## Running benchmarks

### Running individual benchmarks
Expand Down

0 comments on commit 6b98906

Please sign in to comment.