problem creating a new rmarkdown file

I am just beginning to use rmarkdown.
I installed what I thought were the correct packages:

package ‘bitops’ successfully unpacked and MD5 sums checked package ‘htmltools’ successfully unpacked and MD5 sums checked package ‘caTools’ successfully unpacked and MD5 sums checked package ‘rmarkdown’ successfully unpacked and MD5 sums checked

But when I try to create a new R Markdown file, I get the following error:

rmarkdown

(Things like knitr 1.14 is required but 1.12.3 is available.)

Where have I gone wrong?

From the R or RStudio console:

install.packages("rprojroot")
update.packages("knitr")
update.packages("rmarkdown")

This will install the missing package and update you to current versions on the other two.

Thank you for your prompt response. When I tried to install rprojroot I get this error:

   package ‘rprojroot’ is available as a source package but not as a binary

Warning in install.packages :
  package ‘rprojroot’ is not available (as a binary package for R version 3.1.3)

Am I running an old version of R?

If so- how to I get up to date?

D.P. Weygand

The current version is 3.5.1, so the first thing I'd do is to go to CRAN (https://goo.gl/alZYVs) and download the binary installer for your platform. If you're using RStudio, do the same at https://goo.gl/lOAORz.

If you are on OSX, let me know, because you do have to install from source, there's some non-obvious Apple stuff to do first.

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