Skip to content
Jonathon Love edited this page Dec 2, 2013 · 5 revisions

JASP uses the google R style guide with several tweaks.

the google style guide is the starting point, and is here

but with the following tweaks:

2. Indentifiers

always use variable.name, never use variableName. functions to be visible outside the package are of the form FunctionName, functions for internal use only (private functions) are of the form .functionName

3. Line Length

we're pretty relaxed about this one. just keep it reasonable.

4. Indentation

we use tabs, set your text editor to make tabs four spaces wide

Additional notes

functions you should never use:

  • library()
  • require()
  • attach()
  • assign()
  • <<-