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: