Revisiting an issue that appears to have been asked before, but the answers aren't quite helping with the issue I'm experiencing.
I have a Markdown file that I'm trying to knit, with a code chunk of:
colnames(spreadspoke_scores)
When I attempt to knit the file, I get the below error:
Error in is.data.frame(x) : object(spreadspoke_scores) not found
This makes no sense to me since I can run the colnames function off this dataframe in the console.
I tried to knit a file with the below code just for fun:
colnames(cars)
And this ran just fine. So I'm confused, is there an intermediate step that needs to be taken to get R Markdown to recognize the dataframe?
Added: I added the below to the YAML section:
params: data: "spreadspoke_scores"
Which gets the knit to run, but then it comes back with #NULL results, so I don't think this is helping the issue.