export_metadata - PNHP/Regional_SDM GitHub Wiki
Once the random forest model has been created we have enough information to create a document showing validation stats.
This uses the R package 'knitr' and a script (.rnw file) that creates a LaTeX document, which then is converted to pdf.
The final LaTeX to pdf requires the installation of yet more software -- MikTeX. Otherwise it is a slick system and is well integrated into RStudio.
Some things to confirm in RStudio:
- Make sure the options (Project or Global options) have, in the Sweave section, "Weave Rnw files using knitr" and "Typeset LaTex into PDF using
pdfLaTeX
".
The first time you run the script, MikTeX will ask to install some libraries, let it. If it doesn't ask and you have problems, you may have to use the MikTeX Update under Maintenance in order to get all the libraries you need.