When you knit
something it gets executed in a new environment.
The object adult
is in your environment at the moment, but not in the new one knit creates.
You probably did not include the code to read or load adult
in the knit.
If you clear your workspace, as per @sebastian-c comment, you will see that even ctrl+enter
does not work.
You have to create the adult
object inside your knit
. For example, if your data in from a csv add
adult <- read.csv2('Path/to/file')
in the first chunk.
Hope this is clear enough.