Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Contribution guide and changelog #65

Closed
wants to merge 13 commits into from
Closed

Contribution guide and changelog #65

wants to merge 13 commits into from

Conversation

clhunsen
Copy link
Collaborator

@clhunsen clhunsen commented Nov 24, 2017

With this PR, I aim at integrating a contribution guide for the network library (see #47). It is basically about how to open issues or pull request and how to write patches in terms of coding conventions.
Additionally, I started a NEWS file which is basically a changelog - to keep better track of changes and enhancements during/before updating.

Important note: All documents proposed here are intended to be used by both developers and users of the network library!

I do not intend to merge the documents right away, I rather intend to discuss and improve the documents here as I definitely missed something. If you have any suggestions or improvements to the proposed documents, comment here or even write a patch that I can integrate.


Note: I will do a rebase to make this branch up-to-date with dev right before merging.

CONTRIBUTING.md Outdated
* **assignments**: only with `=`,
* **quoting** (e.g., of strings): always use double quotes instead of single quotes,
* **Booleans**: always write `TRUE` instead of `T` (analogously for `FALSE` and `F`), and
* **square-brackets notation**: always access values in lists or data.frame using the square-brackets notation (e.g., `df["column1"]` or `list1[["1"item1"]]`
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There is something wrong in the example list1[["1"item1"]]. I guess the second 1 (of three) can be removed

@flx5
Copy link
Contributor

flx5 commented Dec 6, 2017

Neither the Google Style Guide nor this one seem to mention the usage of implicit or explicit return statements. Is there any preference on that topic?

See also:
https://stackoverflow.com/a/11834490
http://adv-r.had.co.nz/Functions.html#return-values

@clhunsen
Copy link
Collaborator Author

clhunsen commented Dec 6, 2017

Neither the Google Style Guide nor this one seem to mention the usage of implicit or explicit return statements. Is there any preference on that topic?

See also:
https://stackoverflow.com/a/11834490
http://adv-r.had.co.nz/Functions.html#return-values

Most style guides recommend to use the return() function only when returning early. We recommend to always use the return() function as it heavily facilitates code understanding.

I will add a proper item to the contribution guide, thanks for pointing this out, @flx5.

@bockthom
Copy link
Collaborator

bockthom commented Dec 7, 2017

Before merging this pull request, we should check that all present implementations satisfy the coding conventions. Especially, check for <- and replace them by =. (For example, here: #74)

@clhunsen
Copy link
Collaborator Author

clhunsen commented Feb 8, 2018

We should add a comment on the date-parsing functions after PR #85 is merged.

@clhunsen clhunsen modified the milestones: Future, v3.1 Feb 19, 2018
By introducing the function 'verify.argument.for.parameter', we can
properly check all arguments for our classes' constructors, just in
case.

This fixes #79.

Signed-off-by: Claus Hunsen <[email protected]>
This fixes #99.

Signed-off-by: Claus Hunsen <[email protected]>
Signed-off-by: Thomas Bock <[email protected]>
For a better documentation on how to contribute to the project, we add a
contribution guide along with an issue template.

This is considered a first draft working on #47.

Signed-off-by: Claus Hunsen <[email protected]>
The file 'NEWS.md' now holds the changelog of the network library for
better overview. The main sections are "added", "changed/improved", and
"fixes".

Added: Indicating completely new functionality, such as added features
or functions (e.g., adding the splitting functionality).
Changed/improved: Indicating adapted or updated functionality (e.g.,
updating the plotting functionality with the help of another R package).
Fixed: Indicating real fixes for bugs and regressions (e.g., fixing a
typo in a function call).

Later, the upcoming sections for new versions should be added, on the
one side, automatically generated from the commit list and, on the other
side, with a self-written text, pointing out the overall synopsis and
the highlights.

Signed-off-by: Claus Hunsen <[email protected]>
Add a more precise explanation to improve understanding on how to
structure changes in commits.

Signed-off-by: Claus Hunsen <[email protected]>
Add a rule on square-brackets notation for accessing data in data.frames
or lists.
Add a rule to keep the code as simple as possible.

Improve typographical stuff.
Props to @bockthom for pointing this out.

Signed-off-by: Claus Hunsen <[email protected]>
Props to @flx5 for pointing this out.

Signed-off-by: Claus Hunsen <[email protected]>
As a result of issue #77 and the respective PRs, we can now instruct
developers to use the appropriate functions for date handling.

Signed-off-by: Claus Hunsen <[email protected]>
Signed-off-by: Claus Hunsen <[email protected]>
Update project description. Add 'issues.only.comments' in the
`ProjectConf` section. Add 'util-networks-covariates.R' to module
overview. Add remark on 'dev' branch.

Signed-off-by: Claus Hunsen <[email protected]>
@clhunsen
Copy link
Collaborator Author

I will close this for now and include the patches in a new PR which combines all open patches for v3.1.

@clhunsen clhunsen deleted the contribution-guides branch April 25, 2018 13:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants