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
-->
cderv
August 25, 2020, 11:54am
2
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
cderv
August 25, 2020, 12:23pm
4
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:
If your question has been answered, don't forget to mark the solution!
How do I mark a solution?
Find the reply you want to mark as the solution and look for the row of small gray icons at the bottom of that reply. Click the one that looks like a box with a checkmark in it:
[image]
Hovering over the mark solution button shows the label, "Select if this reply solves the problem". If you don't see the mark solution button, try clicking the three dots button ( ••• ) to expand the full set of options.
When a solution is chosen, the icon turns green and the hover label changes to: "Unselect if this reply no longer solves the problem". Success!
[solution_reply_author]
…
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
1 Like
system
Closed
September 1, 2020, 1:41pm
6
This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.