-
Notifications
You must be signed in to change notification settings - Fork 12
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
List of methods to try for .NET interface #26
Comments
@msevestre I do not understand what you mean by the point
? |
@PavelBal Let say I have an object in .NET called Is it possible in R to do something like this: (pseudo code)
|
As I did not work with async in .NET so far, could you provide a simple example (.NET) code for an async-method? |
@msevestre @Yuri05 |
@PavelBal I'll provide some sample code for async method today We will aim for now at supporting Then you need a runtime. .NEt Standard is a common interface between .NET Core and .NET Framework
In the future, we might move everything to .NET Core. This really depends on what our component providers are doing. Not high prio however see this table here
That means that for your test, as long as you are using standard component, you should be good to go In fact, I have just migrated OSPSuite.Utility to .NET Standard and you could try to instantiate some classes already :) (Version 4.0.0.1) |
@PavelBal Attached a .NET Core console project with a .NET Standard library This how it's being called from the .NET core console
|
Results of the evaluation of the rClr-package for communicating with .NET:
I have tested calling a set of simple methods from a library (.dll) of a .NET Framework 4.6.1, a .NET Core 2.2, and .NET Standard 2.0 projects.
Both, .NET Framework and .NET Standard work in Windows and Linux. .NET Core cannot be acccessed from R at all. Additionally, I have tried PKSimCreateIndividual() version (.NET Framework), and it works in windows but not in Linux (though I suppose it is an issue of the dll and not of R). |
@PavelBal . Wow great work! A few questions so that I understand:
Looking good ?? |
Sorry, got messed up with all the .NET definitions.
The entry is called "Multiplicate internal int by a given int)" :) |
Example of R code. Functions from the rClr-package start with "clr".
|
@PavelBal Ok cool |
@PavelBal Another think that we need to try: Parallel execution of code Can we instantiate two instances of the same object, run the code in //, and get some values (provided that said object is implemented in a thread-safe way...otherwise we have bigger problems ) |
@msevestre I have sent you an invitation to a repo, please contact me if something does not work. |
void
return valuevoid
valueThe text was updated successfully, but these errors were encountered: