Running ‘testthat.R’ [7s/11s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(lintr)
  > 
  > test_check("lintr")
  ── 1. Failure: returns the correct linting (@test-assignment_linter.R#12)  ─────
  assignment_linter did not return 1 lints as expected from content:blah=1
  
  ── 2. Failure: returns the correct linting (@test-assignment_linter.R#16)  ─────
  assignment_linter did not return 1 lints as expected from content:blah = 1
  
  ── 3. Failure: returns the correct linting (@test-assignment_linter.R#20)  ─────
  assignment_linter did not return 1 lints as expected from content:blah = fun(1)
  
  ── 4. Failure: returns the correct linting (@test-assignment_linter.R#24)  ─────
  assignment_linter did not return 2 lints as expected from content:blah = fun(1) {list(filename = "/home/hornik/tmp/scratch/Rtmp5yN1IP/file450e14d2df76", line_number = 1, column_number = 15, type = "error", message = "unexpected '{'", line = "blah = fun(1) {", ranges = NULL, linter = "error")
  
  ── 5. Failure: returns the correct linting (@test-infix_spaces_linter.R#38)  ───
  infix_spaces_linter did not return 1 lints as expected from content:1=2
  
  ── 6. Failure: returns the correct linting (@test-infix_spaces_linter.R#44)  ───
  infix_spaces_linter did not return 1 lints as expected from content:1 =2
  
  ── 7. Failure: returns the correct linting (@test-infix_spaces_linter.R#49)  ───
  infix_spaces_linter did not return 1 lints as expected from content:1= 2
  
  ── 8. Failure: it handles markdown (@test-knitr_formats.R#3)  ──────────────────
   did not return 4 lints as expected from content:# Test #
  
  Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod
  tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At
  vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren,
  no sea takimata sanctus est Lorem ipsum dolor sit amet.
  
  ```{r}
  a = 1
  ```
  
  Test
  ====
  
  Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod
  tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At
  vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren,
  no sea takimata sanctus est Lorem ipsum dolor sit amet.
  
  ```{r}
  b <- function(x) {
    d = 1
  }
  
  ```
  
  ```{r engine="python"}
  a=[]
  
  a[0]=1
  ```
  list(filename = "/home/hornik/tmp/scratch/Rtmp5yN1IP/file450e78b26f", line_number = 22, column_number = 3, type = "warning", message = "local variable 'd' assigned but may not be used", line = c(`22` = "  d = 1"), ranges = list(c(3, 3)), linter = "object_usage_linter")
   did not return 4 lints as expected from content:# Test #
  
  Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod
  tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At
  vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren,
  no sea takimata sanctus est Lorem ipsum dolor sit amet.
  
  ```{r}
  a = 1
  ```
  
  Test
  ====
  
  Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod
  tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At
  vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren,
  no sea takimata sanctus est Lorem ipsum dolor sit amet.
  
  ```{r}
  b <- function(x) {
    d = 1
  }
  
  ```
  
  ```{r engine="python"}
  a=[]
  
  a[0]=1
  ```
  list(filename = "/home/hornik/tmp/scratch/Rtmp5yN1IP/file450e78b26f", line_number = 22, column_number = 5, type = "style", message = "Use <-, not =, for assignment.", line = c(`22` = "  d = 1"), ranges = NULL, linter = "assignment_linter")
   did not return 4 lints as expected from content:# Test #
  
  Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod
  tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At
  vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren,
  no sea takimata sanctus est Lorem ipsum dolor sit amet.
  
  ```{r}
  a = 1
  ```
  
  Test
  ====
  
  Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod
  tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At
  vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren,
  no sea takimata sanctus est Lorem ipsum dolor sit amet.
  
  ```{r}
  b <- function(x) {
    d = 1
  }
  
  ```
  
  ```{r engine="python"}
  a=[]
  
  a[0]=1
  ```
  list(filename = "/home/hornik/tmp/scratch/Rtmp5yN1IP/file450e78b26f", line_number = 24, column_number = 1, type = "style", message = "Trailing blank lines are superfluous.", line = "", ranges = NULL, linter = "trailing_blank_lines_linter")
  
  ── 9. Failure: it handles Sweave (@test-knitr_formats.R#14)  ───────────────────
   did not return 4 lints as expected from content:\documentclass{article}
  \usepackage{mathpazo}
  \begin{document}
  \title{Test}
  
  Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod
  tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At
  vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren,
  no sea takimata sanctus est Lorem ipsum dolor sit amet.
  
  <<test-main>>=
  a = 1
  @
  
  \subtitle{Test}
  
  Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod
  tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At
  vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren,
  no sea takimata sanctus est Lorem ipsum dolor sit amet.
  
  <<>>=
  b <- function(x) {
    d = 1
  }
  
  @
  
  <<engine = "python">>=
  a=[]
  
  a[0]=1
  @
  list(filename = "/home/hornik/tmp/scratch/Rtmp5yN1IP/file450e62199a83", line_number = 24, column_number = 3, type = "warning", message = "local variable 'd' assigned but may not be used", line = c(`24` = "  d = 1"), ranges = list(c(3, 3)), linter = "object_usage_linter")
   did not return 4 lints as expected from content:\documentclass{article}
  \usepackage{mathpazo}
  \begin{document}
  \title{Test}
  
  Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod
  tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At
  vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren,
  no sea takimata sanctus est Lorem ipsum dolor sit amet.
  
  <<test-main>>=
  a = 1
  @
  
  \subtitle{Test}
  
  Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod
  tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At
  vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren,
  no sea takimata sanctus est Lorem ipsum dolor sit amet.
  
  <<>>=
  b <- function(x) {
    d = 1
  }
  
  @
  
  <<engine = "python">>=
  a=[]
  
  a[0]=1
  @
  list(filename = "/home/hornik/tmp/scratch/Rtmp5yN1IP/file450e62199a83", line_number = 24, column_number = 5, type = "style", message = "Use <-, not =, for assignment.", line = c(`24` = "  d = 1"), ranges = NULL, linter = "assignment_linter")
   did not return 4 lints as expected from content:\documentclass{article}
  \usepackage{mathpazo}
  \begin{document}
  \title{Test}
  
  Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod
  tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At
  vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren,
  no sea takimata sanctus est Lorem ipsum dolor sit amet.
  
  <<test-main>>=
  a = 1
  @
  
  \subtitle{Test}
  
  Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod
  tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At
  vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren,
  no sea takimata sanctus est Lorem ipsum dolor sit amet.
  
  <<>>=
  b <- function(x) {
    d = 1
  }
  
  @
  
  <<engine = "python">>=
  a=[]
  
  a[0]=1
  @
  list(filename = "/home/hornik/tmp/scratch/Rtmp5yN1IP/file450e62199a83", line_number = 26, column_number = 1, type = "style", message = "Trailing blank lines are superfluous.", line = "", ranges = NULL, linter = "trailing_blank_lines_linter")
  
  ── 10. Failure: it handles reStructuredText (@test-knitr_formats.R#25)  ────────
   did not return 4 lints as expected from content:Test
  ====
  
  Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod
  tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At
  vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren,
  no sea takimata sanctus est Lorem ipsum dolor sit amet.
  
  .. {r rst-example}
  a = 1
  .. ..
  
  Test
  ----
  
  Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod
  tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At
  vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren,
  no sea takimata sanctus est Lorem ipsum dolor sit amet.
  
  .. {r}
  b <- function(x) {
    d = 1
  }
  
  .. ..
  
  .. {r engine = "python"}
  a=[]
  
  a[0]=1
  .. ..
  list(filename = "/home/hornik/tmp/scratch/Rtmp5yN1IP/file450e194c746e", line_number = 23, column_number = 3, type = "warning", message = "local variable 'd' assigned but may not be used", line = c(`23` = "  d = 1"), ranges = list(c(3, 3)), linter = "object_usage_linter")
   did not return 4 lints as expected from content:Test
  ====
  
  Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod
  tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At
  vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren,
  no sea takimata sanctus est Lorem ipsum dolor sit amet.
  
  .. {r rst-example}
  a = 1
  .. ..
  
  Test
  ----
  
  Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod
  tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At
  vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren,
  no sea takimata sanctus est Lorem ipsum dolor sit amet.
  
  .. {r}
  b <- function(x) {
    d = 1
  }
  
  .. ..
  
  .. {r engine = "python"}
  a=[]
  
  a[0]=1
  .. ..
  list(filename = "/home/hornik/tmp/scratch/Rtmp5yN1IP/file450e194c746e", line_number = 23, column_number = 5, type = "style", message = "Use <-, not =, for assignment.", line = c(`23` = "  d = 1"), ranges = NULL, linter = "assignment_linter")
   did not return 4 lints as expected from content:Test
  ====
  
  Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod
  tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At
  vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren,
  no sea takimata sanctus est Lorem ipsum dolor sit amet.
  
  .. {r rst-example}
  a = 1
  .. ..
  
  Test
  ----
  
  Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod
  tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At
  vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren,
  no sea takimata sanctus est Lorem ipsum dolor sit amet.
  
  .. {r}
  b <- function(x) {
    d = 1
  }
  
  .. ..
  
  .. {r engine = "python"}
  a=[]
  
  a[0]=1
  .. ..
  list(filename = "/home/hornik/tmp/scratch/Rtmp5yN1IP/file450e194c746e", line_number = 25, column_number = 1, type = "style", message = "Trailing blank lines are superfluous.", line = "", ranges = NULL, linter = "trailing_blank_lines_linter")
  
  ── 11. Failure: it handles HTML (@test-knitr_formats.R#36)  ────────────────────
   did not return 4 lints as expected from content:<!DOCTYPE html>
  <html>
  <head>
    <title>Test</title>
  </head>
  <body>
  <h1>Test</h1>
  
  <p>Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod
  tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At
  vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren,
  no sea takimata sanctus est Lorem ipsum dolor sit amet.</p>
  
  <!--begin.rcode test-html
  a = 1
  end.rcode-->
  
  <h2>Test</h2>
  
  Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod
  tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At
  vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren,
  no sea takimata sanctus est Lorem ipsum dolor sit amet.
  
  <!--begin.rcode
  b <- function(x) {
    d = 1
  }
  
  end.rcode-->
  
  <!--begin.rcode engine = "python"
  a=[]
  
  a[0]=1
  end.rcode-->
  list(filename = "/home/hornik/tmp/scratch/Rtmp5yN1IP/file450e3964992e", line_number = 27, column_number = 3, type = "warning", message = "local variable 'd' assigned but may not be used", line = c(`27` = "  d = 1"), ranges = list(c(3, 3)), linter = "object_usage_linter")
   did not return 4 lints as expected from content:<!DOCTYPE html>
  <html>
  <head>
    <title>Test</title>
  </head>
  <body>
  <h1>Test</h1>
  
  <p>Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod
  tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At
  vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren,
  no sea takimata sanctus est Lorem ipsum dolor sit amet.</p>
  
  <!--begin.rcode test-html
  a = 1
  end.rcode-->
  
  <h2>Test</h2>
  
  Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod
  tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At
  vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren,
  no sea takimata sanctus est Lorem ipsum dolor sit amet.
  
  <!--begin.rcode
  b <- function(x) {
    d = 1
  }
  
  end.rcode-->
  
  <!--begin.rcode engine = "python"
  a=[]
  
  a[0]=1
  end.rcode-->
  list(filename = "/home/hornik/tmp/scratch/Rtmp5yN1IP/file450e3964992e", line_number = 27, column_number = 5, type = "style", message = "Use <-, not =, for assignment.", line = c(`27` = "  d = 1"), ranges = NULL, linter = "assignment_linter")
   did not return 4 lints as expected from content:<!DOCTYPE html>
  <html>
  <head>
    <title>Test</title>
  </head>
  <body>
  <h1>Test</h1>
  
  <p>Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod
  tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At
  vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren,
  no sea takimata sanctus est Lorem ipsum dolor sit amet.</p>
  
  <!--begin.rcode test-html
  a = 1
  end.rcode-->
  
  <h2>Test</h2>
  
  Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod
  tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At
  vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren,
  no sea takimata sanctus est Lorem ipsum dolor sit amet.
  
  <!--begin.rcode
  b <- function(x) {
    d = 1
  }
  
  end.rcode-->
  
  <!--begin.rcode engine = "python"
  a=[]
  
  a[0]=1
  end.rcode-->
  list(filename = "/home/hornik/tmp/scratch/Rtmp5yN1IP/file450e3964992e", line_number = 29, column_number = 1, type = "style", message = "Trailing blank lines are superfluous.", line = "", ranges = NULL, linter = "trailing_blank_lines_linter")
  
  ── 12. Failure: it handles tex (@test-knitr_formats.R#47)  ─────────────────────
   did not return 4 lints as expected from content:\documentclass{article}
  \usepackage{graphicx}
  \title{Test}
  
  Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod
  tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At
  vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren,
  no sea takimata sanctus est Lorem ipsum dolor sit amet.
  
  %% begin.rcode
  % a = 1
  %% end.rcode
  
  \subtitle{Test}
  
  Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod
  tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At
  vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren,
  no sea takimata sanctus est Lorem ipsum dolor sit amet.
  
  %% begin.rcode test_chunk
  % b <- function(x) {
  %   d = 1
  % }
  %
  %% end.rcode
  
  %% begin.rcode engine="python"
  % a=[]
  %
  % a[0]=1
  %% end.rcode
  list(filename = "/home/hornik/tmp/scratch/Rtmp5yN1IP/file450e34a491b6", line_number = 23, column_number = 5, type = "warning", message = "local variable 'd' assigned but may not be used", line = c(`23` = "    d = 1"), ranges = list(c(5, 5)), linter = "object_usage_linter")
   did not return 4 lints as expected from content:\documentclass{article}
  \usepackage{graphicx}
  \title{Test}
  
  Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod
  tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At
  vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren,
  no sea takimata sanctus est Lorem ipsum dolor sit amet.
  
  %% begin.rcode
  % a = 1
  %% end.rcode
  
  \subtitle{Test}
  
  Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod
  tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At
  vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren,
  no sea takimata sanctus est Lorem ipsum dolor sit amet.
  
  %% begin.rcode test_chunk
  % b <- function(x) {
  %   d = 1
  % }
  %
  %% end.rcode
  
  %% begin.rcode engine="python"
  % a=[]
  %
  % a[0]=1
  %% end.rcode
  list(filename = "/home/hornik/tmp/scratch/Rtmp5yN1IP/file450e34a491b6", line_number = 23, column_number = 7, type = "style", message = "Use <-, not =, for assignment.", line = c(`23` = "    d = 1"), ranges = NULL, linter = "assignment_linter")
   did not return 4 lints as expected from content:\documentclass{article}
  \usepackage{graphicx}
  \title{Test}
  
  Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod
  tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At
  vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren,
  no sea takimata sanctus est Lorem ipsum dolor sit amet.
  
  %% begin.rcode
  % a = 1
  %% end.rcode
  
  \subtitle{Test}
  
  Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod
  tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At
  vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren,
  no sea takimata sanctus est Lorem ipsum dolor sit amet.
  
  %% begin.rcode test_chunk
  % b <- function(x) {
  %   d = 1
  % }
  %
  %% end.rcode
  
  %% begin.rcode engine="python"
  % a=[]
  %
  % a[0]=1
  %% end.rcode
  list(filename = "/home/hornik/tmp/scratch/Rtmp5yN1IP/file450e34a491b6", line_number = 25, column_number = 1, type = "style", message = "Trailing blank lines are superfluous.", line = " ", ranges = NULL, linter = "trailing_blank_lines_linter")
  
  ── 13. Failure: it handles asciidoc (@test-knitr_formats.R#58)  ────────────────
   did not return 4 lints as expected from content:= Test =
  
  Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod
  tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At
  vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren,
  no sea takimata sanctus est Lorem ipsum dolor sit amet.
  
  //begin.rcode
  a = 1
  //end.rcode
  
  Test
  ====
  
  Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod
  tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At
  vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren,
  no sea takimata sanctus est Lorem ipsum dolor sit amet.
  
  //begin.rcode trailing
  b <- function(x) {
    d = 1
  }
  
  //end.rcode
  
  //begin.rcode engine="python"
  a=[]
  
  a[0]=1
  //end.rcode
  list(filename = "/home/hornik/tmp/scratch/Rtmp5yN1IP/file450eafc80b9", line_number = 22, column_number = 3, type = "warning", message = "local variable 'd' assigned but may not be used", line = c(`22` = "  d = 1"), ranges = list(c(3, 3)), linter = "object_usage_linter")
   did not return 4 lints as expected from content:= Test =
  
  Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod
  tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At
  vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren,
  no sea takimata sanctus est Lorem ipsum dolor sit amet.
  
  //begin.rcode
  a = 1
  //end.rcode
  
  Test
  ====
  
  Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod
  tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At
  vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren,
  no sea takimata sanctus est Lorem ipsum dolor sit amet.
  
  //begin.rcode trailing
  b <- function(x) {
    d = 1
  }
  
  //end.rcode
  
  //begin.rcode engine="python"
  a=[]
  
  a[0]=1
  //end.rcode
  list(filename = "/home/hornik/tmp/scratch/Rtmp5yN1IP/file450eafc80b9", line_number = 22, column_number = 5, type = "style", message = "Use <-, not =, for assignment.", line = c(`22` = "  d = 1"), ranges = NULL, linter = "assignment_linter")
   did not return 4 lints as expected from content:= Test =
  
  Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod
  tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At
  vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren,
  no sea takimata sanctus est Lorem ipsum dolor sit amet.
  
  //begin.rcode
  a = 1
  //end.rcode
  
  Test
  ====
  
  Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod
  tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At
  vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren,
  no sea takimata sanctus est Lorem ipsum dolor sit amet.
  
  //begin.rcode trailing
  b <- function(x) {
    d = 1
  }
  
  //end.rcode
  
  //begin.rcode engine="python"
  a=[]
  
  a[0]=1
  //end.rcode
  list(filename = "/home/hornik/tmp/scratch/Rtmp5yN1IP/file450eafc80b9", line_number = 24, column_number = 1, type = "style", message = "Trailing blank lines are superfluous.", line = "", ranges = NULL, linter = "trailing_blank_lines_linter")
  
  ══ testthat results  ═══════════════════════════════════════════════════════════
  OK: 515 SKIPPED: 0 FAILED: 13
  1. Failure: returns the correct linting (@test-assignment_linter.R#12) 
  2. Failure: returns the correct linting (@test-assignment_linter.R#16) 
  3. Failure: returns the correct linting (@test-assignment_linter.R#20) 
  4. Failure: returns the correct linting (@test-assignment_linter.R#24) 
  5. Failure: returns the correct linting (@test-infix_spaces_linter.R#38) 
  6. Failure: returns the correct linting (@test-infix_spaces_linter.R#44) 
  7. Failure: returns the correct linting (@test-infix_spaces_linter.R#49) 
  8. Failure: it handles markdown (@test-knitr_formats.R#3) 
  9. Failure: it handles Sweave (@test-knitr_formats.R#14) 
  1. ...
  
  Error: testthat unit tests failed
  Execution halted