exec_gretl: Execute 'gretl' codes in R

exec_gretlR Documentation

Execute gretl codes in R

Description

Use this function to Execute gretl codes in R.

Usage

exec_gretl(code,path=basename(tempfile("gretlR")))

Arguments

code

Object or a character string representing the set of gretl codes

path

Object or a character string representing the directory to execute the gretl codes (default: gretlR)

Value

Set of gretl (open-source software for Econometrics) outputs

See Also

Other important functions: eng_gretl(), exec_inp(), gretlR, import_kable(), include_graph(), include_tex(), write_inp()

Examples

library(gretlR)
## Not run: 
code=r'(nulldata 500
set seed 13
gretl1 = normal()
gretl2 = normal()
setobs 12 1980:01 --time-series
gnuplot gretl1 --time-series --with-lines --output="line.png"
gnuplot gretl2 gretl1 --output="scatter.png"
)'
exec_gretl(code)

## End(Not run)

gretlR documentation built on May 1, 2022, 5:06 p.m.