Most of our workshop materials can be found on GitHub. If you’re familiar with git and have it installed on your computer, you can use Git to clone the repository and pull individual files if needed. If you’re not familiar with git, you can download the files directly.
Downloading All Files
With Posit/RStudio Cloud
If you’re working online in RStudio/Posit Cloud, log into your account, and then click the blue “New Project” button. Choose “New Project from Git Repository” and enter the URL to the GitHub repository. The materials will be pulled over into your project for you.
To Your Computer
1. Download the files as a .zip file
When downloading materials to your laptop, it is easiest to download the entire repository. To do this, go to the GitHub page for the workshop, click on the green Code button, then download the repository as a ZIP file.
The filename may be different than what’s in the picture.
2. Unzip the file
Find the downloaded .zip file on your computer, likely in your Downloads folder. Unzip it – usually by either double-clicking (this should work on a Mac) or right-clicking it and choosing an option to unzip or uncompress (more likely on a Windows laptop). Unzipping the file will create a directory (folder) named after the GitHub repository. Move this directory (folder) somewhere on your computer where you’ll be able to find it, like your Documents folder or Desktop.
Be careful: on some Windows systems, when you double-click a .zip file, it will open a preview of the contents without actually unzipping the file. If you can’t find a folder with the files in it that you can move or copy to another location, it might just be a preview. Ask the workshop instructors if you need help.
Follow instructions for your workshop as to what file to open.
Downloading an Individual File
With Posit/RStudio Cloud
If set up your project by pulling the files from the GitHub repository, then you can use git to update a file. This gets a little complicated depending on whether the file has been edited or not, and whether it’s new. As an alternative, you can download the file you want to your computer (see below), and then upload the file using the Upload button in the Files tab in RStudio. See https://docs.posit.co/cloud/guide/data/.
To Your Computer
To download an individual file, navigate to it in GitHub so that the code of that file is displayed. In the header for the file contents, click the Download Raw icon:
Then save the file to your computer. Either save it with your other project files, or move it into the directory with your other project files.