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
Copy file name to clipboardExpand all lines: r-code.Rmd
+73Lines changed: 73 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -287,6 +287,79 @@ checks.
287
287
* Use the packages `r BiocStyle::Biocpkg("ExperimentHub")` and `r BiocStyle::Biocpkg("AnnotationHub")` instead of downloading external data from unsanctioned providers such as <iclass="fab fa-github"></i> GitHub, <i * class="fa fa-dropbox" aria-hidden="true"></i> Dropbox, etc. In general, data utlilzed in packages should be downloaded from trusted public databases. See also section on web querying and file caching.
288
288
* Use `<-` instead of `=` for assigning variables except in function arguments.
289
289
290
+
### Cyclomatic Complexity
291
+
292
+
A metric developed by Thomas J. McCabe, cyclomatic complexity describes the
293
+
control-flow of a program. The higher the value, the more complex the code is
294
+
said to be.
295
+
296
+
In the `BiocCheck` example below, we have a series of control-flow statements
297
+
that check for multiple conditions and return a value if some of those
298
+
conditions are true. The function `hasValueSection` is checking that the
299
+
documentation contains a 'value' Rd tag i.e., a return section in the
0 commit comments