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
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to knitr
Hi everyone,
I am really confused with this problem... When the code is evaluated within RStudio, everything works fine:
But, when I press the knit button and the document opens, I get a table with NAs:
What can possibly be the problem?
Thanks
Christopher Bratt
unread,
Feb 2, 2020, 2:49:17 PM2/2/20
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
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.