inst/testScript_double_space_linter.R

# The following lines are representing invalid (double or more)

# A header   line   with faulty  double space  #
  # Commented  text
  # Indented  line  commented out
x <-  3
  x <-  3
  x <- c("Hello   World")
# A  comment with whitespace after first word
mean(x) # Comment  with double whitespace
    x <- 3 #  indented and commented
    x <-  3  #  indented  and commented
#'   "# This is an example  document violating style conventions"

# The following lines are representing valid (double or more) spaces

    labs(title = "Schwankungen der Umfragewerte bei den letzten Bundestagswahlen",
         subtitle = "Durchschnittliche Spannweite der Umfragewerte im jeweiligen
       Wahljahr in Prozentpunkten")
# A header line ending with spaces and hash  #
# A header line ending with many spaces and hash       #
  #'   An indented roxygen comment
    # Indented line commented out
    #   Indented line commented out
  x <- 3
    x <- 3 # indented and commented
  #'   \"# This is an example document not violating style conventions\"
  #   \"# This is an example document not violating style conventions\"
INWT/INWTUtils documentation built on May 22, 2024, 4:45 p.m.