Tutorial Rstudio GitHub Markdown
Repoyitorij napravljen prema uputama u tutorialu GitHub and RStudio
This tutorial teaches you to create R Markdown documents with RStudio and publish them via GitHub, using GitHub Pages.
Now that you have what you need installed locally, let’s create the repository that will hold your new website.
- On GitHub.com, create a new repository. Note: if your organization uses GitHub Enterprise you can also create the repository there.
- Name your repository cars. You can use a different name.
- Enter a description for your repository.
- Choose Public visibility.
- Select Initialize this repository with a README.
- Click Add .ignore and select R.
- Click Create repository.
After you’ve created a repository on GitHub (the remote repository), the next step is to clone it to your local environment.
- On GitHub, navigate to the Code tab of the repository.
- On the right side of the screen, click Clone or download.
- Click the Copy to clipboard icon to the right of the repository URL.
- Open RStudio on your local environment.
- Click File, New Project, Version Control, Git.
- Paste the repository URL and enter TAB to move to the Project directory name field.
- Click Create Project.
Now that you have a local copy of the repository, let’s add an R Markdown document to your project.
- In RStudio click File, New File, R Markdown.
- Choose HTML output as default output.
- Click File, Save to save the document.
- Enter speed-and-distance and click Save