-
Notifications
You must be signed in to change notification settings - Fork 4
ergm development workflow
The procedure for ergm will be slightly different than for EpiModel. This page is being updated accordingly and it should be ready by Nov. 5.
Fork the ergm GitHub Repository
- Either (a) visit https://github.com/statnet/ergm, click "Fork" near the upper right, and choose your own GitHub repository in which to fork the ergm repository; or (b) use your own local GitHub client (e.g., GitHub Desktop) to create a fork of statnet/ergm in your own GitHub repository.
Create a New Project in RStudio
-
Open R and start a New Session (Session -> New Session)
-
Start a New Project (File -> New Project)
-
When the 'New Project' window appears, select 'Version Control' and then 'Git'.
-
Enter the URL of your newly created ergm fork, usually something like 'https://github.com/MyPersonalGitHubAccount/ergm'
-
Enter the local name of your project's directory as well as your local path where that directory should be created.
-
Click 'Create Project'.
Create a New Branch
Create a new branch based off of the ergm "master" branch for each new issue/feature/enhancement.
In RStudio: In the pane with the "Git" tab (often in the upper right of the screen), click "Git" and then click "New Branch" or the purple icon in the upper right corner of the pane. Follow the directions to name the branch.
Develop and Test in R
Pull origin, Commit, Push, Pull Request, Merge
1. Pull Origin
2. Commit
3. Push
4. Pull Request
5. Merge