Skip to content

Commit 6b98906

Browse files
lholmquistitaloacasas
authored andcommitted
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: #10204 PR-URL: #10211 Reviewed-By: Andreas Madsen <[email protected]>
1 parent ea16a2a commit 6b98906

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

benchmark/README.md

+15
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,21 @@ install.packages("ggplot2")
5050
install.packages("plyr")
5151
```
5252

53+
### CRAN Mirror Issues
54+
In the event you get a message that you need to select a CRAN mirror first.
55+
56+
You can specify a mirror by adding in the repo parameter.
57+
58+
If we used the "http://cran.us.r-project.org" mirror, it could look somehting like
59+
this:
60+
61+
```R
62+
install.packages("ggplot2", repo="http://cran.us.r-project.org")
63+
```
64+
65+
Of course, use the mirror that suits your location.
66+
A list of mirrors is [located here](https://cran.r-project.org/mirrors.html).
67+
5368
## Running benchmarks
5469

5570
### Running individual benchmarks

0 commit comments

Comments
 (0)