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>
This commit is contained in:
parent
4a5c719be5
commit
eceef76918
@ -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…
x
Reference in New Issue
Block a user