| include_tex | R Documentation |
Use this function to include TeX file in R Markdown or Quarto document.
include_tex(path=".",chunk="",tex="",start=NA,end=NA)
path |
Object or a character string representing the path(s) to the |
chunk |
Name of the |
tex |
Name of a |
start |
Numeric. The start line of the |
end |
Numeric. The last line of the |
Set of gretl (open-source software for Econometrics) outputs
Other important functions:
eng_gretl(),
exec_gretl(),
exec_inp(),
gretlR,
import_kable(),
include_graph(),
write_inp()
library(gretlR)
## Not run:
code=r'(nulldata 500
set seed 13
gretl1 = normal()
gretl2 = normal()
setobs 12 1980:01 --time-series
ols gretl1 const gretl2
tabprint --output="olsTable.tex")'
exec_gretl(code=code,path='gretlR/TeXFolder/gretlCode')
include_tex(chunk="TeXFolder",tex="olsTable")
# Alternatively, use the absolute/relative path to the TeX file
include_tex("gretlR/TeXFolder/olsTable.tex")
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.