Use in examples of rmarkdown partials, so they do not clutter the user directory

knit_to_temp_dir()

Examples

knit_to_temp_dir() enlarge_plot(ggplot2::qplot(1:10))
#> #> #> #> #> <!-- Button trigger modal --> #> <a href="#a538d47a5567e879b0b59ce21b4c0b00" data-toggle="modal" data-target="#a538d47a5567e879b0b59ce21b4c0b00"> #> #> ```r #> plot #> ``` #> #> ``` #> ## `stat_bin()` using `bins = 30`. Pick better value with `binwidth`. #> ``` #> #> ![plot of chunk unnamed-chunk-1](figure/a538d47a5567e879b0b59ce21b4c0b00_unnamed-chunk-1-1.png) #> </a> #> #> <!-- Modal --> #> <div class="modal fade" id="a538d47a5567e879b0b59ce21b4c0b00" tabindex="-1" role="dialog" aria-labelledby="a538d47a5567e879b0b59ce21b4c0b00Label" aria-hidden="true"> #> <div class="modal-dialog" role="document"> #> <div class="modal-content"> #> <div class="modal-body"> #> #> #> ```r #> large_plot #> ``` #> #> ``` #> ## `stat_bin()` using `bins = 30`. Pick better value with `binwidth`. #> ``` #> #> ![plot of chunk unnamed-chunk-2](figure/a538d47a5567e879b0b59ce21b4c0b00_unnamed-chunk-2-1.png) #> #> </div> #> <div class="modal-footer"> #> <button type="button" class="btn btn-secondary" data-dismiss="modal">Close</button> #> </div> #> </div> #> </div> #> </div> #> #> #>