import_workfile {EviewsR} | R Documentation |
EViews
equation data members, graph, series and table objects(s) into R, R Markdown or Quarto.Use this function to import EViews
equation data members, graph, series and table objects(s) into R, R Markdown or Quarto.
import_workfile(
wf = "",
page = "*",
equation = "*",
graph = "*",
series = "*",
table = "*",
graph_procs = "",
save_options = "",
save_path = dirname(wf),
save_copy = T,
class = "df"
)
wf |
Object or a character string representing the name of an |
page |
Object or a character string representing the name of an |
equation |
Name(s) or wildcard expressions for |
graph |
Name(s) or wildcard expressions of EViews graph object(S) |
series |
Name(s) of |
table |
Name(s) or wildcard expressions for |
graph_procs |
A vector containing |
save_options |
A vector of options to be passed to |
save_path |
Object or a character string representing the path to the folder to save the |
save_copy |
Logical. Whether to save the copy of the graph objects |
class |
Class of the R object: |
An EViews workfile
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_graph()
,
import_kable()
,
import_series()
,
import_table()
,
import()
,
rwalk()
,
set_eviews_path()
library(EviewsR)
## Not run:
demo(exec_commands)
# To import all equation, graph, series and table objects across all pages
import_workfile(wf="exec_commands")
# To import specific objects
import_workfile(wf="exec_commands",equation="ols",graph="x*",series="y*",table="ols*")
# To import objects on specific page(s)
import_workfile(wf="exec_commands",page="eviewspage")
# To access the objects in base R
eviews$eviewspage_ols # equation
# eviewspage-x_graph # graph saved in "figure/" folder
eviews$eviewspage %>% head() # series
eviews$eviewspage_olstable # table
# To get the values above in R Markdown or Quarto:
# chunkLabel$eviewspage_ols # equation
# chunkLabel-eviewspage-x_graph # graph saved in "fig.path" folder
# chunkLabel$eviewspage %>% head() # series
# chunkLabel$eviewspage_olstable # table
## End(Not run)