forked from joshuaulrich/TTR
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add readme, templates, and contributing guide
This initial README already includes Tidelift and Patreon sections, because they were already added to the quantmod and xts README files.
- Loading branch information
1 parent
cd48c89
commit 60ba916
Showing
6 changed files
with
577 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
R/pivots.R | ||
LICENSE | ||
WISHLIST | ||
^.*\.Rproj$ | ||
^\.Rproj\.user$ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,104 @@ | ||
### Have a question? | ||
|
||
Please do not open an issue to ask a question about how to use the package. | ||
Instead, ask your question on [Stack Overflow](http://stackoverflow.com/questions/tagged/r) | ||
or the [R-SIG-Finance](https://stat.ethz.ch/mailman/listinfo/r-sig-finance) | ||
mailing list (you must subscribe to post). | ||
|
||
---- | ||
|
||
### Have a bug report or feature request? | ||
|
||
1. Determine which repository the bug/feature should be reported in. The process | ||
of creating a [*minimal*, reproducible example](http://stackoverflow.com/q/5963269/271616) | ||
should identify the package that contains the bug or should contain the | ||
feature. Please email the maintainer if you're unsure where to create an | ||
issue. | ||
2. Search current open GitHub [issues](https://github.com/joshuaulrich/TTR/issues) | ||
to check if the bug/feature has already been reported/requested. | ||
3. Ensure your fork and local copy are up-to-date, and verify the bug still | ||
exists in the HEAD of the master branch. | ||
4. If the bug exists in the HEAD of master, and you can't find an open issue, | ||
then [open a new issue](https://github.com/joshuaulrich/TTR/issues). | ||
Please be sure to: | ||
* Use an informative and descriptive title, | ||
* Describe the expected behavior and why you think the current behavior is | ||
a bug. | ||
* Include as much relevant information as possible; at minimum: | ||
* a [*minimal*, reproducible example](http://stackoverflow.com/q/5963269/271616) | ||
* the output from `sessionInfo()` | ||
|
||
---- | ||
|
||
### Want to submit a pull request? | ||
|
||
1. Changes that are purely cosmetic in nature (e.g. whitespace changes, code | ||
formatting, etc) will generally not be accepted because they do not add to | ||
the stability, functionality, or testability of the project. | ||
2. Unless the change is extremely trivial (e.g. typos), please | ||
[create an issue](#have-a-bug-report-or-feature-request) and wait for | ||
feedback *before* you start work on a pull request. That will avoid the | ||
possibility you spend time on a patch that won't be merged. | ||
3. Create a branch for the feature/bug fix reported in the issue. Please use a | ||
short and descriptive branch name that starts with the issue number (e.g. | ||
123_custom_function). Use that branch as the base for your pull request. | ||
Pull requests on your version of `master` will not be accepted, because | ||
they can make it difficult for you to update your fork if your pull request | ||
isn't incorporated verbatim. | ||
4. A pull request should only be for one issue, so please `git rebase -i` and | ||
squash the commits on your feature branch into one commit before creating | ||
the pull request. Please use `git commit --amend` to amend your commit if | ||
you are asked to make changes. It's okay to force update your pull request | ||
with `git push --force`. | ||
5. Please write a great [commit message](#commit-messages). | ||
6. It would be much appreciated if you also add tests that cover your changes. | ||
|
||
---- | ||
|
||
### Commit Messages | ||
|
||
Follow the [The Seven Rules](http://chris.beams.io/posts/git-commit/#seven-rules) | ||
of [How to Write a Git Commit Message](http://chris.beams.io/posts/git-commit/). | ||
Pay particular attention to [rule 7: Use the body to explain what and why | ||
versus how](http://chris.beams.io/posts/git-commit/#why-not-how). The body | ||
should also include the motivation for the change and how it compares to prior | ||
behavior. | ||
|
||
If the commit is to fix a bug or add a feature, the commit message should | ||
contain enough information to understand the bug/feature without having to | ||
reference an external tracker (e.g. GitHub issues). But please *do reference | ||
the GitHub issue* on the last line of your commit message body. For example, | ||
here is a great [xts commit message](https://github.com/joshuaulrich/xts/commit/ce1b667ab7c38cb2633fca0075652a69e5d2a343): | ||
|
||
```text | ||
Correct endpoints when index is before the epoch | ||
The endpoints C code casts the double index to long, which truncates | ||
it toward zero. This behavior is desired when the index is positive, | ||
because it moves the endpoint *back* in time. But when the index is | ||
negative, truncating toward zero moves the endpoint *forward* in time. | ||
This is also an issue if the index value is stored as integer, since the | ||
C99 specification states that integer division truncates toward zero. | ||
If the first index value is less than zero, branch into a special case | ||
to handle pre-epoch index values. This avoids performance degradation | ||
if all index values are after the epoch. | ||
If the index value is less than zero, simply add 1 to offset the | ||
truncation toward zero. We also need to furthre adjust the potential | ||
endpoint value if the index is exactly equal to zero. | ||
Fixes #144. | ||
``` | ||
|
||
---- | ||
|
||
### References: | ||
1. The [data.table Contributing Guide](https://github.com/Rdatatable/data.table/blob/master/Contributing.md). | ||
2. The [Atom Contributing Guide](https://github.com/atom/atom/blob/master/CONTRIBUTING.md). | ||
3. How to create a [minimal, reproducible example](http://stackoverflow.com/q/5963269/271616). | ||
4. [How to Write a Git Commit Message](http://chris.beams.io/posts/git-commit/). | ||
5. The [Mercurial Contributing Guide](https://www.mercurial-scm.org/wiki/ContributingChanges). | ||
6. The [Hugo Contributing Guide](https://github.com/spf13/hugo/blob/master/CONTRIBUTING.md). | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
### Description | ||
|
||
[Describe the issue] | ||
|
||
### Expected behavior | ||
|
||
[Describe the behavior/output you expected] | ||
|
||
### Minimal, reproducible example | ||
|
||
```r | ||
[Insert sample data and code] | ||
``` | ||
|
||
### Session Info | ||
|
||
```r | ||
[Insert your sessionInfo() output] | ||
``` | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
Please review the [contributing guide](CONTRIBUTING.md) before submitting your pull request. Please pay special attention to the [pull request](CONTRIBUTING.md#want-to-submit-a-pull-request) and [commit message](CONTRIBUTING.md#commit-messages) sections. Thanks for your contribution and interest in the project! |
Oops, something went wrong.