Uploaded image for project: 'Spark'
  1. Spark
  2. SPARK-6813

SparkR style guide

    XMLWordPrintableJSON

Details

    • New Feature
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 1.5.0
    • SparkR
    • None

    Description

      We should develop a SparkR style guide document based on the some of the guidelines we use and some of the best practices in R.
      Some examples of R style guide are:
      http://r-pkgs.had.co.nz/r.html#style
      http://google-styleguide.googlecode.com/svn/trunk/google-r-style.html
      A related issue is to work on a automatic style checking tool. https://github.com/jimhester/lintr seems promising

      We could have a R style guide based on the one from google [1], and adjust some of them with the conversation in Spark:
      1. Line Length: maximum 100 characters
      2. no limit on function name (API should be similar as in other languages)
      3. Allow S4 objects/methods

      Attachments

        Activity

          People

            yuu.ishikawa@gmail.com Yu Ishikawa
            shivaram Shivaram Venkataraman
            Votes:
            0 Vote for this issue
            Watchers:
            7 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: