# NOT RUN {
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")
# }
Run the code above in your browser using DataLab