"Description missing when running Execute R [SOLVED]"

gunnerli90gunnerli90 MemberPosts:11Contributor I
edited June 2019 inHelp
I tried to use Execute R to run one of the tutorials-Reading an example set from a file using R. But when I clicked the triangle sign, it pops up an error "Description missing". I am using Windows 8.1 64 bits and I have installed packages "rJava" and "data.table" in my R. I do not know how to configure my R in Rapidminer. Please tell me how to solve this problem.
Tagged:

Answers

  • Marco_BoeckMarco_Boeck Administrator, Moderator, Employee, Member, University ProfessorPosts:1,984RM Engineering
    Hi,

    can you please post the content of the log as well as your process XML?
    With the R Scripting extension the only thing you'd normally have to do is click on the operator and then follow the instructions in the Parameters view to initialize the R connection.

    Regards,
    Marco
  • gunnerli90gunnerli90 MemberPosts:11Contributor I
    Hi, Marco! I did not see anywhere to set parameters and connect to R after installing Execute R. Below is the log:

    2015年8月11日6:39:19点INFO: No filename given for result file, using stdout for logging results!
    2015年8月11日6:39:19点INFO: Loading initial data.
    2015年8月11日6:39:19点INFO: Process starts
    2015年8月11日6:39:19点SEVERE: Process failed: No message.
    2015年8月11日6:39:19点SEVERE: Here:
    2015年8月11日6:39:19点SEVERE: Process[1] (Process)
    2015年8月11日6:39:19点SEVERE: subprocess 'Main Process'
    2015年8月11日6:39:19点SEVERE: +- Retrieve Golf[1] (Retrieve)
    2015年8月11日6:39:19点SEVERE: ==> +- Execute R[1] (Execute R)
    2015年8月11日6:39:19点SEVERE: +- Execute R (2)[0] (Execute R)

    And the xml:





    <宏/ >





    Fetch example data



    Save example data in a csv file and hand the file over to the next R operator



    Read data from the given file and return a part of the data










  • Marco_BoeckMarco_Boeck Administrator, Moderator, Employee, Member, University ProfessorPosts:1,984RM Engineering
    Hi,

    that the error message is missing is a bug:(
    But the good news is, you just need to init the connection to R like so:

    image

    Regards,
    Marco
  • gunnerli90gunnerli90 MemberPosts:11Contributor I
    Thanks Marco! But I do not know the path to R executable because I cannot find the "Rscript.exe". Generally, where does this executable file locate in?
  • MartinLiebigMartinLiebig 管理员、版主、员工,RapidMiner Certified Analyst, RapidMiner Certified Expert, University ProfessorPosts:3,404RM Data Scientist
    Hi,

    mine is located at
    C:\Program Files\R\R-3.2.0\bin\Rscript.exe
    Windows 8.1

    Regards,
    Martin
    - Sr. Director Data Solutions, Altair RapidMiner -
    Dortmund, Germany
  • gunnerli90gunnerli90 MemberPosts:11Contributor I
    I found the Rscript.exe file but when I clicked the "test" button, it came out another error "'D:/Program' is not recognized as an internal or external command, operable program or batch file". My path isD:\Program Files\R\R-3.1.1\bin\Rscript.exe
  • Marco_BoeckMarco_Boeck Administrator, Moderator, Employee, Member, University ProfessorPosts:1,984RM Engineering
    Hi,

    what OS are you using? I cannot reproduce the problem on the Windows machines here, but I think I know what you can do to fix it: Add a quote before and after the path, so that it says

    "D:\Program Files\R\R-3.1.1\bin\Rscript.exe"
    in the preferences.

    Regards,
    Marco
  • gunnerli90gunnerli90 MemberPosts:11Contributor I
    I am using Windows 8.1 64-bit. I added quotes to my path but the result was still the same. Should I reinstall my R in C drive?
  • gunnerli90gunnerli90 MemberPosts:11Contributor I
    Finally, I solved the problem. For 64-bit OS, I need to use the Rscript.exe file in "x64" folder (there are two Rscript.exe files in "bin"). Anyway, thank you, Marco!
Sign InorRegisterto comment.