You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have a further question regarding the rDotNet package:
Currently one can only load one dll and R has to be restarted if another dll has to be loaded. The ref-manual states:
the .NET libraries are to be changed, the CLRServer process and R should be restarted.
This behavior in some situations can have some tricky side-effects. For example (to the best of my knowledge) it is not possible to parallely run two R-Scripts (via RScript.exe) where one R-Script has to load and use a.dll and the other process b.dll.
To be honest, I'm not an expert in .NET at all, but would it be possible to change CLRServer.exe in a way, that each R-Thread can assemble an own and independent connection to the server. (Like the DBI package for databases, where it is possible to independently connect to the database (if that is a good example))
Thanks and Cheers
Simon
The text was updated successfully, but these errors were encountered:
Each R session does indeed create a new thread on the server. However currently there is not support for one session to load dll 1 and another session to load dll 2. Currently, the CLRServer would load whichever DLL(s) were initially provided to it and all other R sessions would share the same DLL set.
It is possible to allow one session to load dll 1 and another to load dll 2. I would need to introduce a message to the API to indicate a DLL for loading. This would work as long as dll 1 and dll 2 do not collide (i.e. are in separate name spaces).
Hi Jonathan,
I have a further question regarding the
rDotNet
package:Currently one can only load one dll and
R
has to be restarted if another dll has to be loaded. The ref-manual states:This behavior in some situations can have some tricky side-effects. For example (to the best of my knowledge) it is not possible to parallely run two R-Scripts (via
RScript.exe
) where one R-Script has to load and usea.dll
and the other processb.dll
.To be honest, I'm not an expert in
.NET
at all, but would it be possible to changeCLRServer.exe
in a way, that each R-Thread can assemble an own and independent connection to the server. (Like theDBI
package for databases, where it is possible to independently connect to the database (if that is a good example))Thanks and Cheers
Simon
The text was updated successfully, but these errors were encountered: