Skip to main content
Question

RCaller Returning Empty Columns

  • January 8, 2019
  • 4 replies
  • 37 views

Forum|alt.badge.img

Hi All,

I am attempting to use the RCaller to interpolate barometric pressures in water loggers from a set of data taken from a barometric logger in the project site. The R script I am using works in RStudio when I run it and returns correct results, and it runs without throwing an error in FME however the values calculated (interpolated barometric pressure) are <null> when they are taken out of the RCaller into FME.

Any advise would be greatly appreciated!

Thanks

-Jack

This post is closed to further activity.
It may be an old question, an answered question, an implemented idea, or a notification-only post.
Please check post dates before relying on any information in a question or answer.
For follow-up or related questions, please post a new question or idea.
If there is a genuine update to be made, please contact us and request that the post is reopened.

4 replies

Forum|alt.badge.img+2
  • 1891 replies
  • January 9, 2019

@jecollins Make sure you are converting the results of your R analysis into a data frame for the fmeOutput. Only a data frame objects are passed back to FME. This article might help - RCaller: Ins and outs of using R in FME and the section on Getting Results Out of R... There are also links to Tutorial: Getting Started with the RCaller


Forum|alt.badge.img
  • Author
  • 9 replies
  • January 9, 2019

@jecollins Make sure you are converting the results of your R analysis into a data frame for the fmeOutput. Only a data frame objects are passed back to FME. This article might help - RCaller: Ins and outs of using R in FME and the section on Getting Results Out of R... There are also links to Tutorial: Getting Started with the RCaller

Hi Mark, Thanks for that. My script already has the data frame conversion, the image of the transformer appears to have not come through in the original question though.

Thanks

-Jack


Forum|alt.badge.img+2
  • 1891 replies
  • January 10, 2019

Hi Mark, Thanks for that. My script already has the data frame conversion, the image of the transformer appears to have not come through in the original question though.

Thanks

-Jack

@jecollins I wonder if writing back to a data frame (Joined) that you have used as an input might cause problems. Perhaps try outputting to a different data frame. If that doesn't work then please send a sample workspace and data to support: https://www.safe.com/support/report-a-problem/ You could use a Recorder transformer just before the RCaller to save the data that is entering the analysis.


Forum|alt.badge.img
  • Author
  • 9 replies
  • January 11, 2019

@jecollins Make sure you are converting the results of your R analysis into a data frame for the fmeOutput. Only a data frame objects are passed back to FME. This article might help - RCaller: Ins and outs of using R in FME and the section on Getting Results Out of R... There are also links to Tutorial: Getting Started with the RCaller

Yeah, that was an idea I tried too, but it didn't help. As it returns <null> rather than <missing> I wasn't surprised it didn't help. I've sent a copy of the data in to be looked at, I'll update here if there is a resolution.