Please take a moment to review this document in order to make the contribution process easy and effective for everyone involved.
aceR
is an R package. It is not a script nor is it collection of scripts. Please don't treat this repository as a script dump. The scripts provided in scripts are meant to be examples to build on (not copy/paste).
New features are great. They should remain focused in scope and avoid containing unrelated commits.
Please ask first before embarking on any significant pull request (e.g. implementing features, refactoring code, porting to a different language), otherwise you risk spending a lot of time working on something that the project's developers might not want to merge into the project.
dev_deps = c("devtools", "roxygen2", "testthat", "sciplot")
install.packages(dev_deps)
In RStudio,
File ->
Open Project ->
aceR.Rproj
Build ->
Build & Reload
Test your changes (add unit tests).
Check changes with R check:
Build ->
Check Package
Aside from some notable exceptions, functions should only do one thing. Break up larger functions into smaller general functions where possible.
Add new functions to existing files where possible. More files makes it harder to find things.
Use file name prefixes to organize files (no subdirectories). Use existing prefixes when possible.
function names should be general, concise, and descriptive. (ex. make_box_plot
instead of make_box_plot_for_seacrest_reaction_time
) - see 1.
variable names should be generic (ex. x
instead of age
)
A rule of thumb: make everything generic and re-usable.
Please refer to this guide when writing new functions or refactoring old ones.
=
, +
, -
, <-
, etc)=
within functions. otherwise use <-
Use roxygen2 for documenting functions.
We use the testthat package to run basic unit tests. Please make sure your code passes before checking-in your changes. Please add unit tests when possible.
Never merge development
into master
if the tests are failing
Tests are automatically deployed on Travis after every push.
https://travis-ci.org/josegallegos07/aceR/builds
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.