Comments (2)
Hi very good questions:
- if you used the bridge during an R session and no longer using the objects, once the variables are unbound or overridden or the scope exits in R, the CLR side will free the objects.
- i.e. if R's GC runs, I rigged to send messages to the CLR server to remove those objects.
- R has a very basic GC capabilities that responds to variable overwrite, loss of scope, etc.
- As for quitting the server, on unix I use
pkill -f CLR
. Ideally I should add a ``.cshutdown()``` or something like that, to send a poison pill to the server. I don't have anything like that currently. On windows you can kill with the task manager.- I usually leave it running as will tend to use in other sessions
- In terms of forcing R to delete an object:
- obj <- .cnew ("....")
- obj <- NULL or some other value OR
- rm(obj)
from .net-bridge.
Great, thanks for the info. I think that in order to safely integrate rDotNet
into a package, we would need to have both a .cshutdown
(and/or a per-thread equivalent) and the ability to load/unload DLLs on a per-thread basis as per #4. Would this be achievable for the next release of the package?
from .net-bridge.
Related Issues (10)
- Cannot load class from dll HOT 3
- Import Error in Python 3.10 HOT 2
- _cache_io dictionary gets corrupted HOT 6
- .cinit only supports one dll HOT 3
- Run multiple threads of RScript.exe loading different dlls via CLRServer.exe HOT 1
- Valued returned by reference HOT 2
- Access constants of a static class HOT 7
- empty argument -dll when using only one dll HOT 2
- CRAN R package is v0.9.1, but multiple DLLs only available in v0.9.2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from .net-bridge.