powered by
output()
## Not run: # ## Switch between SVG and PDF figures depending on document output format # knitr::opts_chunk$set( # dev = switch(output(), html = "svg", latex = "pdf") # ) # ## End(Not run)
Run the code above in your browser using DataLab