在用eviews7.1做Bai-Perron test的时候,程序显示 "R is not installed, please check your EViews documentation for instructions on installing R."但是我已经安装了R了,还是不行。有没有同学能告诉我R的正确安装方法,万分感激。
* a suitable version of R (>= 2.12.0)
* a matching version of rscproxy
Download statconnDCOM 3.1-2B7
Installing
R Components EViews was developed and tested with the following R components. You must have the following installed on the machine running EViews (or have R server components registered on the same machine via DCOM):
R, version 2.8.1 or later.
rscproxy, version 1.0-12.
statconnDCOM, version 3.1-1B2.
Newer versions of rscproxy or statconnDCOM may work, but have not been tested with EViews. Note that rscproxy version 1.0-13 has known issues with the console output feature, such that you may not see any output in the R Output Log window in EViews.
New R installation If you do not currently have R installed, the easiest procedure is to run the latest RAndFriends setup file located at
http://rcom.univie.ac.at/download.html
As of this documentation, RAndFriendsSetup2090V3.0-14-2.exe is the latest file, which includes the proper rscproxy version 1.0-12. Run the basic installation of RAndFriendsSetup2090V3.0-14-2.exe, leaving the Direct internet connection box checked, to install R version 2.9.0, rscproxy version 1.0-12, and statconnDCOM version 3.1-1B2. After installing statconnDCOM, you may cancel out of the installation of RExcel, as it is not needed by EViews.
Modifying an Existing R installation If you already have R installed, verify that it is at least version 2.8.1. Also, you should check your R installation write path and version information in your windows registry, as this information is needed by statconnDCOM to find your R installation. You should have an entry in the registry that looks like the following:
Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\SOFTWARE\R-core]
[HKEY_LOCAL_MACHINE\SOFTWARE\R-core\R]
"InstallPath"="C:\\Program Files\\R\\R-2.8.1"
"Current Version"="2.8.1"
[HKEY_LOCAL_MACHINE\SOFTWARE\R-core\R\2.8.1]
"InstallPath"="C:\\Program Files\\R\\R-2.8.1"
If you don't have these entries in your registry, you can re-install R and check the checkbox Save version number in registry (this option is checked by default) or you can manually add them to the registry (with your proper values for "Install Path" and "Current Version"). If you choose to edit your registry, we highly recommend that you first make a backup copy.
The current version of R is available at one of the Comprehensive R Archive Network sites near you (go to "http://cran.r-project.org/mirrors.html" for a current list). You should navigate to the "bin/windows/base" directory and download the installer for the current version (it should have a name that looks like "R-X.X.X-win32.exe". For more info, see the R Windows FAQ, which currently may be found at
Installing rscproxy and statconnDCOM When you have verified that the R installation path and version in your registry are correct, you can install rscproxy and statconnDCOM.
To install the rscproxy package, open R and select the Packages\Install Package(s)... menu item to see a list of available packages. First select your country and region, and then find rscproxy and click OK.
To install statconnDCOM, download the latest version from http://rcom.univie.ac.at/download.html
and run the setup program.
Verifying installation Once installation is complete, run the statconn "Server 01 - Basic Test" program, usually found under Start->All Programs->statconn->DCOM->Server01 - Basic Test, to verify that everything is working. Click on the Start R button to begin the test.
Once you have run the test, you should be able to run EViews and use the xopen command to open a connection to R.
xopen(type=r)
This command will open a connection to R from within EViews and will also open an R output log window in EViews.
打开eviews 7,help-eviews help topic
点击“搜索 (search)” 选项卡,输入install r,
选择“EViews COM Automation Client Support (MATLAB and R) ”,里面详细介绍如何安装r,以及如何在eviews中运行r (实际上就是用xopen(type=r))