datacamp/tutorial

render() not robust to whitespace in knitr options

ncarchedi opened this issue · 1 comments

An error is thrown if there's whitespace in the knitr options. For example:

{r, ex=test1, type = sct}

Must be manually corrected to this:

{r, ex=test1, type=sct}

I may have time to look into it this weekend. Any idea where the adjustment should be made?

There's a pattern regex somewhere, you can add //s* there.