Skip to content

Instantly share code, notes, and snippets.

View JoshuaTPierce's full-sized avatar

Joshua Pierce JoshuaTPierce

View GitHub Profile
#Clone Repository
git clone <url>
#Check Repo Status
git status
#Create New Branch
git checkout -b <newBranch name>
#Navigate to Directory
@JoshuaTPierce
JoshuaTPierce / Install Rattle on Windows
Last active June 30, 2017 02:13
How to Install Correct Version of RGtk2 to Install Rattle:
#Install RGtk2 Locally (I left in in my downloads folder) from the following link:
#https://cran.r-project.org/bin/windows/contrib/3.3/RGtk2_2.20.31.zip
#Install RGtk2 into RStudio from the local file with the function arguments repos=NULL and type = "win.binary":
>install.packages("FILEPATH", repos = NULL, type = "win.binary")
#Install Rattle, including dependencies:
>install.packages("rattle", dep=TRUE)
@JoshuaTPierce
JoshuaTPierce / RMD_and_GitHub.docx
Created June 7, 2017 17:21
Creating and Pushing a R-Markdown Document to Github (including graphs)
Go to github
Create new repository [don't need to initialize with the readme (can add later)]
Go to R Studio
File -> New Project -> Version Control -> Git
Ctrl+V repository URL from GitHub
File -> New -> Markdown, enter Title, etc.
In the Markdown window, change "output=html_document" to "output=github_document"
Knit the document for the first time, will prompt you to save
Save as Title.rmd
In the "git" tab of the R studio Environment window, you will notice that the knit produced: