Skip to content
Coming soon: Ally. Your guide to the world of AI and R. Learn More →
R for the Rest of Us Logo

Using Git and GitHub with R

Publish Repository from Local to Remote

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

Publish your website project to GitHub using GitHub Desktop or RStudio.

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

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

Michael Lai

Michael Lai • October 14, 2025

My Rstudio says 'curl_parse_url' is not an exported object from 'namespace:curl' when I typed use_github(). Usethis has been installed and loaded already. What was wrong with the process?

David Keyes

David Keyes Founder • October 14, 2025

Very strange. Can you try reinstalling the {curl} package? After that, try reinstalling the {usethis} package and see if the issue is resolved.

Michael Lai

Michael Lai • October 17, 2025

I reinstalled. The same error happened. You can see my screen cap here: https://drive.google.com/file/d/1H2QzLpwurCeOKjIyHN3hm_VAPcCyXetH/view?usp=sharing Can you help me on this? Otherwise I cannot move ahead...

David Keyes

David Keyes Founder • October 17, 2025

Can you tell me what versions of the {usethis} and {curl} packages you have installed? Here's how you can check.

Michael Lai

Michael Lai • October 18, 2025

usethis is 3.2.1 curl is 5.2.1

David Keyes

David Keyes Founder • October 18, 2025

Ok, it seems like you have an old version of curl for some reason. Please try running this:

install.packages('curl', repos = c('https://jeroen.r-universe.dev', 'https://cloud.r-project.org'))

You should then have the latest version, which is 6.4.0. Please let me know if this solves the issue for you.

Michael Lai

Michael Lai • October 21, 2025

I tried you code, but for some reason the version I managed to install is still 5.2.1 (see the picture below)

https://drive.google.com/file/d/10ZQqC5llQVp3p2itMLoELJPk3elt-KTD/view?usp=sharing

It says something like binaray package which I am not sure if it matters. And I still got the same message when I typed use_github()

FYI my Rstudio is build 4.63

David Keyes

David Keyes Founder • October 21, 2025

Ok, let's have you download and install RTools and then try again. If this doesn't work, I'll jump on a quick call with you to get this taken care of.

Michael Lai

Michael Lai • October 23, 2025

Hi David, After installing Rtools, I still couldn't manage to install curl is 7.0.1 to RStudio. You can see my screen cap here: https://drive.google.com/drive/u/0/folders/1lwuPKJVzTq0Ps03Knw9tBCjjT_ly_GVk I do appreciate if if you could indeed make a Zoom or Google Meet call to help me guide through the problem. Thanks.

Michael Lai

Michael Lai • October 23, 2025

Hi David, After installing Rtools, I still couldn't manage to install curl is 7.0.1 to RStudio. You can see my screen cap here: https://drive.google.com/drive/u/0/folders/1lwuPKJVzTq0Ps03Knw9tBCjjT_ly_GVk I do appreciate if if you could indeed make a Zoom or Google Meet call to help me guide through the problem. Thanks.

Michael Lai

Michael Lai • October 23, 2025

Sorry the link above should be this instead:

https://drive.google.com/file/d/1yflmtC--l9zdTjo8AMPUEJsjJmEp-LxG/view?usp=sharing

David Keyes

David Keyes Founder • October 23, 2025

I'll email you directly

Michael Lai

Michael Lai • October 24, 2025

I solved the issue - all it takes is to update R to 4.5.1! The curl automatically becomes 7.0 and use_github() works. Sorry for the hassle, maybe at least you could tell your students that usegithub won't work on R4.2. =)

David Keyes

David Keyes Founder • October 24, 2025

Glad you got it fixed!