Running examples in ‘COINr-Ex.R’ failed
The error most likely occurred in:

> base::assign(".ptime", proc.time(), pos = "CheckExEnv")
> ### Name: getUnitReport
> ### Title: Generate unit report
> ### Aliases: getUnitReport
> 
> ### ** Examples
> 
> # build ASEM COIN up to aggregation
> ASEM <- build_ASEM()
-----------------
Denominators detected - stored in .$Input$Denominators
-----------------
-----------------
Indicator codes cross-checked and OK.
-----------------
Number of indicators = 49
Number of units = 51
Number of aggregation levels = 3 above indicator level.
-----------------
Aggregation level 1 with 8 aggregate groups: Physical, ConEcFin, Political, Instit, P2P, Environ, Social, SusEcFin
Cross-check between metadata and framework = OK.
Aggregation level 2 with 2 aggregate groups: Conn, Sust
Cross-check between metadata and framework = OK.
Aggregation level 3 with 1 aggregate groups: Index
Cross-check between metadata and framework = OK.
-----------------
Missing data points detected = 65
Missing data points imputed = 65, using method = indgroup_mean
> # Generate a unit report for NZ
> # This is written to the temporary directory to avoid polluting other directories
> # during automated testing.
> # It will be deleted at the end of the R session.
> # Normally you would set the directory to somewhere else to save the resulting files
> getUnitReport(ASEM, usel = "NZL", out_type = ".html", outdir = tempdir())


processing file: unit_report_source.Rmd
   inline R code fragments

label: setup (with options) 
List of 1
 $ include: logi FALSE

  ordinary text without R code

label: barchart
   inline R code fragments

label: summarytable (with options) 
List of 1
 $ include: logi TRUE

  ordinary text without R code

label: radarchart
   inline R code fragments

label: top5
  ordinary text without R code

label: bott5
Warning in file(con, "w") :
  cannot open file 'unit_report_source.knit.md': Read-only file system
Error in file(con, "w") : cannot open the connection
Calls: getUnitReport ... <Anonymous> -> <Anonymous> -> write_utf8 -> writeLines -> file
Execution halted