|
Hello,
I can only run R code that uses the packages installed with the plug-in. I would like to use other packages downloaded from cran.r-project.org, but SPSS does not seem to see them. I understand that SPSS uses R 2.8, I also have R 2.10 installed on the PC, but I can't figure out where the problem is. Can you help with any ideas? Thanks very much, Eszter ===================== 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 |
|
Jon Peck SPSS, an IBM Company [hidden email] 312-651-3435
Hello, I can only run R code that uses the packages installed with the plug-in. I would like to use other packages downloaded from cran.r-project.org, but SPSS does not seem to see them. >>>You have to install other packages using R directly, or at least by writing some R code. Then you need a library() call in your SPSS R program. The example packages we install illustrate this. I understand that SPSS uses R 2.8, I also have R 2.10 installed on the PC, but I can't figure out where the problem is. >>>The R Essentials installs the correct version of R, but having multiple versions of R installed is not a problem. Of course, to use an R package with SPSS it has to be installed in the right R version. Installing it in 2.10 does not make it available in 2.8. HTH, Jon Peck Can you help with any ideas? Thanks very much, Eszter ===================== 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 |
|
Thanks very much for the quick answer, Jon. It was such a stupid mistake:
I wrote the program in R directly, and since there the package I wanted to use had been loaded by default, I did not need to use the library() function.
So when I copied the syntax into SPSS, the library() call was missing...
I guess this is the type of mistake, you don't forget...
On 5 March 2010 21:51, Jon K Peck <[hidden email]> wrote:
|
| Free forum by Nabble | Edit this page |
