rClr icon indicating copy to clipboard operation
rClr copied to clipboard

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

Open jmp75 opened this issue 5 years ago • 2 comments

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)

jmp75 avatar May 03 '20 07:05 jmp75

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

pelacables avatar Sep 14 '20 11:09 pelacables

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

jmp75 avatar Sep 14 '20 22:09 jmp75