From Wikiversity
Jump to navigation Jump to search

Installation of KnitR[edit | edit source]

KnitR comes as a CRAN package, hence can be installed as any CRAN package either with your R package manager, if you use one, for example that which comes with your IDE or simple from the R command line by typing

install.packages('knitR', dependencies=TRUE)

where the part about the dependencies automatically installs all packages that are needed for the use of knitR.

Output Formats[edit | edit source]

You need for specific output formats additional software for the KnitR document generation. This section explains the additional software required for specific output formats:

  • PDF-output: LaTeX must be installed on your computer to render the generated output in PDF.
  • ODT-output: Install LibreOffice to edit the generated text by KnitR