Purpose of document

This file shows how to make printable report in PDF-formats. We currently have two options:

The .Rmd documents above that we use here are saved in the inst folder of norspis2. And we use the render_report.R function in norspis2, which is made for the purpose of running the .Rmd-documents.

How to use this .Rmd-document

Just run the relevant code snippet below. You do not need to knit this entire .Rmd-document.

knitr::opts_chunk$set(
  collapse = TRUE,
  comment = "#>"
)
library(norspis2)

Make report for all RESH-id's

#getwd()

for(reshID in unique(DL$RegData2$AvdRESH)){

  norspis2::render_report(reshID = reshID)
}


Rapporteket/norspis2 documentation built on April 18, 2021, 1:11 a.m.