Can't find functions to unload assembly?
It there a function to unload a specific assembly loaded in the environment so that the DLL file is released?
Hi, It is not possible to unload an assembly once loaded. In order to avoid esoteric issues with type equality, rClr uses single application domain; so far as I know, it implies that loaded assemblies cannot be unloaded.
Thanks, @jmp75!
My motivation is simple: I write an F# library in Visual Studio and call it via rClr in R. Once the library is loaded in R, if it cannot be unloaded somehow, the DLL will always be access-restricted, and then it becomes inconvenient to change some code in VS and compile the DLL again due to the restricted DLL access. If one assembly cannot be unloaded, is there a way to unload all loaded assemblies (rather than restart a R session) to release the access of the DLL?
If unloadAllAssemblies can be implemented, it serves my purpose.