write_inp: Write 'gretl' 'inp' file in R

View source: R/write_inp.R

write_inpR Documentation

Write gretl inp file in R

Description

Use this function to write gretl inp file in R

Usage

write_inp(code,path)

Arguments

code

Object or a character string representing the set of gretl codes

path

Object or a character string representing the path to write the gretl inp file.

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(), include_tex()

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"
)'
write_inp(code,path="gretlCodes")

## End(Not run)

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