Hi - I'm new to R Markdown and have a pretty basic question. I'm trying to document a script that I wrote in R that uses sandwiches multiple chunks of R code between text. Everything seems to knit correctly until I try to include a plot. In one chunk, I define a value as "param_a", but later in a subsequent chunk ...
{r param_a, echo=FALSE}
hist(param_a)
I get the following error
"Error in hist(param_a) : Object 'param_a' not found
Calls <Anonymous ... withCallingHandlers -> withVisible -> eval -> eval -> hist Execution halted"
Is there something I need to do to have param_a carry over between chunks, or an option I need to invoke?
Thanks.