Re: [Jgeneral] R interface problem
Which of the files in the bin directory are you refering to as the cmd file. Sent from Mail for Windows 10 From: chris burke Sent: Friday, January 3, 2020 12:42 AM To: General forum Subject: Re: [Jgeneral] R interface problem Thanks. I remember now this came up recently, and the solution was to replace the R_HOME setting with the full path to R. Please check if this works for you, i.e. your cmd file to load J should be something like (use the correct R version): @rem SET R_HOME="c:\Program Files\R\R-3.3.2" set PATH=C:\WINDOWS;C:\WINDOWS\system32;C:\Program Files\R\R-3.3.2\bin\x64 C:\Users\chris\j901\bin\jqt.exe This worked in our testing, but why the R_HOME setting fails in Windows is a mystery. AFAIK it should be equivalent to setting the path. On Wed, Jan 1, 2020 at 8:22 PM Lippu Esa wrote: > Thank you Chris, here is what I get> > > >NB. demo >NB. >NB. This script demos the J/Rserver connection. > >load 'stats/r/rserver' > >Ropen'' > |domain error: cd > | r=.ropen1 0 > |[-6] c:\users\sel1\j901-user\temp\3.ijs >cder'' > 1 0 > > > Esa > -- For information about J forums see http://www.jsoftware.com/forums.htm -- For information about J forums see http://www.jsoftware.com/forums.htm
Re: [Jgeneral] R interface problem
Great, many thanks Chris! I got it working: NB. demo NB. NB. This script demos the J/Rserver connection. load 'stats/r/rserver' Ropen'' 0 Rget 'pi' 3.14159 Rget '1:4' 1 2 3 4 Rget 'matrix(1:6,2,3)' 1 3 5 2 4 6 ... Actually I had to do both, i.e. add the full path to R in variable PATH and also set the variable R_HOME. @rem load J Qt IDE @rem run from the J install directory set PATH=%PATH%;c:\progra~1\r\r-3.5.0\bin\x64 set R_HOME=c:\progra~1\r\r-3.5.0 @cd /d %~dp0 @start bin\jqt.exe %* Esa -Original Message- From: General On Behalf Of chris burke Sent: Thursday, January 2, 2020 1:42 PM To: General forum Subject: Re: [Jgeneral] R interface problem Thanks. I remember now this came up recently, and the solution was to replace the R_HOME setting with the full path to R. Please check if this works for you, i.e. your cmd file to load J should be something like (use the correct R version): @rem SET R_HOME="c:\Program Files\R\R-3.3.2" set PATH=C:\WINDOWS;C:\WINDOWS\system32;C:\Program Files\R\R-3.3.2\bin\x64 C:\Users\chris\j901\bin\jqt.exe This worked in our testing, but why the R_HOME setting fails in Windows is a mystery. AFAIK it should be equivalent to setting the path. On Wed, Jan 1, 2020 at 8:22 PM Lippu Esa wrote: > Thank you Chris, here is what I get> > > >NB. demo >NB. >NB. This script demos the J/Rserver connection. > >load 'stats/r/rserver' > >Ropen'' > |domain error: cd > | r=.ropen1 0 > |[-6] c:\users\sel1\j901-user\temp\3.ijs >cder'' > 1 0 > > > Esa > -- For information about J forums see https://eur01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.jsoftware.com%2Fforums.htmdata=01%7C01%7C%7C06838c72aa5648c1e7a208d78f78d55a%7C5090e269dbea4e98a9aa3e70be5890f7%7C0sdata=ONnL%2BelLYVXfkGfhi3xfK5PIGNfR7o9twv1C3A%2BhOtQ%3Dreserved=0 Tämän viestin sisältö liitteineen on luottamuksellinen ja tarkoitettu vain sen vastaanottajalle. Jos et ole viestin tarkoitettu vastaanottaja, pyydämme sinua poistamaan viestin liitteineen ja sen jälkeen ilmoittamaan asiasta välittömästi viestin lähettäjälle. Viestin sisällön paljastaminen, kopioiminen tai muu käyttö on kielletty. The contents of this message and any attachments are confidential and meant solely for the intended recipient. If you are not the intended recipient, we kindly ask that you delete the message and its attachments, and immediately notify the sender of the email. Disclosing, copying or using the contents of the message is strictly prohibited. -- For information about J forums see http://www.jsoftware.com/forums.htm
Re: [Jgeneral] R interface problem
Thank you Chris, here is what I get> NB. demo NB. NB. This script demos the J/Rserver connection. load 'stats/r/rserver' Ropen'' |domain error: cd | r=.ropen1 0 |[-6] c:\users\sel1\j901-user\temp\3.ijs cder'' 1 0 Esa -Original Message- From: General On Behalf Of chris burke Sent: Thursday, January 2, 2020 3:47 AM To: General forum Subject: Re: [Jgeneral] R interface problem After the cd error, please run cder'' and let us know the result. See https://eur01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fcode.jsoftware.com%2Fwiki%2FGuides%2FDLLs%2FError_Messagesdata=01%7C01%7C%7C3a3753e520264cc31e3208d78f25ca2e%7C5090e269dbea4e98a9aa3e70be5890f7%7C0sdata=bzyJtB1SRZqA%2F4yJGmIHxWOa8QfhtSTXAkxaGF9lff8%3Dreserved=0 On Wed, Jan 1, 2020 at 5:37 PM Lippu Esa wrote: > Happy new year to everybody! > > I am having trouble with the R interface: > >Ropen'' > |domain error: cd > | r=.ropen1 0 > > >JVERSION > Engine: j901/j64avx2/windows > Release-a: commercial/2019-12-12T14:43:50 > Library: 9.01.18 > Qt IDE: 1.8.5s/5.12.6 > Platform: Win 64 > Installer: J901 install > InstallPath: c:/j901 > Contact: > https://eur01.safelinks.protection.outlook.com/?url=www.jsoftware.comdata=01%7C01%7C%7C3a3753e520264cc31e3208d78f25ca2e%7C5090e269dbea4e98a9aa3e70be5890f7%7C0sdata=xUm%2BOTG09hcXpsPFi9iSHSvulYuqnDjdwl%2FdQIftjQo%3Dreserved=0 > > shell 'set | findstr R_HOME' > R_HOME=C:\Program Files\r\r-3.5.0 > >chdir 'C:\Program Files\r\r-3.5.0' > >dir '' > Tcl 21-May-18 21:42:54 > bin 21-May-18 21:42:02 > doc 21-May-18 21:42:05 > etc 21-May-18 21:42:05 > include 21-May-18 21:42:05 > library 21-May-18 21:42:43 > modules 21-May-18 21:42:46 > share 21-May-18 21:42:46 > src 21-May-18 21:42:47 > tests 21-May-18 21:42:55 > CHANGES 27421 23-Apr-18 10:33:34 > COPYING 18011 17-Mar-10 14:43:02 > MD5 52 23-Apr-18 10:41:06 > README4132 04-Oct-16 09:14:58 > README.R-3.5.08676 23-Apr-18 10:40:48 > unins000.dat 1089568 21-May-18 21:42:56 > unins000.exe 1202385 21-May-18 21:41:20 > > > I have never tried this in any J version. > > Any ideas? > > Esa > > Tämän viestin sisältö liitteineen on luottamuksellinen ja tarkoitettu vain > sen vastaanottajalle. Jos et ole viestin tarkoitettu vastaanottaja, > pyydämme sinua poistamaan viestin liitteineen ja sen jälkeen ilmoittamaan > asiasta välittömästi viestin lähettäjälle. Viestin sisällön paljastaminen, > kopioiminen tai muu käyttö on kielletty. > > The contents of this message and any attachments are confidential and > meant solely for the intended recipient. If you are not the intended > recipient, we kindly ask that you delete the message and its attachments, > and immediately notify the sender of the email. Disclosing, copying or > using the contents of the message is strictly prohibited. > -- > For information about J forums see > https://eur01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.jsoftware.com%2Fforums.htmdata=01%7C01%7C%7C3a3753e520264cc31e3208d78f25ca2e%7C5090e269dbea4e98a9aa3e70be5890f7%7C0sdata=rvv0BhKc2dFOyqqxb1oZMOu9gxG5mvSZNXl0lmb02G8%3Dreserved=0 > -- For information about J forums see https://eur01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.jsoftware.com%2Fforums.htmdata=01%7C01%7C%7C3a3753e520264cc31e3208d78f25ca2e%7C5090e269dbea4e98a9aa3e70be5890f7%7C0sdata=rvv0BhKc2dFOyqqxb1oZMOu9gxG5mvSZNXl0lmb02G8%3Dreserved=0 Tämän viestin sisältö liitteineen on luottamuksellinen ja tarkoitettu vain sen vastaanottajalle. Jos et ole viestin tarkoitettu vastaanottaja, pyydämme sinua poistamaan viestin liitteineen ja sen jälkeen ilmoittamaan asiasta välittömästi viestin lähettäjälle. Viestin sisällön paljastaminen, kopioiminen tai muu käyttö on kielletty. The contents of this message and any attachments are confidential and meant solely for the intended recipient. If you are not the intended recipient, we kindly ask that you delete the message and its attachments, and immediately notify the sender of the email. Disclosing, copying or using the contents of the message is strictly prohibited. -- For information about J forums see http://www.jsoftware.com/forums.htm
Re: [Jgeneral] R interface problem
After the cd error, please run cder'' and let us know the result. See https://code.jsoftware.com/wiki/Guides/DLLs/Error_Messages On Wed, Jan 1, 2020 at 5:37 PM Lippu Esa wrote: > Happy new year to everybody! > > I am having trouble with the R interface: > >Ropen'' > |domain error: cd > | r=.ropen1 0 > > >JVERSION > Engine: j901/j64avx2/windows > Release-a: commercial/2019-12-12T14:43:50 > Library: 9.01.18 > Qt IDE: 1.8.5s/5.12.6 > Platform: Win 64 > Installer: J901 install > InstallPath: c:/j901 > Contact: www.jsoftware.com > > shell 'set | findstr R_HOME' > R_HOME=C:\Program Files\r\r-3.5.0 > >chdir 'C:\Program Files\r\r-3.5.0' > >dir '' > Tcl 21-May-18 21:42:54 > bin 21-May-18 21:42:02 > doc 21-May-18 21:42:05 > etc 21-May-18 21:42:05 > include 21-May-18 21:42:05 > library 21-May-18 21:42:43 > modules 21-May-18 21:42:46 > share 21-May-18 21:42:46 > src 21-May-18 21:42:47 > tests 21-May-18 21:42:55 > CHANGES 27421 23-Apr-18 10:33:34 > COPYING 18011 17-Mar-10 14:43:02 > MD5 52 23-Apr-18 10:41:06 > README4132 04-Oct-16 09:14:58 > README.R-3.5.08676 23-Apr-18 10:40:48 > unins000.dat 1089568 21-May-18 21:42:56 > unins000.exe 1202385 21-May-18 21:41:20 > > > I have never tried this in any J version. > > Any ideas? > > Esa > > Tämän viestin sisältö liitteineen on luottamuksellinen ja tarkoitettu vain > sen vastaanottajalle. Jos et ole viestin tarkoitettu vastaanottaja, > pyydämme sinua poistamaan viestin liitteineen ja sen jälkeen ilmoittamaan > asiasta välittömästi viestin lähettäjälle. Viestin sisällön paljastaminen, > kopioiminen tai muu käyttö on kielletty. > > The contents of this message and any attachments are confidential and > meant solely for the intended recipient. If you are not the intended > recipient, we kindly ask that you delete the message and its attachments, > and immediately notify the sender of the email. Disclosing, copying or > using the contents of the message is strictly prohibited. > -- > For information about J forums see http://www.jsoftware.com/forums.htm > -- For information about J forums see http://www.jsoftware.com/forums.htm
[Jgeneral] R interface problem
Happy new year to everybody! I am having trouble with the R interface: Ropen'' |domain error: cd | r=.ropen1 0 JVERSION Engine: j901/j64avx2/windows Release-a: commercial/2019-12-12T14:43:50 Library: 9.01.18 Qt IDE: 1.8.5s/5.12.6 Platform: Win 64 Installer: J901 install InstallPath: c:/j901 Contact: www.jsoftware.com shell 'set | findstr R_HOME' R_HOME=C:\Program Files\r\r-3.5.0 chdir 'C:\Program Files\r\r-3.5.0' dir '' Tcl 21-May-18 21:42:54 bin 21-May-18 21:42:02 doc 21-May-18 21:42:05 etc 21-May-18 21:42:05 include 21-May-18 21:42:05 library 21-May-18 21:42:43 modules 21-May-18 21:42:46 share 21-May-18 21:42:46 src 21-May-18 21:42:47 tests 21-May-18 21:42:55 CHANGES 27421 23-Apr-18 10:33:34 COPYING 18011 17-Mar-10 14:43:02 MD5 52 23-Apr-18 10:41:06 README4132 04-Oct-16 09:14:58 README.R-3.5.08676 23-Apr-18 10:40:48 unins000.dat 1089568 21-May-18 21:42:56 unins000.exe 1202385 21-May-18 21:41:20 I have never tried this in any J version. Any ideas? Esa Tämän viestin sisältö liitteineen on luottamuksellinen ja tarkoitettu vain sen vastaanottajalle. Jos et ole viestin tarkoitettu vastaanottaja, pyydämme sinua poistamaan viestin liitteineen ja sen jälkeen ilmoittamaan asiasta välittömästi viestin lähettäjälle. Viestin sisällön paljastaminen, kopioiminen tai muu käyttö on kielletty. The contents of this message and any attachments are confidential and meant solely for the intended recipient. If you are not the intended recipient, we kindly ask that you delete the message and its attachments, and immediately notify the sender of the email. Disclosing, copying or using the contents of the message is strictly prohibited. -- For information about J forums see http://www.jsoftware.com/forums.htm