Dynamic number of calls to a chunk with knitr
问题 I have such a list: > lSlopes $A Estimate 2.5 % 97.5 % 1 2.12 -0.56 4.80 $B Estimate 2.5 % 97.5 % 1 2.21 -0.68 5.10 $C Estimate 2.5 % 97.5 % 1 2.22 -2.21 6.65 It has three elements but its length can change (according to the data not shown here). I want to display each element in a chunk. My first idea was to write a chunk containing a loop calling knit_child() at each step, but I don't know how to get the correct rendering with knit_child() . I have find the following solution which works