Skip to main content
Solved

Error message when starting R Interpreter while using RCaller


Hi,

I always get the same error message when using an RCaller inside my Workspace:

 

"RCaller(InlineQueryFactory): InlineQueryFactory encountered an error when starting R interpreter. Message was: Process failed to start: No such file or directory

 

InlineQueryFactory failed to execute scripted code."

 

 

Does anyone have an idea how to solve this?

My code inside is the following:

 

 

Many thanks in advance!

Best answer by fmelizard

Sounds like it would have to do with the path to your R executable. I just tried on my computer, where i don't have any R installation, and got this in my log:

RCaller(InlineQueryFactory): InlineQueryFactory is using R interpreter `/Library/Frameworks/R.framework/Versions/Current/Resources/bin/Rscript'.

RCaller(InlineQueryFactory): InlineQueryFactory encountered an error when starting R interpreter. Message was: No such file or directory

InlineQueryFactory failed to execute scripted code.

RCaller(InlineQueryFactory): A fatal error has occurred. Check the logfile above for details

So it looks like we don't do a nice bit of error checking when R isn't installed, and I'll ask the team to improve the message.

Please check out the doc at http://docs.safe.com/fme/2016.1/html/FME_Desktop_D... in particular the "installing R" notes in the usage section.

If the problem persists, please do post your log file and we'll look deeper.

View original
Did this help you find an answer to your question?

4 replies

fmelizard
Safer
Forum|alt.badge.img+18
  • Safer
  • Best Answer
  • May 21, 2016

Sounds like it would have to do with the path to your R executable. I just tried on my computer, where i don't have any R installation, and got this in my log:

RCaller(InlineQueryFactory): InlineQueryFactory is using R interpreter `/Library/Frameworks/R.framework/Versions/Current/Resources/bin/Rscript'.

RCaller(InlineQueryFactory): InlineQueryFactory encountered an error when starting R interpreter. Message was: No such file or directory

InlineQueryFactory failed to execute scripted code.

RCaller(InlineQueryFactory): A fatal error has occurred. Check the logfile above for details

So it looks like we don't do a nice bit of error checking when R isn't installed, and I'll ask the team to improve the message.

Please check out the doc at http://docs.safe.com/fme/2016.1/html/FME_Desktop_D... in particular the "installing R" notes in the usage section.

If the problem persists, please do post your log file and we'll look deeper.


  • Author
  • May 25, 2016

Thank you very much!

 

It worked indeed by specifying the the R Interpreter Path in FME Options.

  • June 7, 2016

Hi!

I followed the same installation instructions but I still get the same problem.

This is what I read:

Open an R command prompt.

    • Windows: Run the R GUI as an administrator by right-clicking it in the Start menu and selecting “Run as administrator…” You should use the version that matches your FME version - 64-bit or 32-bit.
    • Mac: Launch the R Console.
  1. Run the following command at the R command prompt:

     

    install.packages("sqldf")
  2. This will launch a window prompting you to select a download mirror. Once a mirror is selected, the sqldf package will be installed to the system-wide R library. It is important that this is done with administrative privileges, otherwise the package will be installed to a user library and FME will not be able to use it.
  3. To verify that sqldf was installed correctly, check the location listed when you run

     

    .libPaths()

     

    at the command line. There should be a folder called “sqldf”.

Then I put this adress to set the path of the "sqldf" library :

C:\\Users\\.......\\Documents\\R\\win-library\\3.3\\sqldf

What else can I do ?

 


  • Author
  • June 7, 2016

Try to put all your R-packages (just do copypaste) including sqldf in your default FME-folder under the following path:

 

...\FME\Plugins\R\

Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings