From 4778a2be614ec1f1556596a792f2ae0f820afb6b Mon Sep 17 00:00:00 2001 From: Pete Date: Fri, 19 Jan 2018 11:32:31 -0600 Subject: [PATCH 1/3] Adding How to add R packages Adding an R package is not obvious if learners have installed Anaconda. Not sure where this lesson might fall in the grand scheme of things, but adding the simple command-line example helps. --- setup.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/setup.md b/setup.md index cee9669b..2347e58f 100644 --- a/setup.md +++ b/setup.md @@ -178,7 +178,9 @@ you must install the software described below. We use [knitr][cran-knitr], [stringr][cran-stringr], and [checkpoint][cran-checkpoint] to format lessons written in R Markdown, so you will need to install these to build R lessons - (and this example lesson). + (and this example lesson). The best way to install these packages is to open an R window and type: + "> install.packages('package_name', dependencies = TRUE)" Substitute the 'package_name' with + either 'knitr', 'stringer', and then 'checkpoint'. If you want to run `bin/lesson_check.py` (which is invoked by `make lesson-check`) you will need Jekyll (so that you have its Markdown parser, which is called Kramdown) From 8d0946629beb901af5dd52090d3cf907ef4e3095 Mon Sep 17 00:00:00 2001 From: Pete Date: Tue, 6 Feb 2018 10:06:44 -0600 Subject: [PATCH 2/3] Separating code for copy-paste in PR --- setup.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/setup.md b/setup.md index 2347e58f..e8196084 100644 --- a/setup.md +++ b/setup.md @@ -179,7 +179,8 @@ you must install the software described below. to format lessons written in R Markdown, so you will need to install these to build R lessons (and this example lesson). The best way to install these packages is to open an R window and type: - "> install.packages('package_name', dependencies = TRUE)" Substitute the 'package_name' with + `> install.packages('package_name', dependencies = TRUE)` + Substitute the 'package_name' with either 'knitr', 'stringer', and then 'checkpoint'. If you want to run `bin/lesson_check.py` (which is invoked by `make lesson-check`) From ffcafb4aa404db2269ccf8bc6cff89715c3d6d3a Mon Sep 17 00:00:00 2001 From: Pete Date: Tue, 6 Feb 2018 10:35:39 -0600 Subject: [PATCH 3/3] callout for all three commands wrote each command individually --- setup.md | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/setup.md b/setup.md index e8196084..2170344b 100644 --- a/setup.md +++ b/setup.md @@ -179,9 +179,11 @@ you must install the software described below. to format lessons written in R Markdown, so you will need to install these to build R lessons (and this example lesson). The best way to install these packages is to open an R window and type: - `> install.packages('package_name', dependencies = TRUE)` - Substitute the 'package_name' with - either 'knitr', 'stringer', and then 'checkpoint'. + ``` + > install.packages('knitr', dependencies = TRUE) + > install.packages('stringer', dependencies = TRUE) + > install.packages('checkpoint', dependencies = TRUE) + ``` If you want to run `bin/lesson_check.py` (which is invoked by `make lesson-check`) you will need Jekyll (so that you have its Markdown parser, which is called Kramdown)