Forgive the very basic question but I'm having some trouble getting the knitr feature to work just like typing in the console.
To recreate Download this csv file https://s3.amazonaws.com/udacity-hosted-downloads/ud651/reddit.csv Import it into R Studio calling it reddit so it appears in the Global Environment area of the IDE, Do this using the import dataset from text file menu button
In the console use code like str(reddit) to view the structure.
Now open a new R markdown file from the R Studio menu and include a chunk like the following
Structure of Reddit
```{r}
str(reddit)
```
Knitting the file gets the following error
Error in str(reddit) : object 'reddit' not found Calls: ... withCallingHandlers -> withVisible -> eval -> eval -> str
I know its something very obvious but can't place my novice finger on it. Any help would be appreciated