- Start a New Project in Rstudio
- Use
Version Control
>Git
> Repo Urlhttps://github.com/statsccpr/proj_skel.git
- Use a relevant domain-specific name for your local project (NOT
proj_skel
) - Choose local destination for your local project
- Note: uses
/proj_skel/.Rprofile
which you can modify
- place chickenscratch prototype scripts in
/tests/proto/
- place good-standing scripts in
/scripts/
- place raw data in
/data/raw/
- place processed data in
/data/proc/
- place output in
/output/
- place writeup in
/writeup/
- formal assertion-travisci tests in
/tests/
In destination directory, use command in command line
git clone \..\source\.git \..\destination\
see this for local clone
- push your local project to new github repo (NOT
proj_skel
)
- login github
- create a new github repo
https://github.com/new
- See this
- The remote repo destination likely already exists (the template repo) so remove it, if cloned project template from github (via Setup section)
git remote -v show
git remote rm origin
- tell local git where to look on github (new repo from step 1)
git remote add github git@foo_new_name_from_step_1
- push local git to remote github
git push -u github master
- See general reference on remote repos
- Tell collaborators to
Fork
your github repo as their own local repo - They make changes and
Push
to their own global repo - Everyone can
New Pull Request
>Compare Across Forks
- Pull
head fork
edits (yours) intobase fork
edits (theirs)