include_tex {gretlR} | R Documentation |
Include TeX file in R Markdown or Quarto document.
Description
Use this function to include TeX file in R Markdown or Quarto document.
Usage
include_tex(path=".",chunk="",tex="",start=NA,end=NA)
Arguments
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 |
Value
Set of gretl
(open-source software for Econometrics) outputs
See Also
Other important functions:
eng_gretl()
,
exec_gretl()
,
exec_inp()
,
gretlR
,
import_kable()
,
include_graph()
,
write_inp()
Examples
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)
[Package gretlR version 0.1.4 Index]