Knitting fails due to inline code - but variable is in the environment.

My knitted document does not compile because there is an issue with inline code, e.g.

Variable x is `r  variable_name`

The variable exists in the environment for the R project, so why is this affecting compilation? Do all variables mentioned in inline code need to be computed during the knit process?

It needs to be defined in a chunk above the in-line.

Thanks (sorry for late reply - on holiday). This explains things.

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.

If you have a query related to it or one of the replies, start a new topic and refer back with a link.