I need help knitting an R markdown file.

Hi everyone,
I just started learning how to code with R and RStudio Cloud. I am trying to knit my R markdown document to get a report of my work, but I keep getting the following error message:

processing file: ggplot_hook.Rmd
Quitting from lines 12-16 (ggplot_hook.Rmd)
Error in .External2(C_dataviewer, x, title) : unable to start data viewer
Calls: ... withVisible -> eval_with_user_handlers -> eval -> eval -> View
Execution halted

Any Ideas?? I appreciate any help you could give me.

You should not use the View() command in Rmd files, that command opens the data viewer pane in RStudio but an HTML or PDF file doesn't have a viewer pane.

1 Like

You are amazing! Thank you so much for your quick reply. It worked once I deleted the View () command!

Thanks again!

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.

If you have a query related to it or one of the replies, start a new topic and refer back with a link.