<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Issues in running a R Script from JSL in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Issues-in-running-a-R-Script-from-JSL/m-p/397236#M64794</link>
    <description>Hi brady&lt;BR /&gt;&lt;BR /&gt;I ran the the code in r studio, with the same blu files and it works. I haven't run line by line though&lt;BR /&gt;</description>
    <pubDate>Wed, 30 Jun 2021 17:05:48 GMT</pubDate>
    <dc:creator>Adhil71186</dc:creator>
    <dc:date>2021-06-30T17:05:48Z</dc:date>
    <item>
      <title>Issues in running a R Script from JSL</title>
      <link>https://community.jmp.com/t5/Discussions/Issues-in-running-a-R-Script-from-JSL/m-p/395956#M64664</link>
      <description>&lt;P&gt;This is my script:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here( 1 );
R Init();
x = R Submit File("C:/Users/adhil/Documents/JMP/Test Program Validation/Jun 2021 Test Program Release Validation/compile.r");
df = R Get(main_df)
R Term();&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;this is the R Script I intend to run&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;library(dplyr)

setwd("~/JMP/HPLED Validation/Jun 2021 HPLED Release Validation")

new_tProgram_data &amp;lt;- "./data/A05/data_01.blu"
por_tProgram_data &amp;lt;- "./data/A05/data_02.blu"

new_df &amp;lt;- read.table(new_tProgram_data , sep="\t", skip=2, header=T) %&amp;gt;%
  select(c("Row", "Col", "Voltage", "LeakageV", "Power"))
colnames(new_df) &amp;lt;- paste(colnames(new_df), "NEW", sep = "_")

por_df &amp;lt;- read.table(por_tProgram_data , sep="\t", skip=2, header=T) %&amp;gt;%
  select(c("Row", "Col", "Voltage", "LeakageV", "Power"))
colnames(por_df) &amp;lt;- paste(colnames(por_df), "POR", sep = "_")

main_df &amp;lt;- merge(new_df, por_df, by.x=c("Row_NEW", "Col_NEW"), by.y=c("Row_POR", "Col_POR"))&lt;/PRE&gt;&lt;P&gt;However when I run the R script from JSL and try to retrieve the main_df from r via&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;df = R Get(main_df)&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;I get the following Error&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture.PNG" style="width: 238px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/33792i6A2F39838D8A103F/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capture.PNG" alt="Capture.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;x = R Submit File("C:/Users/adhil/Documents/JMP/Test Program Validation/Jun 2021 Test Program Release Validation/compile.r");&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;x shows -1&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;please advise&lt;/P&gt;</description>
      <pubDate>Sat, 10 Jun 2023 23:32:28 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Issues-in-running-a-R-Script-from-JSL/m-p/395956#M64664</guid>
      <dc:creator>Adhil71186</dc:creator>
      <dc:date>2023-06-10T23:32:28Z</dc:date>
    </item>
    <item>
      <title>Re: Issues in running a R Script from JSL</title>
      <link>https://community.jmp.com/t5/Discussions/Issues-in-running-a-R-Script-from-JSL/m-p/396065#M64672</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You may have already tried this, but if not: try running the code (as you only have a few lines) line-by line using R Submit ( ) statements interspersed with R Get statements... you should then be able to see whether the problem is the original data (beginning with the files xxx.blu themselves), the merge itself (perhaps empty), or something else.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Cheers,&lt;/P&gt;
&lt;P&gt;Brady&lt;/P&gt;</description>
      <pubDate>Fri, 25 Jun 2021 16:33:41 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Issues-in-running-a-R-Script-from-JSL/m-p/396065#M64672</guid>
      <dc:creator>brady_brady</dc:creator>
      <dc:date>2021-06-25T16:33:41Z</dc:date>
    </item>
    <item>
      <title>Re: Issues in running a R Script from JSL</title>
      <link>https://community.jmp.com/t5/Discussions/Issues-in-running-a-R-Script-from-JSL/m-p/397236#M64794</link>
      <description>Hi brady&lt;BR /&gt;&lt;BR /&gt;I ran the the code in r studio, with the same blu files and it works. I haven't run line by line though&lt;BR /&gt;</description>
      <pubDate>Wed, 30 Jun 2021 17:05:48 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Issues-in-running-a-R-Script-from-JSL/m-p/397236#M64794</guid>
      <dc:creator>Adhil71186</dc:creator>
      <dc:date>2021-06-30T17:05:48Z</dc:date>
    </item>
    <item>
      <title>Re: Issues in running a R Script from JSL</title>
      <link>https://community.jmp.com/t5/Discussions/Issues-in-running-a-R-Script-from-JSL/m-p/397245#M64795</link>
      <description>When I type print(main_df) in the rscript , the data frame gets printed out in jmp logs, I have a problem in importing it to jmp</description>
      <pubDate>Wed, 30 Jun 2021 17:11:18 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Issues-in-running-a-R-Script-from-JSL/m-p/397245#M64795</guid>
      <dc:creator>Adhil71186</dc:creator>
      <dc:date>2021-06-30T17:11:18Z</dc:date>
    </item>
  </channel>
</rss>

