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
If this is your first time cloning the repo you may have to install dependencies
64
67
65
-
<br
66
-
67
-
**Steps to follow:**
68
+
<!-- **Steps to follow:** -->
68
69
69
70
**Check R CMD:** In an R console, make sure the package passes R CMD check by running:
70
71
```r
@@ -82,51 +83,56 @@ If this is your first time cloning the repo you may have to install dependencies
82
83
This will install the repo's pre-commit hooks.
83
84
You'll only need to do this step the first time you clone the repo. -->
84
85
85
-
<br><br>
86
-
87
-
# **Load SCWorkflow from repo** {#load-scworkflow}
88
-
86
+
<br>
89
87
90
-
---
88
+
## **Load SCWorkflow from repo** {#load-scworkflow}
91
89
92
90
In an R console, load the package from the local repo using:
93
91
94
92
```r
95
93
devtools::load_all()
96
94
```
97
95
98
-
<br><br>
99
-
100
-
# **Create a branch** {#create-branch}
101
-
96
+
<br>
102
97
103
-
---
98
+
## **Create branch** {#create-branch}
104
99
105
100
Create a Git branch for your pull request (PR). Give the branch a descriptive name for the changes you will make.
106
101
107
-
<br>
108
-
109
102
**Example:** Use `iss-10` if it's for a specific issue, or `feature-new-plot` for a new feature.
110
103
104
+
For bug fixes or small changes, you can branch from the `main` branch.
105
+
111
106
```sh
112
-
# Create a new branch and switch to it
107
+
# Create a new branch from main and switch to it
113
108
git branch iss-10
114
109
git switch iss-10
115
110
```
116
-
117
111
> **Success:** Switched to a new branch 'iss-10'
118
112
113
+
For new features or larger changes, branch from the `DEV` branch.
114
+
115
+
```sh
116
+
# Switch to DEV branch, create a new branch, and switch to new branch
117
+
git switch DEV
118
+
git branch feature-new-plot
119
+
git switch feature-new-plot
120
+
```
121
+
> **Success:** Switched to a new branch 'feature-new-plot'
122
+
119
123
<br><br>
120
124
121
-
# **Make your changes** {#make-changes}
125
+
# Develop {#develop}
122
126
123
127
---
124
128
129
+
## **Make your changes** {#make-changes}
130
+
125
131
Now you're ready to edit the code, write unit tests, and update the documentation as needed.
126
132
127
133
<br>
128
134
129
-
## **Code Style Guidelines**
135
+
###**Code Style Guidelines**
130
136
131
137
132
138
New code should follow the general guidelines outlined [here](https://nih.sharepoint.com/sites/NCI-CCR-CCBR-NIDAP/SitePages/R-Package-Coding-Style-and-Best-Practices.aspx).
@@ -147,7 +153,7 @@ New code should follow the general guidelines outlined [here](https://nih.sharep
0 commit comments