This seems to be something more general than library paths. Even when
I get RCall working, it seems that R can't see the changes to
environmental variables made by Julia, i.e.
ENV["FOO"] = "bar"
rprint("Sys.getenv('FOO')")
doesn't work correctly (it returns a blank string, whereas on OS X it
returns "bar"). On the other hand, it does work the other way, i.e.
rprint("Sys.setenv(FOO='baz')")
ENV["FOO"]
gives the desired result. Is there anyway if I can tell if the problem
is on the Julia or the R end?
On 9 May 2015 at 09:13, Simon Byrne <[email protected]> wrote:
> On 8 May 2015 at 22:14, <[email protected]> wrote:
>> Your problem may not be the dll itself, it could be one of its dependencies.
>
> Yes, the problem isn't the dll I'm calling, but one of the dependencies.
>
>> Also the windows dll search path is kind of complex (see
>> https://msdn.microsoft.com/en-us/library/windows/desktop/ms682586(v=vs.85).aspx)
>> and PATH is only included in some of the cases.
>
> I see. But I don't understand why the behaviour would differ depending
> on whether I set the PATH at the command prompt, or from within Julia?
>
> thanks,
> Simon