git clone git@github.com:YOUR-USERNAME/YOUR-FORKED-REPO.git
cd into/cloned/fork-repo
git remote add upstream git://github.com/ORIGINAL-DEV-USERNAME/REPO-YOU-FORKED-FROM.git
git fetch upstream
curl -s https://api.github.com/orgs/twitter/repos?per_page=200 | ruby -rubygems -e 'require "json"; JSON.load(STDIN.read).each { |repo| %x[git clone #{repo["ssh_url"]} ]}' |
First, make repoA contain only the files from the subdirectory you care about. To do this, we're going to first create a new working branch, and then use the filter-branch function of git. | |
cd ~/repoA | |
git branch -b informative_branch_name | |
git filter-branch --subdirectory-filter branch/you/want/with/trailing/slash/ -- --all | |
If you ls, you'll see that the repo contains only the files from the desired subdirectory. It would be a poor decision to push at this time. | |
Next, visit repoB, and add repoA as a remote. After that, check out the branch you just created (informative_branch_name) |
# My preferred defaults (may be changed in individual chunks) | |
opts_chunk$set(tidy=FALSE, warning=FALSE, message=FALSE, cache=TRUE, | |
comment=NA, verbose=TRUE, fig.width=6, fig.height=4) | |
# Name the cache path and fig.path based on filename... | |
opts_chunk$set(fig.path = paste("figure/", | |
gsub(".Rmd", "", knitr:::knit_concord$get('infile')), | |
"-", sep=""), | |
cache.path = paste(gsub(".Rmd", "", knitr:::knit_concord$get('infile') ), | |
"/", sep="")) |
library("shiny") | |
library("foreign") |
People
:bowtie: |
😄 :smile: |
😆 :laughing: |
---|---|---|
😊 :blush: |
😃 :smiley: |
:relaxed: |
😏 :smirk: |
😍 :heart_eyes: |
😘 :kissing_heart: |
😚 :kissing_closed_eyes: |
😳 :flushed: |
😌 :relieved: |
😆 :satisfied: |
😁 :grin: |
😉 :wink: |
😜 :stuck_out_tongue_winking_eye: |
😝 :stuck_out_tongue_closed_eyes: |
😀 :grinning: |
😗 :kissing: |
😙 :kissing_smiling_eyes: |
😛 :stuck_out_tongue: |
# check.packages function: install and load multiple R packages. | |
# Check to see if packages are installed. Install them if they are not, then load them into the R session. | |
check.packages <- function(pkg){ | |
new.pkg <- pkg[!(pkg %in% installed.packages()[, "Package"])] | |
if (length(new.pkg)) | |
install.packages(new.pkg, dependencies = TRUE) | |
sapply(pkg, require, character.only = TRUE) | |
} | |
# Usage example |
<a href="https://drive.google.com/uc?export=view&id=XXX"><img src="https://drive.google.com/uc?export=view&id=XXX" style="width: 500px; max-width: 100%; height: auto" title="Click for the larger version." /></a> |