R not installed

For questions regarding programming in the EViews programming language.

Moderators: EViews Gareth, EViews Moderator, EViews Jason, EViews Matt

javiersan
Posts: 184
Joined: Mon Jan 19, 2009 8:18 am

R not installed

Postby javiersan » Wed Apr 14, 2010 10:23 am

Hi,

Eviews doesn't seem to find my R installation (whether R is open or not). Do you have any suggestions?

Thanks,

Javier

EViews Gareth
Fe ddaethom, fe welon, fe amcangyfrifon
Posts: 13604
Joined: Tue Sep 16, 2008 5:38 pm

Re: R not installed

Postby EViews Gareth » Wed Apr 14, 2010 10:27 am

If you type

Code: Select all

xopen(r)
in the command line, what's the exact error message that comes back?

EViews Steve
EViews Developer
Posts: 844
Joined: Tue Sep 16, 2008 3:00 pm
Location: Irvine, CA

Re: R not installed

Postby EViews Steve » Wed Apr 14, 2010 12:05 pm

R itself doesn't have COM capabilities, but some folks built a program called statconnDCOM to remedy that. It uses an R package named "rscproxy" as well so you'll need both of these installed to get everything working.

You can find more specific instructions in the EViews 7 Command Ref.pdf, page 154 (under Chapter 7 "External Interfaces", section "EViews COM Automation Client Support", sub "Using R", sub "Installing R Components"). But quickly,

To download statconnDCOM:
Go to: http://rcom.univie.ac.at/download.html and scroll down, you should see the download link to statconnDCOM.

To install rscproxy package:
You can do this from within R itself. If statconnDCOM installer didn't automatically install this package for you, you'll have to manually install it in R.

Once you install statconnDCOM, there should be a shortcut installed under Programs->statconn->DCOM->Server 01 - Basic Test. Run this program and click the "Start R" button. If you get error messages, you'll have to investigate further why statconnDCOM can't talk to your R installation (perhaps you didn't install R with the option to store the path to R in the registry?).

If you get the Basic Test to work, EViews should work as well.

Steve

javiersan
Posts: 184
Joined: Mon Jan 19, 2009 8:18 am

Re: R not installed

Postby javiersan » Wed Apr 14, 2010 1:02 pm

Thanks Steve.

I have some admin rights issues that I need to sort out for installing statconnDCOM before going ahead. However, I couldn't find the whitepaper mentioned in the Command & Programming reference manual p. 154 "Using EViews COM Automation Client for R", although everything is probably explained in the manual and your post.

Regards,

Javier

chshay
Posts: 1
Joined: Sat Jun 01, 2013 4:23 pm

Re: R not installed

Postby chshay » Sat Sep 14, 2013 10:05 pm

Hi:

I currently installing statconnDCOM3.5-1B2_Noncommercial and R 3.01 (with rscproxy)
When I statconnDCOM3.5-1B2_Noncommercial, I got the error message "installtion program:unable to load connector".

Could anyone tell me how to fix it?

Sincerely,

Chshay

SEMA
Posts: 1
Joined: Fri Oct 09, 2015 4:16 am

Re: R not installed

Postby SEMA » Fri Oct 09, 2015 4:29 am

If you type

Code: Select all

xopen(r)
in the command line, what's the exact error message that comes back?
When I write that command I get "Failed to initialize R" error. I have R, Statcon and scrproxy already loaded to my computer. I have already checked the path for R; C:Program Files. Thus for the moment I hav no clue about what the problem could be? Thank you in advance.

EViews Steve
EViews Developer
Posts: 844
Joined: Tue Sep 16, 2008 3:00 pm
Location: Irvine, CA

Re: R not installed

Postby EViews Steve » Fri Oct 09, 2015 7:38 am

First, you need to have 32-bit R installed.

Next, when you installed Statconn (which is the COM wrapper for R), it should've installed a test program (named Server 01 - Basic Test) to see if the COM has been setup properly. Run that test program and click the "R" button. After it finished, scroll thru the results and verify that it all worked. If that test works, then EViews should be able to do talk to R successfully. If the test doesn't work, you may have to re-install R or some of it's components.

Steve


Return to “Programming”

Who is online

Users browsing this forum: No registered users and 2 guests