When I run the following code chunk in r markdown, I get the expected outcome. However, when I tried knitting the file into html, an error message shows up. The data are