From 11aa9ea449a125be3bc535f449cc7f440033e479 Mon Sep 17 00:00:00 2001 From: Andree Valle Campos Date: Sat, 11 Nov 2023 21:19:11 +0000 Subject: [PATCH] add prereq and open how to create project. --- episodes/03-create.md | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/episodes/03-create.md b/episodes/03-create.md index df92a7c868..51e25da77f 100644 --- a/episodes/03-create.md +++ b/episodes/03-create.md @@ -33,6 +33,14 @@ In this episode, we are going to learn how to initialize Git to create a Local R Let's start with a new R project in Rstudio. +::::::::::::::::: prereq + +### PREREQUISITES + +To start, you need to be out of any R project. In Rstudio, close you Project from `File` > `Close Project`. You can confirm this in the upper right corner `Project: (None)`. + +:::::::::::::::::::::::: + ## Create a local repository Once Git is configured, @@ -58,7 +66,9 @@ Courtesy NASA/JPL-Caltech. [CC BY-SA 3.0](https://creativecommons.org/licenses/by-sa/3.0/deed.en). --> -First, let's create a new project folder for our work. If using RStudio desktop, the project is opened in a new session. Otherwise, the working directory and active project is changed: +First, let's create a new project folder for our work. Create a new project as you like. Here we are going to use functions from the `{usethis}` package. + +If using RStudio desktop, the project is opened in a new session. Otherwise, the working directory and active project is changed: ```r usethis::create_project(path = "cases")