Browse Source

doc: document R CRAN mirror process

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: https://github.com/nodejs/node/issues/10204
PR-URL: https://github.com/nodejs/node/pull/10211
Reviewed-By: Andreas Madsen <amwebdk@gmail.com>
v6
Lucas Holmquist 8 years ago
committed by Lance Ball
parent
commit
eceef76918
No known key found for this signature in database GPG Key ID: A36D601AFAF00813
  1. 15
      benchmark/README.md

15
benchmark/README.md

@ -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

Loading…
Cancel
Save