Knitting Problem

I am trying to run the following code:

hist(environmental$ozone, main = "", xlab = "Ozone (ppb)", prob = T) lines(density(environmental$ozone))

The code runs fine in chunks, but the Rmarkdown file won't knit. I get and 'x' contains missing values error.

Here's the link to the project:
https://rstudio.cloud/spaces/80424/project/1510141

HELP. I need to give students this assignment tomorrow.
Thank you.
Deborah

-->

Can you offer a reproducible example ? I can't access your project for now.

Check every chunk in the document. When you knit with the button, it will render in a clean sessions and nothing in your current worskpace will be accessible.

The code runs fine when I copy and pasted the Rmarkdown file into a brand new project.

Weird. But THANK YOU so much for the quick response!

1 Like

Glad it works now!

If your question's been answered (even by you!), would you mind choosing a solution? It helps other people see which questions still need help, or find solutions if they have similar problems. Here’s how to do it:

I fixed this by creating a new project and copying and pasting the RMarkdown file. So not sure what was wrong but it's fixed :slight_smile:

1 Like

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