I am wanting to fold general text when using bookdown in R.
There are plenty of ways to fold code.
There is some advice here for folding verbatim text which isnot quite the same thing, but perhaps a good starting point.
However, I cannot even get this verbatim-text folding to work, despite following (as far as I can tell) the advice given in response to that question.
On my Mac, the verbatim-text folding works... but issues this warning:
Warning messages:
1: In get_engine(options$engine) :
Unknown language engine 'fold' (must be registered via knit_engines$set()).
whenever I add this chunk. as advised:
```{fold}
Here I am
```
On Windows, the code does not produce any folding at all; the text appears, but no folding of said text.
In any case, the text appears verbatim (not surprisingly, given the instructions were for that), but ideally I would like to be able to fold general text.
Can anyone please offer advice? That is: How does one fold general text in R bookdown?
As background: I am new to bookdown, I know R well, but I don't know anything associated with javascript.
Perhaps someone in the know would be able to amend the original code given for folding verbatim text. Since code and verbatim text folding both seem possible, I live in hope that folding of general text may be relatively easy...
Thanks.
P.