rdotnet/rClr

Cannot load rClr on Linux/Mono, pkg load fails at clrCallStatic("Rclr.RDotNetDataConverter", "SetRDotNet", setit)

jmp75 opened this issue · 2 comments

jmp75 commented

using version 0.8.3:

R CMD INSTALL --no-test-load rCLr

> library(rClr)
Assembly '/home/xxxxxx/.local/lib/R/3.6.2/site-library/rClr/libs/ClrFacade.dll' doesn't have an entry point.
Error: package or namespace load failed for ‘rClr’:
 .onLoad failed in loadNamespace() for 'rClr', details:
  call: clrCallStatic("Rclr.RDotNetDataConverter", "SetRDotNet", setit)
  error: Type:    System.DllNotFoundException
Message: System.Native assembly:<unknown assembly> type:<unknown type> member:(null)
Method:  
Stack trace:
  at (wrapper managed-to-native) Interop+Sys.LChflagsCanSetHiddenFlag()
  at Interop+Sys..cctor () <0x7fe86e1777d0 + 0x0001c> in <a1ae6166591d4020b810288d19af38d4>:0 

Debugging the C code in VSCode, ClrFacade appears to load, and Rclr.RDotNetDataConverter is indeed compiled in it. No idea why this fails. Missing dependancy hence DLLnotfound?

Mono JIT compiler version 6.8.0.105 (tarball Tue Feb  4 21:19:49 UTC 2020)
Copyright (C) 2002-2014 Novell, Inc, Xamarin Inc and Contributors. www.mono-project.com
	TLS:           __thread
	SIGSEGV:       altstack
	Notifications: epoll
	Architecture:  amd64
	Disabled:      none
	Misc:          softdebug 
	Interpreter:   yes
	LLVM:          yes(610)
	Suspend:       hybrid
	GC:            sgen (concurrent by default)

facing the same issue, do you know how to fix it?

jmp75 commented

I do not. Due to workplace demands I have little time left for the maintenance of rClr unfortunately.