Share your ideas for the JMP Scripting Unsession at Discovery Summit by September 17th. We hope to see you there!
Choose Language Hide Translation Bar
Highlighted
vt_sailor
Level I

Loading R .rds files into JMP

We have some equipment that publishes results in an .rds files--an R file format.  I can find how to read a JMP file into R, but I'd like to read the R / .rds file into JMP.  Does anyone have some code snippets that would do this?

 

Thanks!

Ray Bunkofske

4 REPLIES 4
Highlighted
andersonmj2
Level IV

Re: Loading R .rds files into JMP

My approach would be to simply call out to R on your computer and execute the readRDS() function to pull the data in that way.
Highlighted
vt_sailor
Level I

Re: Loading R .rds files into JMP

What I know about R you can put in a thimble. Can I set it up as a JMP function so that the user can stay within the JMP script? I'm trying to build a dataflow that: looks in a directory, loads the R files, creates several JMP reports and saves the JMP data files with the reports embedded. That way folks can view the reports, and do further drill-down with the complete data file.
Highlighted
txnelson
Super User

Re: Loading R .rds files into JMP

You can run this from JMP, however you will have to submit r code that opens the .rds file in r, and then use an r get() function to transfer the data frame in r to a data table in JMP.

See the JSL Scripting Guide section on Extending JMP

     Help==>Books==>Scripting Guide

Jim
Highlighted
Cougar
Level I

Re: Loading R .rds files into JMP

Anyone has an easy solution? thanks

Article Labels

    There are no labels assigned to this post.