Thanks.

run(`cmd /c jags`) directly goes into JAGS mode. After running my JAGS 
model, can it go back to Julia mode?

Jameson於 2014年8月3日星期日UTC+8下午1時35分58秒寫道:
>
> run(`cmd /c jags`) -- the /c flag is needed to tell cmd to run the command
>
> run(`jags-terminal`) -- the batch script jags.bat sets a few environment 
> variables you would probably need to duplicate if you decide to go this 
> route (e.g. ENV["VAR"] = "VALUE")
>
>
> On Sun, Aug 3, 2014 at 1:18 AM, KK Sasa <[email protected] <javascript:>> 
> wrote:
>
>> Hi Jameson,
>>
>> 1) run(`cmd jags`) lets Julia go into command prompt, and then input jags 
>> will go into JAGS mode. Can it come back to Julia again?
>>
>> 2) run(`jags-terminal`) seems find JAGS but fails to load JAGS' modules, 
>> it says "module could not be found".
>>
>> Any suggestions?
>>
>> Thank you.
>>
>> Jameson於 2014年8月3日星期日UTC+8下午12時26分17秒寫道:
>>
>>> jags is distributed as jags.bat, but jags.bat is defined as not 
>>> executable in windows. This is because Windows doesn't let you spawn 
>>> arbitrary files. The command prompt implements various workarounds for 
>>> this, but libuv has chosen not to try to duplicate them.  It seems your 
>>> options are either to spawn a command interpreter `cmd jags` or call 
>>> `jags-terminal` directly
>>>
>>> (neither of these is what the command prompt does, since the command 
>>> prompt actually sources the files directly, thus modifying the callee's 
>>> environment)
>>>
>>>
>

Reply via email to