Allow knitting of .Rmd files with errors

Adapt check.problem.set to set chunk options when from.knitr. Also load
extra code and init problem set to load libraries.