Hi guys, I'm new to R Studio and have been practicing much in posit.cloud . 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: