Hye, this error occured when I press knit. I want to export rmd as pdf. I am taking google data analytics course.
Could you share the chunk where the error is taking place? I had a problem knitting Rmarkedown too, more specifically, to PDF.
I meant the code line.
I would really encourage you to review the following guide, FAQ: Tips for writing R-related questions.
For example, the guide emphasizes asking coding questions with formatted code-chunks and a
You may have noticed folks here requesting minimal
reprexes, that's because asking questions this way saves answerers a lot of time.
- help make your question clear and replicable
- increases the probability folks will reach out and try to help,
- reduces the number of back-and-forths required to understand the question,
- and makes your question and suggested solutions more useful to folks in the future researching similar problems.
Also see FAQ: How to Format R Markdown Source
And see something View in the error message somewhere please do read the following
The error message you are posting 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.