Тёмный

Connecting an existing RStudio project to git and GitHub (CC145) 

Riffomonas Project
Подписаться 21 тыс.
Просмотров 50 тыс.
50% 1

git and GitHub are a great tools for facilitating reproducibility. RStudio is a wonderful tool for writing in R. Put them together - AWESOMENESS. In this Code Club episode, Pat shows how to get going with version control using an existing RStudio project and then how to push the project to GitHub.
Pat uses functions from the tidyverse including functions from the #ggplot2, #dplyr, showtext, ggtext and glue packages in #RStudio. The accompanying blog post can be found at www.riffomonas.org/code_club/....
Want more practice on the concepts covered in Code Club? You can sign up for my weekly newsletter at shop.riffomonas.org/youtube to get practice problems, tips, and insights.
R: r-project.org
RStudio: rstudio.com
Workshops: www.mothur.org/wiki/workshops
Here's a link for the chartr newsletter: www.chartr.co
If you're interested in taking an upcoming 3 day R workshop be sure to check out our schedule at riffomonas.org/workshops/
You can also find complete tutorials for learning R with the tidyverse using...
Microbial ecology data: www.riffomonas.org/minimalR/
General data: www.riffomonas.org/generalR/
0:00 Introduction
1:32 Creating our local git repository
3:58 Creating an account on GitHub
4:44 Creating repository on GitHub
5:39 Connect local repository to GitHub
6:32 Adding and modifying files to repository
9:25 Recap

Наука

Опубликовано:

 

17 июл 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 89   
@Riffomonas
@Riffomonas 2 года назад
What kind of questions do you have about using git or GitHub?
@lukegroene6629
@lukegroene6629 2 года назад
Hi! When committing during creating a local git repository, I am getting this message popping up in R: git config --global user.email "you@example.com" git config --global user.name "Your Name" When typing these into the terminal, and retrying, the message still occurs. Is this a common mistake?
@Riffomonas
@Riffomonas 2 года назад
Hi Luke - Can you try to run those from a command line outside of RStudio? Then try running "git config --global -l" from the command line and make sure there are values there for user.name and user.email. Let me know if this doesn't solve the problem
@AndreaDalseno
@AndreaDalseno 2 года назад
Hi, thank you for your videos. Nowadays anyone can have unlimited private repositories also with the free version of github, you have a limit of 500MB of storage (for private only) though.
@Riffomonas
@Riffomonas 2 года назад
@@AndreaDalseno that's fantastic! thanks
@rimjhimster
@rimjhimster Год назад
This video has been super helpful. I don't know if you are still monitoring these but if I have an existing repository and existing Rproj that I wasnt using git on but ratherly stupidly copy pasting code in GitHub folder. How do I now, link the project to the repository. Added caveat - what if I want to put that stuff on a branch? Thanks.
@katep841
@katep841 5 месяцев назад
My grad program taught me a whole lot about R but nothing about GitHub. I've been so lost trying to figure out how to get my R scripts into GitHub until now. Thank you so much!!!
@aidanperkins3947
@aidanperkins3947 20 дней назад
you sir are my hero, i was so lost without you
@Riffomonas
@Riffomonas 19 дней назад
lol - thanks! I'm glad you found this helpful
@resford1
@resford1 2 года назад
Thank you very much for making this! I just started learning R and GitHub and am really excited to keep all my projects organized for other folks to see and share.
@Riffomonas
@Riffomonas 2 года назад
Hey Resford, I'm glad to hear the video was helpful! Project organization is an under appreciated part of reproducible research
@chughag
@chughag Год назад
Thank you!! Really appreciate for creating these simple, concise yet powerful tutorials.
@chrismatthis9710
@chrismatthis9710 Год назад
Your videos are immensely helpful! Also they are so friendly for beginners like me. Really appreciate you making and sharing these vids!!
@niceday2015
@niceday2015 2 года назад
Simple and straightforward, GREAT! A big thanks to you!
@Riffomonas
@Riffomonas 2 года назад
Thanks 🤓
@PedroRibeiro-zs5go
@PedroRibeiro-zs5go Год назад
Thanks man, this video was EXTREMELY useful!! Awesome!
@Riffomonas
@Riffomonas Год назад
Excellent! Thanks for watching Pedro🤓
@jonf568
@jonf568 2 года назад
This may seem like simple steps but this really clarified a lot of things, huge thanks from California :)
@Riffomonas
@Riffomonas 2 года назад
Wonderful! Thanks for watching and I’m glad it was helpful
2 года назад
This is really helpful, I'm sure I'll comeback to this video a few times.
@Riffomonas
@Riffomonas 2 года назад
Thanks for watching!😊
@salihabdullahkilic
@salihabdullahkilic Год назад
great content, keep it up bruv!
@maniramraj4324
@maniramraj4324 Месяц назад
Thanks for teaching this subject
@Riffomonas
@Riffomonas Месяц назад
My pleasure - glad you found the video useful!
@birasafabrice
@birasafabrice 2 года назад
thank for this amazing video, it helped a lot!
@Riffomonas
@Riffomonas 2 года назад
Glad to hear it!
@dhercar
@dhercar 2 года назад
That was helpful! Thank you.
@Riffomonas
@Riffomonas 2 года назад
Glad it was helpful! Thanks for watching :)
@ifeyinwaodiaka9295
@ifeyinwaodiaka9295 11 месяцев назад
Many thanks. Very helpful.
@andreas.chrysostomou
@andreas.chrysostomou Год назад
Very helpful! Thanks a lot!
@Riffomonas
@Riffomonas Год назад
Glad it helped!
@yumidera
@yumidera 2 года назад
Thanks for great instruction! I got stuck at the new authentication method a bit, but made it through!!
@Riffomonas
@Riffomonas 2 года назад
Wonderful!
@josevaldes7493
@josevaldes7493 11 месяцев назад
Thanks man. this is a great videos
@AlexKashie
@AlexKashie 9 месяцев назад
Possible to like this video 1000 times? Thank you Sir
@sven9r
@sven9r 2 года назад
Our Lab doesn't use it, but I still try to manage my projects in GIT. I don't know why but I like Gitlab more. Thanks for sharing your point of view over and over again. I don't know why you only have 3k subs.
@Riffomonas
@Riffomonas 2 года назад
Thanks! We’ll get there 😊 I’m still learning how to do RU-vid better and have confidence the channel will keep growing
@marcelofalchetti
@marcelofalchetti 2 года назад
Amazing, thanks!
@Riffomonas
@Riffomonas 2 года назад
Thanks Marcelo!
@mariaortega2636
@mariaortega2636 Год назад
Very helpful! Thankyouu
@evareindl7472
@evareindl7472 Год назад
Thank you so much!!
@yaqinguo8971
@yaqinguo8971 2 года назад
great video!
@Riffomonas
@Riffomonas 2 года назад
Thanks! 🤓
@fit_sarthi
@fit_sarthi 2 года назад
☺ Thanks, Appreciated . Can you please make videos on how to make nested loops in R - that we can use for feature engineering and all ?
@Riffomonas
@Riffomonas 2 года назад
Hey Sahil! I did a for loop episode a while back. Maybe that will help? ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-hG7SSfBXVuM.html
@josekaromo153
@josekaromo153 Год назад
Thanks for this
@Riffomonas
@Riffomonas Год назад
My pleasure! Thanks for watching 🤓
@SergioUribe
@SergioUribe 2 года назад
THANK YOU!
@Riffomonas
@Riffomonas 2 года назад
My pleasure!
@AntoinSts
@AntoinSts 2 месяца назад
Thanks very much :)
@Riffomonas
@Riffomonas 2 месяца назад
My pleasure - glad you found it helpful!
@marerlevin2494
@marerlevin2494 2 года назад
Maybe just for others that run into the same problem. Do not create a README file at the start when creating your repository. At least I had the problem that I then could not link my Rproject with my github repository because it said that there were files in my github repository that were not on my local computer. Just follow his instructions precisely and you should not run into any trouble. In the process of trying to fix my issue I also linked my Rstudio with my github using a SSH-key but I am not sure if that was really necessary. I used github for the very first time and this was my first repository ever made on my github account.
@Riffomonas
@Riffomonas 2 года назад
Thanks Marer - glad you got it working!🤓
@pikineestest7362
@pikineestest7362 Год назад
Hi Professor thanks for sharing. I have problems when installing R packages in ubuntu or Linux, it take several times and often rise "exit with zero status" please help. Thanks.
@Riffomonas
@Riffomonas Год назад
Thanks for watching! Sorry to hear you're having problems with installing packages. Try doing it in Rstudio. If it complains that it can't find a different package when installing the package you want, go ahead and try to install the package it's complaining about
@mmuti7800
@mmuti7800 2 года назад
this video just earned u a like, subscribe and a comment ✌
@Riffomonas
@Riffomonas 2 года назад
whoop whoop! 🤣
@kelvas6839
@kelvas6839 2 года назад
Hey, thanks for the very helpful video. My Git Acc doesn't show me any Quick setup information after creating my repository ( no codes pop up)
@Riffomonas
@Riffomonas 2 года назад
Hmm I’m not sure I follow what you’re saying. You don’t see git in rstudio?are you sure you have git installed on your computer?
@kelvas6839
@kelvas6839 2 года назад
@@Riffomonas I have managed to connect Git and RStudio just now by using PAT. What I meant before is that after creating a new repository I don’t see a window with Quick setup where I could copy the push settings
@joseluisloren904
@joseluisloren904 2 года назад
Just wanted to say that now private repositories are also available with the free version.
@Riffomonas
@Riffomonas 2 года назад
It’s such a great service!
@emkahuda776
@emkahuda776 2 года назад
Thank you for the great video. I am using RStudio server and connecting it to the Github. I have successfully committed and pushed several times. However, today, I accidentally commit a large file from RStudio to Github. It causes errors and "push" process is failed. Then I tried to commit a small file and push it (hoping it will work normally), and it turned out to fail as well since, I guess, the prior commit was failed. Therefore, now I have 2 commits not pushed to Github yet. I got the message "Your branch is ahead of 'origin/main' by 2 commits." My question is how to solve the issue? The first option is I want to cancel the committing a large file, or possibly second commit I can push the large file. I prefer the first one actually. Please help me to solve it. Thank you.
@Riffomonas
@Riffomonas 2 года назад
If you google for how to undo commits you’ll find some good tutorials. If you try this from the command line it should reset your local repository to match the remote repository: git reset --hard origin/ the should be the name of your branch on GitHub. Be sure to add the problem file to your .gitignore file
@mubassirwrites
@mubassirwrites 10 месяцев назад
sir how to create python environment in r studio. i want to run RNN and LSTM models in r.
@andrea-mj9ce
@andrea-mj9ce 2 года назад
A little off-topic, but what open R project do you recommend to join as a 4-year experience person with interest in machine learning ?
@Riffomonas
@Riffomonas 2 года назад
Wonderful question! Somewhat selfishly maybe mikropml could use some help?
@andrea-mj9ce
@andrea-mj9ce 2 года назад
@@Riffomonas I have seen that mikropml is a package for ml tools for microbiology. Is it recommended to have knowledge on microbiology to contribute to this package ?
@Riffomonas
@Riffomonas 2 года назад
@@andrea-mj9ce it's widely used outside of microbiology so no need for micro expertise!
@birasafabrice
@birasafabrice 2 года назад
why don't find the option of setting version control to git at 2:50? I only have "none" option... any help is appreciated. thanks!
@birasafabrice
@birasafabrice 2 года назад
sorry, I got that question solved from the previous video. thank you!
@Riffomonas
@Riffomonas 2 года назад
Hi Birasa - glad you got it worked out!
@prateekshahegde1528
@prateekshahegde1528 2 года назад
Same issue...! please help
@janeroque4733
@janeroque4733 Год назад
In my version control option, I only see none, there is no other option. What can I do in that case?
@Riffomonas
@Riffomonas Год назад
Hi Jane - thanks for watching! First make sure you have git installed on your computer
@nellyiwuh20
@nellyiwuh20 Год назад
Hello. I tried to commit my data to git but it opens an interface and asks me to put in email and name. I can't type in this interface tho.
@prateekshahegde1528
@prateekshahegde1528 2 года назад
I don't have a option git, in version control, please tell what I am missing
@Riffomonas
@Riffomonas 2 года назад
Can you double check that you have git installed?
@prateekshahegde1528
@prateekshahegde1528 2 года назад
Yeah.. just installed
@Toawsome2care
@Toawsome2care 2 года назад
I always get promoted to enter my username and password even when i enter my personal access token I only ever seem the get the message fatal: unable to access
@Riffomonas
@Riffomonas 2 года назад
Hi Heather! Sorry, I haven't gone to using the PAT yet. I'm still using the ssh keys.
@po-t7299
@po-t7299 Год назад
Git is giving me headaches at the moment. The Git tab is not showing no matter how I configure things, change the path, or whatever. The joy of using Windows 😂
@Riffomonas
@Riffomonas Год назад
Can you double check you have git installed? You might also confirm that the preferences are set right for version control?
@po-t7299
@po-t7299 Год назад
@@Riffomonas It was a stupid thing... like usual 🤣 I was trying to run Git on a project stored on an external hard drive, but because of the formatting of the hard drive, I do not have full write permission. I ran it on my PC's hard drive and it worked perfectly.
@po-t7299
@po-t7299 Год назад
@@Riffomonas Also, thank you for your tutorial! It is better explained than the official Happy Git book.
@kanchanaramar
@kanchanaramar Год назад
@@po-t7299 Thanks. I had the very same issue. I was clueless - till I read your post. Worked for me as well. Riffomonas Project, thanks for creating and uploading this video!
Далее
Кто сделал Катар богатым? #shorts
0:59
Using git and GitHub in R Studio
20:20
Просмотров 19 тыс.
A tutorial for writing functions in R (CC177)
14:37
Просмотров 14 тыс.
Git Tutorial For Dummies
19:25
Просмотров 1 млн
Three approaches to organize your R project (CC178)
16:59
Choose a phone for your mom
0:20
Просмотров 7 млн