We also tick the Open in new session option. ![]() Navigate to where you want the directory created and click OK. You can then select where you want to create this directory by clicking on the Browse button opposite the Create project as a subdirectory of: option. This should then automatically fill out the Project Directory Name: section with the correct repository name (it’s important that the name of this directory has the same name as the repository you created in GitHub). Now paste the the URL you previously copied from GitHub into the Repository URL: box. In the pop up window select Version Control. In RStudio click on the File -> New Project menu. Ok, we now switch our attention to RStudio. URL that pops up for later (either highlight it all and copy or click on the copy to clipboard icon to the right). Next click on the green ‘Clone or Download’ button and copy the https//. Notice the README has been rendered in GitHub and is in markdown (.md) format (see Chapter 8 on R markdown if this doesn’t mean anything to you). ![]() Your new GitHub repository will now be created. Give your new repo a name (let’s call it first_repo for this Chapter), select ‘Public’, tick on the ‘Initialize this repository with a README’ (this is important) and then click on ‘Create repository’ (ignore the other options for now). Click on the ‘Repositories’ tab at the top and then on the green ‘New’ button on the right ![]() Go to your GitHub page and sign in if necessary. To use the GitHub first approach you will first need to create a repository (repo) on GitHub. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |