Keep getting NAs in the knitted document even though everything is fine in RStudio

13 views
Skip to first unread message

Alina Oshina

unread,
Feb 2, 2020, 1:34:19 PM2/2/20
to knitr

Hi everyone,

I am really confused with this problem... When the code is evaluated within RStudio, everything works fine:kablesnip1.PNG

But, when I press the knit button and the document opens, I get a table with NAs:
knittedCapture.PNG
What can possibly be the problem?
Thanks

Christopher Bratt

unread,
Feb 2, 2020, 2:49:17 PM2/2/20
to knitr
Have you restarted R before trying the code interactively?
If you restart R and then get the same NA result in interactive work, it should be easy to spot the error in your code.
Reply all
Reply to author
Forward
0 new messages