import_workfile {EviewsR}R Documentation

Import EViews equation data members, graph, series and table objects(s) into R, R Markdown or Quarto.

Description

Use this function to import EViews equation data members, graph, series and table objects(s) into R, R Markdown or Quarto.

Usage

import_workfile(
  wf = "",
  page = "*",
  equation = "*",
  graph = "*",
  series = "*",
  table = "*",
  graph_procs = "",
  save_options = "",
  save_path = dirname(wf),
  save_copy = T,
  class = "df"
)

Arguments

wf

Object or a character string representing the name of an EViews workfile.

page

Object or a character string representing the name of an EViews workfile page.

equation

Name(s) or wildcard expressions for EViews equation object(s) in an EViews workfile

graph

Name(s) or wildcard expressions of EViews graph object(S)

series

Name(s) of EViews series object(s) in an EViews workfile

table

Name(s) or wildcard expressions for EViews table object(s) in an EViews workfile

graph_procs

A vector containing EViews graph procs such as datelabel, align

save_options

A vector of options to be passed to EViews save command. It can take values like "t=png",-c and so on.

save_path

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.

save_copy

Logical. Whether to save the copy of the graph objects

class

Class of the R object: df for dataframe, or xts for extendable time-series object.

Value

An EViews workfile

See Also

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

Examples

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)

[Package EviewsR version 0.1.6 Index]