You will see any changes that have been made to your files since the last commit here. The Git tab allows you to use Git and push to GitHub within RStudio.Take note of the following points annotated in the screenshot below: Your RStudio window should open a new project in the specfied directory. Paste the link to your remote repo in the Repository URL box, name the folder that will contain your R package files, and browse to where you want the folder to be saved in your filesystem. Please see Chapter 13: Detect Git from RStudio for troubleshooting this. Note that if you get an error or you don’t see this option, this likely means that your RStudio doesn’t know where to find your local Git installation. Usethis :: use_git_config( user.name = "gauss", user.email = Step 2: New RStudio Project via git cloneĬreate a local copy of the remote repo using RStudio projects:Ĭlick on Git. # identify yourself to Git with the usethis package # use the exact same username and email associated # with your GitHub account Pacman :: p_load(knitr, rmarkdown, devtools, roxygen2, usethis) # this command checks if you have the packages already installed, # then installs the missing packages, then loads the libraries In this workshop I will be using GitKraken. You are free to use the GUI of your choice or simply the command line. This is optional but highly recommended, particularly for new Git users. GitKraken is to Git what RStudio is to R. This is a GUI for Git which makes it much easier to dive into version control without the command line. I also recommend reading Jenny Bryan’s advice on carefully choosing a username. We will use GitHub to host the source files of our R package.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |