The current script doesn't seem to work locally. Other approach could be using a lua filter: See [this PR](https://github.com/pharmaR/val.pipeline/pull/32/files) for code in inst/report/package/foldable_code.lua