This repository has been archived by the owner on Apr 28, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
01_rstudio_projects.Rmd
91 lines (36 loc) · 5.93 KB
/
01_rstudio_projects.Rmd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
```{r setup, include=FALSE}
knitr::opts_chunk$set(echo = TRUE)
```
# RStudio and Projects
You've seen RStudio in the first class in the sequence. Remember [R](https://www.r-project.org/) is the main software that we are going to use to analyze data in this class. R is one of the two most popular languages for data science. We will learn a lot more about it throughout the courses, but here we are just going to use it to take a peak at the data you have created. R is a piece of software that is used for running computer code. [RStudio](https://www.rstudio.com/) is a company that makes a piece of software that works with R. RStudio makes it easier to create, save, share, and work with R code and data sets. RStudio is also useful for organizing projects and writing, organizing, and sharing your data science work.
If you have a more traditional laptop you can download and install R and RStudio on your laptop. But this class is part of our DataTrail program where we will be teaching you how to do everything through a web browser. Fortunately RStudio also offers a web-based version of their software called RStudio Cloud.
### Logging in to RStudio Cloud
To use this software, open your web browser and navigate to the website [https://rstudio.cloud/](https://rstudio.cloud/).
![Navigate to RStudio Cloud in your web browser](https://docs.google.com/presentation/d/1biGNswdBbE9iEzbIBsVT0anGcDXnI1UhZM1l165ixig/export/png?id=1biGNswdBbE9iEzbIBsVT0anGcDXnI1UhZM1l165ixig&pageid=g2bfdb07292_0_151)
You should see a screen that looks like this. You can click the button in the top right to log in.
![Log in to RStudio Cloud](https://docs.google.com/presentation/d/1biGNswdBbE9iEzbIBsVT0anGcDXnI1UhZM1l165ixig/export/png?id=1biGNswdBbE9iEzbIBsVT0anGcDXnI1UhZM1l165ixig&pageid=g313d649b28_0_1)
When you click _Log In_ you will be offered options for Logging in, for our class you will log in with your Google Account so click on that option.
![Choose to log in with Google](https://docs.google.com/presentation/d/1biGNswdBbE9iEzbIBsVT0anGcDXnI1UhZM1l165ixig/export/png?id=1biGNswdBbE9iEzbIBsVT0anGcDXnI1UhZM1l165ixig&pageid=g313d649b28_0_7)
Then you will be asked to select which Google account or log in with a new Google account. Click on the Google account you have set up for this course.
![Choose your Google account](https://docs.google.com/presentation/d/1biGNswdBbE9iEzbIBsVT0anGcDXnI1UhZM1l165ixig/export/png?id=1biGNswdBbE9iEzbIBsVT0anGcDXnI1UhZM1l165ixig&pageid=g313d649b28_0_15)
You should now see a list of your projects. This is a list of the instructor's projects, your list will be different.
![Choose your Google account](https://docs.google.com/presentation/d/1biGNswdBbE9iEzbIBsVT0anGcDXnI1UhZM1l165ixig/export/png?id=1biGNswdBbE9iEzbIBsVT0anGcDXnI1UhZM1l165ixig&pageid=g313d649b28_0_22)
Now you can create a new project to work on for the rest of this class. To create a new project click on _New project_ in the upper right hand corner.
![Create a new project](https://docs.google.com/presentation/d/1biGNswdBbE9iEzbIBsVT0anGcDXnI1UhZM1l165ixig/export/png?id=1biGNswdBbE9iEzbIBsVT0anGcDXnI1UhZM1l165ixig&pageid=g313d649b28_0_29)
If you click on the name of the project - currently it will be _Untitled Project_ - then you can rename it.
![Click to change the title of the project](https://docs.google.com/presentation/d/1biGNswdBbE9iEzbIBsVT0anGcDXnI1UhZM1l165ixig/export/png?id=1biGNswdBbE9iEzbIBsVT0anGcDXnI1UhZM1l165ixig&pageid=g313d649b28_0_35)
To make things simple let's call it _my_first_project_. You will call it that by typing the name into the box for the project name.
![Rename the project my_first_project](https://docs.google.com/presentation/d/1biGNswdBbE9iEzbIBsVT0anGcDXnI1UhZM1l165ixig/export/png?id=1biGNswdBbE9iEzbIBsVT0anGcDXnI1UhZM1l165ixig&pageid=g313d649b28_0_41)
We will come back to this project later and talk about where to put files, data, and other parts of your project. But for now, if you want to see all the projects you have you can click on the words _Your Workspace_ at the top left of the screen.
![Click on Your Workspace to see all of your projects](https://docs.google.com/presentation/d/1biGNswdBbE9iEzbIBsVT0anGcDXnI1UhZM1l165ixig/export/png?id=1biGNswdBbE9iEzbIBsVT0anGcDXnI1UhZM1l165ixig&pageid=g313d649b28_0_181)
If you want to return to a project, just click on the project name, for example by clicking on _my_first_project_.
![Click a project name to return to your project.](https://docs.google.com/presentation/d/1biGNswdBbE9iEzbIBsVT0anGcDXnI1UhZM1l165ixig/export/png?id=1biGNswdBbE9iEzbIBsVT0anGcDXnI1UhZM1l165ixig&pageid=g313d649b28_0_219)
You will have more than one project you may want to organize. Projects are organized into Spaces. A space is just a place that lists out multiple projects. To see your other spaces click on the menu bar indicated by the three stacked lines in the upper left.
![Click a project name to return to your project.](https://docs.google.com/presentation/d/1biGNswdBbE9iEzbIBsVT0anGcDXnI1UhZM1l165ixig/export/png?id=1biGNswdBbE9iEzbIBsVT0anGcDXnI1UhZM1l165ixig&pageid=g313ea4ce38_0_19)
If you have done the first course in the sequence then you belong at least to the _Introduction to DataTrail_ Space. You can click on the name of this space in the upper left to see your projects in that space.
![Click a project name to return to your project.](https://docs.google.com/presentation/d/1biGNswdBbE9iEzbIBsVT0anGcDXnI1UhZM1l165ixig/export/png?id=1biGNswdBbE9iEzbIBsVT0anGcDXnI1UhZM1l165ixig&pageid=g313ea4ce38_0_33)
If you want to return to your original space, click again in the top left hand on the menu bar, then click on _Your Workspace_ to return to your main set of projects.
Now that you know how to create and navigate projects in the next lecture we will talk about organizing the files that fall within a project.
### Slides and Video
[Automated Video](https://youtu.be/grfF9ODSbxQ)
* [Slides](https://docs.google.com/presentation/d/1biGNswdBbE9iEzbIBsVT0anGcDXnI1UhZM1l165ixig/edit?usp=sharing)