'In R markdown file, why can't I knit the file while it can run correctly

enter image description here I want to load the package names hflights. I think I have load it correctly. And the code at line 64 and 65 can be run, when I the hint the knit button it keeps reminding me the problem is at there. But it can run, the result is shown belown. I don't know why I can not knit my rmd file.

r


Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source