Skip to content
R for the Rest of Us Logo

Pull a GitHub Repository to an RStudio Project

This lesson is locked

Get access to all lessons in this course.

Transcript

Click on the transcript to go to that point in the video. Please note that transcripts are auto generated and may contain minor inaccuracies.

Your Turn

  1. Create a new repository on GitHub called github-first

  2. Create a new project in RStudio by cloning the github-first GitHub repository you just created

Have any questions? Put them below and we will help you out!

You need to be signed-in to comment on this post. Login.

Is there a best practice to pull from a public code to start a project? For example, there is a project I want to start but someone has done something similar and it might be easier to start from their code.

David Keyes

David Keyes

October 28, 2022

I'd say it depends how much of the project you plan to use. If you just want a bit of the code, I'd just copy it. If you want to use the whole setup etc, then I'd do what's called forking or cloning it. You can learn about those at https://happygitwithr.com/fork-and-clone.html and https://happygitwithr.com/clone.html

Josh Gutwill

Josh Gutwill

October 31, 2022

I keep encountering a bug in your VSA course software, where I click "Mark Complete," it loads the next chapter of the course, but the video doesn't load. I see nothing where the video should be. It started when I first loaded the "Push a Github Repo" chapter. I cleared my cache, and that didn't fix it. Then I logged out and logged in again, and that fixed it. I was able to watch the Push video. But now that I've moved onto the "Pull" chapter, the video again does not load. I'll post this issue and then log out and log back in to see if that fixes it.

Charlie Hadley

Charlie Hadley

November 1, 2022

Thanks for the report - I'm glad that it's working after logging out!

Josh Gutwill

Josh Gutwill

October 31, 2022

Logging out and and back in did seem to fix it. We'll see what happens when I mark complete and go to the next chapter.