Help with rmarkdown and knitr packages

Hi all,

I am a new user of R and I need to export my R code into a word document. After researching a few packages I was made aware that "knitr" is the best option available to me. After installing both this and "rmarkdown" I get the following error message.

Any help would be great :slight_smile:


You are been asked to install caTools package, what happens if you try to install it?


Hi Andres,

Thank you for your response.

So I did try installing that package but I came up with an error, stating that my version of RStudio did not support it. I then uninstalled everything and reinstalled it and I got the following

I have no idea what it is referring to as I haven't used the rank function, so I am slightly confused.

As an additional question, is there an easier way in which I can update both R and RStudio without having to uninstall them and then reinstall?


We would need a REPRoducible EXample (reprex) to help you with this.

There is no need to uninstall, you just have to install the new version.

Thanks Andres, I just copied the code into a new document and it now works.

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