Getting an Error while running into knit

Hi guys, I'm new to R Studio and have been practicing much in . I'm getting an error in R Markdown while the script is converting into document through knit though the code chunk is correct. Please find the below attachment and do let me know what to do .


The error message you are showing suggests you are including the View() function in the code of your Rmd file, that function opens the "data viewer" panel in the RStudio IDE but and HTML file (or any output format for that matter) does not have such functionality, that is why the knitting process fails. To solve this problem, simply remove the View() function from your code.

Also, please do not post screenshots, they are considered a bad practice here, post formated code instead. Here is how to do it:

1 Like

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.