You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Automate setup process for using/building packages (and Intro to R?)
checkr ?
Ideal: send people a script that they can source, then instructors get an email (not necessarily realistic, but a nice goal)
# Check R version (3.3 or higher)
R.version
# Check RStudio version (1.0 or higher)
RStudio.Version()
# Check necessary packages installed
# devtools, roxygen2, testthat, knitr
# go to Packages tab
pkgs <- installed.packages()[,1]
sapply(c("devtools", "knitr", "testthat", "roxygen2"),
function(n,x){any(grepl(n,x))}, x=pkgs)
# RTools installed (not Macs)
# go to start button & type to see if it's installed
# Git and Git Bash are available
# go to start button & type to see if it's installed
# Restart R if you needed to install Git
# Setup SSH
# Is SSH already setup?
ls -al ~/.ssh
# If so, is there a password setup? Get rid of it.
ssh-keygen -p
# If not, create a new SSH key
ssh-keygen -t rsa -b 4096 -C "[email protected]"
# Start the SSH key
eval $(ssh-agent -s)
# Add key to ssh-agent
ssh-add ~/.ssh/id_rsa
# Add SSH to GitHub account
# Settings >> SSH
# Copy key to clipboard
clip < ~/.ssh/id_rsa.pub
# "Add SSH key", paste in body
# Test that it's hooked up to GitHub properly
ssh -T [email protected]
# Test SSH/git
# Fork a GitHub repo
# Copy address (SSH)
# Go to RStudio & Create new proj w/ version CTRL
# Paste address
# Git Shell - add upstream
# Copy Main repo address
git add remote upstream <address>
git remote -v
# Pull from upstream
git pull upstream master
# Make a change & commit
git push origin master
# Test that you can build a package
# In the RStudio proj you started, try pressing “Build and Reload”
# There could still be missing software if this doesn’t work
The text was updated successfully, but these errors were encountered:
Automate setup process for using/building packages (and Intro to R?)
The text was updated successfully, but these errors were encountered: