| exec_commands {EviewsR} | R Documentation |
Execute EViews commands.
Description
Use this function in R, R Markdown and Quarto to execute EViews commands.
Usage
exec_commands(commands = "", wf = "", page = "", save_path = "")
Arguments
commands |
Object or a vector of character strings of |
wf |
Object or a character string representing the name of an |
page |
Object or a character string representing the name of an |
save_path |
Object or a character string representing the path to the folder to save the |
Value
An EViews workfile
See Also
Other important functions:
EviewsR,
create_object(),
eng_eviews(),
eviews_graph(),
eviews_import(),
eviews_pagesave(),
eviews_wfcreate(),
eviews_wfsave(),
export_dataframe(),
export(),
import_equation(),
import_graph(),
import_kable(),
import_series(),
import_table(),
import_workfile(),
import(),
rwalk(),
set_eviews_path()
Examples
library(EviewsR)
## Not run:
# The first example creates an `EViews` workfile with monthly frequency from 1990 2021,
# then save the workfile in the current working directory
exec_commands(c("wfcreate(wf=exec_commands,page=eviewsPage) m 2000 2022"))
# The second example opens the `EViews` workfile and then generate a random series
# named `y` and plots its line graph. It also freezes `ols` equation as `EviewsROLS`
eviewsCommands='pagecreate(page=eviewspage1) 7 2020 2022
for %page eviewspage eviewspage1
pageselect {%page}
genr y=@cumsum(nrnd)
genr x=@cumsum(nrnd)
equation ols.ls y c x
graph x_graph.line x
graph y_graph.area y
freeze(OLSTable,mode=overwrite) ols
next'
exec_commands(commands=eviewsCommands,wf="exec_commands")
# unlink("exec_commands.wf1")
## End(Not run)