From 6ca5e5f98ceb0236c73a53c723a7e49ad4f161e5 Mon Sep 17 00:00:00 2001 From: Lucas Holmquist Date: Fri, 9 Dec 2016 20:01:00 -0500 Subject: [PATCH] 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 --- benchmark/README.md | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/benchmark/README.md b/benchmark/README.md index a90f0f548fdab3..bbabcf4c4e9fde 100644 --- a/benchmark/README.md +++ b/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