Preface
This tutorial presumes that you have R and R Studio installed, or that you have an account on rstudio.cloud. If you do not already have R and/or R Studio you will need to download and install them. You must first install R from R Project and then the R Studio IDE from R Studio.
R Studio Projects
Projects are a better way to manage code rather than creating individual R Notebooks, R Scripts, and other code files. Projects allows all files, including data files, to be managed as a single unit, shared, and version controlled using services such as git and GitHub.
Tutorial
The tutorial below demonstrates how to create a project in R Studio and add files to the project.
Link to Video: Creating Projects in R Studio
References
No references.
Errata
None collected yet. Let us know.
LS0tCnRpdGxlOiAiV29ya2luZyB3aXRoIFIgUHJvamVjdHMiCnBhcmFtczoKICBjYXRlZ29yeTogNgogIG51bWJlcjogMjAyCiAgdGltZTogNDUKICBsZXZlbDogYmVnaW5uZXIKICB0YWdzOiAicixyIHN0dWRpbyxwcmltZXIiCiAgZGVzY3JpcHRpb246ICJFeHBsYWlucyB0aGUgYmVuZWZpdHMgb2Ygd29ya2luZyB3aXRoIFIgUHJvamVjdHMuIFNvd3MgaG93IHRvCiAgICAgICAgICAgICAgICBjcmVhdGUgYSBuZXcgUiBQcm9qZWN0IGluIFIgU3R1ZGlvLiIKZGF0ZTogIjxzbWFsbD5gciBTeXMuRGF0ZSgpYDwvc21hbGw+IgphdXRob3I6ICI8c21hbGw+TWFydGluIFNjaGVkbGJhdWVyPC9zbWFsbD4iCmVtYWlsOiAibS5zY2hlZGxiYXVlckBuZXUuZWR1IgphZmZpbGl0YXRpb246ICJOb3J0aGVhc3Rlcm4gVW5pdmVyc2l0eSIKb3V0cHV0OiAKICBib29rZG93bjo6aHRtbF9kb2N1bWVudDI6CiAgICB0b2M6IHRydWUKICAgIHRvY19mbG9hdDogdHJ1ZQogICAgY29sbGFwc2VkOiBmYWxzZQogICAgbnVtYmVyX3NlY3Rpb25zOiBmYWxzZQogICAgY29kZV9kb3dubG9hZDogdHJ1ZQogICAgdGhlbWU6IHNwYWNlbGFiCiAgICBoaWdobGlnaHQ6IHRhbmdvCi0tLQoKLS0tCnRpdGxlOiAiPHNtYWxsPmBy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