Closed Danika4321 closed 5 months ago
Hi,
I was able to solve the first issue. I tried to get to RStudio from the file like you said and try it from there but I got the same error. The image im trying to use is the one from your example and it is in the images section of MyProjectName file. I find the same thing happens when I try to knit the table I've made with my own data so I think its the same problem. Does this part of the code itself look ok?
{r knit-citations, fig.cap = "Awesome cartoon of knitting citations.", fig.asp=1748/2480, fig.height=6.5} knitr::include_graphics("images/RMarkdown - Citations.png")
This is what I see on the word document:
What is the name of the Rmd file you are trying to knit?
Also please edit your code chunks when posting. I showed you how to do this in the video :)
Sorry about that, the code should be in the right format now. The rmd file im knitting is the manuscript.rmd and im just trying to add the RMarkdown - citations.png from my images file.
Figure @ref(fig:knit-citations).
{r knit-citations, fig.cap = "Awesome cartoon of knitting citations", fig.asp=1748/2480, fig.height=8} knitr::include_graphics("images/RMarkdown - Citations.png")
No, other images or tables that I try to add aren't working either. The manuscript.docx file is rendering and I can make changes to the YAML that appear on the rendered doc. It's just when I try to add figures or tables that it doesn't get added. There's no error in the render box but there is the error on the maniscipt.docx itself which I put a screenshot in the comment above. I followed your video but got the same result. I am at work unfortunately until 4, are you available after then?
Thank you for your help!
Issue was due to looking at the visual editor. Change to the source and document knitted properly
Hello,
Im trying to add my own exported .bib file to the YAML as shown in the video, so that I can link it to the document, but I get an error when trying to knit. My exported Zotero bibliography is called
Test2.bib
, I have it on my desktop which I thought might be an issue but when I moved it to my documents I got the same error. Ive looked for solutions online and made sure the directory was the same.This is my YAML:
This is the error I got when pressing knit:
When trying to add a figure as well:
{r knit-citations, fig.cap = "Awesome cartoon of knitting citations.", fig.asp=1748/2480, fig.height=6.5} knitr::include_graphics("images/RMarkdown - Citations.png")
I get a similar error, but in the document itself:
Figure [Error! Reference source not found.]
It likely a problem with the directory but I can't seem to figure out what to change. I can see the .bib file il my my files in RStudio Im still learning so I would really appreciate the help.
Thank you so much!