commit | f315512d232b81ee181af8aafb16e7eaca8871a5 | [log] [tgz] |
---|---|---|
author | Hao Zhu <haozhu233@gmail.com> | Wed Apr 11 12:55:51 2018 -0400 |
committer | Hao Zhu <haozhu233@gmail.com> | Wed Apr 11 12:55:51 2018 -0400 |
tree | 63f2168cabaf2cd445483d782fef213e6aa917d2 | |
parent | 69c8243fb929d162fd0f3a3f0cee2cb7e183212f [diff] [blame] |
experimenting auto_set_format
diff --git a/R/auto_set_format.R b/R/auto_set_format.R new file mode 100644 index 0000000..fbf657e --- /dev/null +++ b/R/auto_set_format.R
@@ -0,0 +1,7 @@ +auto_set_format <- function() { + if (knitr::is_latex_output()) { + options(knitr.table.format = "latex") + } else { + options(knitr.table.format = "html") + } +}