fslaborg / RProvider

Access R packages from F#
http://fslab.org/RProvider/
Other
235 stars 69 forks source link

Exception thrown on OS X el capitan #165

Closed tjaskula closed 8 years ago

tjaskula commented 8 years ago

Hi,

I'm trying to use RProvider on Mac. I went through all the compilation/configuration steps but finally when running inside the F# interactive I have the following error:

F# Interactive for F# 4.0 (Open Source Edition)
Freely distributed under the Apache 2.0 Open Source License

For help type #help;;

#nowarn "211"
#I "packages/RProvider"
#load "RProvider.fsx"

open RProvider
open RProvider.graphics
open RProvider.grDevices
open RProvider.datasets;;

--> Added '/Users/tjaskula/Documents/GitHub/BlogSupport/packages/RProvider' to library include path

[Loading /Users/tjaskula/Documents/GitHub/BlogSupport/packages/RProvider/RProvider.fsx]
Binding session to '/Users/tjaskula/Documents/GitHub/BlogSupport/packages/RProvider/lib/net40/RProvider.Runtime.dll'...

/Users/tjaskula/Documents/GitHub/BlogSupport/packages/RProvider/RProvider.fsx(23,1): error FS3053: The type provider 'RProvider.RProvider' reported an error: The type provider constructor has thrown an exception: Initialization of R.NET failed

Some details on my environment: OS X El capitan 10.11.2

Fsharp 4.0

RProvider 1.1.15

mono --version Mono JIT compiler version 4.3.3 (64 bits)

echo $R_HOME /Library/Frameworks/R.framework/Resources

echo $LD_LIBRARY_PATH /Library/Frameworks/R.framework/Libraries/

tjaskula commented 8 years ago

FYI, After setting export RPROVIDER_LOG=/some_path/rlog.txt the file is not even created.

tpetricek commented 8 years ago

Can you try with the latest version? It includes some fixes that @evelinag needed to get it to work on her Mac.

evelinag commented 8 years ago

I'll try to update the instructions on how to set it up tomorrow, it should be easier since 64-bit mono is now included in the default installation of mono.