variable is lost when calling it through slidify

29 views Asked by At

After many slides working well, I am on a new one trying to execute a simple code:

   ```{r}
   summary(name_variable)
   ```

when running in the slide it gives the rigth answer. Nevertheless when executing Knit it returns the message "object 'name_variable' not found". How is this possible?! I have previously ran many slides that work fine. Thank you very much for your help.

1

There are 1 answers

2
ottlngr On

Be sure to create name_variable inside the .Rmd document. Possibly this single slide works, because you have name_variable stored in your .GlobalEnv..