
EViews
graph objects(s) into R, R Markdown or Quarto.Use this function to import EViews
graph objects(s) into R, R Markdown or Quarto.
import_graph(
wf = "",
page = "*",
graph = "*",
graph_procs = "",
save_options = "",
save_copy = T,
save_path = dirname(wf)
)
An EViews workfile
Object or a character string representing the name of an EViews
workfile.
Object or a character string representing the name of an EViews
workfile page.
Name(s) or wildcard expressions of EViews graph object(S)
A vector containing EViews
graph procs
such as datelabel
, align
A vector of options to be passed to EViews
save
command. It can take values like "t=png"
,-c
and so on.
Logical. Whether to save the copy of the graph objects
Object or a character string representing the path to the folder to save the EViews
graphs. The current working directory is the default save_path
. Specify the save_path
only if you want the EViews
graphs to live in different path from the current working directory.
Other important functions:
EviewsR
,
create_object()
,
eng_eviews()
,
eviews_graph()
,
eviews_import()
,
eviews_pagesave()
,
eviews_wfcreate()
,
eviews_wfsave()
,
exec_commands()
,
export_dataframe()
,
export()
,
import_equation()
,
import_kable()
,
import_series()
,
import_table()
,
import_workfile()
,
import()
,
rwalk()
,
set_eviews_path()
library(EviewsR)
if (FALSE) {
demo(exec_commands)
# To import all graph objects
import_graph(wf="exec_commands")
# To import only graphs that begin with x:
import_graph(wf="exec_commands",graph="x*")
# To access the graph objects in base R:
# eviewspage-x_graph # graph saved in "figure/" folder
# To get the graph objects in R Markdown or Quarto
# chunkLabel-eviewspage-x_graph # graph saved in "fig.path" folder
}
Run the code above in your browser using DataLab