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 <[email protected]> On Behalf Of chris burke Sent: Thursday, January 2, 2020 1:42 PM To: General forum <[email protected]> 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 <[email protected]> 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.htm&data=01%7C01%7C%7C06838c72aa5648c1e7a208d78f78d55a%7C5090e269dbea4e98a9aa3e70be5890f7%7C0&sdata=ONnL%2BelLYVXfkGfhi3xfK5PIGNfR7o9twv1C3A%2BhOtQ%3D&reserved=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
