Search code examples
rrstudioknitr

knit does not work even though the code works


I made a .Rmd file and I'm trying to knit to HTML. But there's an error showing, even though the code works.

I pressed the knit to HTML button. The YAML is fine as well. The error is:

Error in `.External2()`:
! unable to start data viewer
Backtrace:
 1. utils::View(components)
Execution halted

Please help.


Solution

  • See this thread

    Using View() is going to throw errors when knitting.

    Try just using print(your_object) where View(your_object)