The beginning "Double" is five space away from the left margin, while the R code chunk is only four thus not recognized as block element by Pandoc.