-
Notifications
You must be signed in to change notification settings - Fork 29
Developers
Kelli Johnson edited this page Mar 7, 2024
·
14 revisions
Here, you will find a guide for users who wish to aid in the development of ss3sim.
- Guides
- Follow the tidyverse style guide
- References on R package development from Hadley's book R Packages
- Advanced R
- CRAN page
- Semantic versioning
- Code rules
- Use
vapplyorlapplyinstead ofsapplybecausesapplyis not consistent in the what class of object it returns (not yet implemented in the package) - Use
[rather thansubsetbecausesubsetwill lead to unassigned objects, i.e., R will not know where the column vector name in thesubsetcall comes from - Use
<-rather than=to assign objects - Use
seq_len(NROW(x))orseq_along(x)rather than1:NROW(x)or1:length(x) - Importing functions from other packages in ss3sim functions
- Use
The main branch stores the current version of the code base and features are created in feature branches. Before merging in changes to main, Pull Requests should be opened on a feature branch, which will then be reviewed prior to rebasing and merging into the main branch.