R modul

classic Classic list List threaded Threaded
6 messages Options
Reply | Threaded
Open this post in threaded view
|

R modul

John Test
hi!
Does anyone else has also problems to get the R plug-in running?
I've installed the newest SPSS19 version including the fix1 (19.0.0.1).
Furthermore, the newest R-plug-in from the developerworks website and R
version 2.10.0.
When I run the menu item: R Boxplot startr.exe is started, but nothing
happens.
Running this simple routine:

BEGIN PROGRAM R.
print("test")
END PROGRAM.

results in an error message: line2 print:
An unexpected symbol was encountered on an output command.

I've installed SPSS and plug-ins on two different computers, first
server2008 R2, second windows 7 professional 32bit desktop system.
Both systems reveal the same behaviour, therefore I would exclude some
problems with the special machine.

Any idea????
THANKS!!!

=====================
To manage your subscription to SPSSX-L, send a message to
[hidden email] (not to SPSSX-L), with no body text except the
command. To leave the list, send the command
SIGNOFF SPSSX-L
For a list of commands to manage subscriptions, send the command
INFO REFCARD
Reply | Threaded
Open this post in threaded view
|

Re: R modul

Jon K Peck
That message is probably due to not selecting and running the entire program.  It is an SPSS error message that indicates that the command was interpreted as an SPSS command rather than R syntax,

Select the block including the begin and end program statements and click run (or use ctrl-r).

Watch the status bar to see what state SPSS is in.

HTH,


Jon Peck
Senior Software Engineer, IBM
[hidden email]
new phone: 720-342-5621




From:        John Test <[hidden email]>
To:        [hidden email]
Date:        05/15/2011 05:53 PM
Subject:        [SPSSX-L] R modul
Sent by:        "SPSSX(r) Discussion" <[hidden email]>




hi!
Does anyone else has also problems to get the R plug-in running?
I've installed the newest SPSS19 version including the fix1 (19.0.0.1).
Furthermore, the newest R-plug-in from the developerworks website and R
version 2.10.0.
When I run the menu item: R Boxplot startr.exe is started, but nothing
happens.
Running this simple routine:

BEGIN PROGRAM R.
print("test")
END PROGRAM.

results in an error message: line2 print:
An unexpected symbol was encountered on an output command.

I've installed SPSS and plug-ins on two different computers, first
server2008 R2, second windows 7 professional 32bit desktop system.
Both systems reveal the same behaviour, therefore I would exclude some
problems with the special machine.

Any idea????
THANKS!!!

=====================
To manage your subscription to SPSSX-L, send a message to
[hidden email] (not to SPSSX-L), with no body text except the
command. To leave the list, send the command
SIGNOFF SPSSX-L
For a list of commands to manage subscriptions, send the command
INFO REFCARD

Reply | Threaded
Open this post in threaded view
|

Re: R modul

John Test
In reply to this post by John Test
Hi Jon!
Thanks for your reply!
I've tested it by selecting the whole block.
The error messages are gone. However, in the viewer, there are still the
syntax lines only (under Log) and no output from R. Looking at the status
bar, I cannot recognize any change during script execution. Looking at the
taskmanager, startR.exe is started, but R is not, at least no visible. How
does the plug-in work, is R started with a visible window if all works ok?
Furthermore, I assume that the non-selecting cannot be the only reason for
problems:
If I use the "new" menu-item: R Boxplot, the whole script runs and is
listed in the output viewer, but there is no box plot from R.
Any idea? THANKS!

=====================
To manage your subscription to SPSSX-L, send a message to
[hidden email] (not to SPSSX-L), with no body text except the
command. To leave the list, send the command
SIGNOFF SPSSX-L
For a list of commands to manage subscriptions, send the command
INFO REFCARD
Reply | Threaded
Open this post in threaded view
|

Re: R modul

Jon K Peck
There will be no R window within Statistics unless you use the browser() call, but printing output, tables, and graphics should appear in the Viewer.

One possibility is that you are having a problem with the SPSS  temporary directory (sometimes there were problems if it has accented characters or blanks in the name).  Try changing it if that is case.

Jon Peck
Senior Software Engineer, IBM
[hidden email]
new phone: 720-342-5621




From:        John Test <[hidden email]>
To:        [hidden email], Jon K Peck/Chicago/IBM@IBMUS
Date:        05/16/2011 08:51 AM
Subject:        Re: R modul




Hi Jon!
Thanks for your reply!
I've tested it by selecting the whole block.
The error messages are gone. However, in the viewer, there are still the
syntax lines only (under Log) and no output from R. Looking at the status
bar, I cannot recognize any change during script execution. Looking at the
taskmanager, startR.exe is started, but R is not, at least no visible. How
does the plug-in work, is R started with a visible window if all works ok?
Furthermore, I assume that the non-selecting cannot be the only reason for
problems:
If I use the "new" menu-item: R Boxplot, the whole script runs and is
listed in the output viewer, but there is no box plot from R.
Any idea? THANKS!

Reply | Threaded
Open this post in threaded view
|

Re: R modul

John Test
In reply to this post by John Test
Hi JOn,
no, it's not the case unfortunately.
The temp dir is c:\wintemp.
Still the same problem on both machines...
Best!

=====================
To manage your subscription to SPSSX-L, send a message to
[hidden email] (not to SPSSX-L), with no body text except the
command. To leave the list, send the command
SIGNOFF SPSSX-L
For a list of commands to manage subscriptions, send the command
INFO REFCARD
Reply | Threaded
Open this post in threaded view
|

Re: R modul

John Test
In reply to this post by John Test
Hi!
I've justed tested as you proposed an invalid piece of R code.
It runs without producing any kind of error code in the output viewer or
in the syntax window.
SAme for the R Boxplot command in the menu items: no error messages, but
no output either.
Any more ideas?
I can contact technical support as I you suggested. What would be the
quickest way to reach them? I just saw that you are working at IBM as
software engineer... :-)
THANKS!!

=====================
To manage your subscription to SPSSX-L, send a message to
[hidden email] (not to SPSSX-L), with no body text except the
command. To leave the list, send the command
SIGNOFF SPSSX-L
For a list of commands to manage subscriptions, send the command
INFO REFCARD