Skip to content
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

Always use ClrFacade.RDotNetDataConverter.SetRDotNet()? #34

Open
PavelBal opened this issue Feb 27, 2024 · 3 comments
Open

Always use ClrFacade.RDotNetDataConverter.SetRDotNet()? #34

PavelBal opened this issue Feb 27, 2024 · 3 comments
Assignees

Comments

@PavelBal
Copy link
Member

nativePkgName <- "RsharpMs"
nativeLibrary <- "D:/Work/OSPS/Repos/rSharp/inst/lib/RsharpMs.dll"
srcPkgLibPath <- "D:/Work/OSPS/Repos/rSharp/inst/lib"

# Load C++ library
dyn.load(nativeLibrary, DLLpath = srcPkgLibPath)
# Load .NET library through C++
invisible(.C("rSharp_create_domain", srcPkgLibPath, PACKAGE = nativePkgName))

typename <- "ClrFacade.RDotNetDataConverter"
methodName <- "SetRDotNet"
.External("r_call_static_method", typename, methodName, ..., PACKAGE = nativePkgName)

Error: Error calling static method

@PavelBal
Copy link
Member Author

What is this " data converter in the R-CLR interop data marshalling." and why do we need it?

@PavelBal PavelBal changed the title ClrFacade.RDotNetDataConverter.SetRDotNet() fails Always use ClrFacade.RDotNetDataConverter.SetRDotNet()? Feb 27, 2024
@PavelBal
Copy link
Member Author

So always us rDotNet and remove the code for turning it on/off etc?

@rwmcintosh
Copy link
Member

Yeah, I'd say this is preferred. We always have this dll beside ClrFacade

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants