tweag / HaskellR

The full power of R in Haskell.

Home Page:https://tweag.github.io/HaskellR

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Error in .deparseOpts(control) : could not find function "anyNA"

GregorySchwartz opened this issue · comments

I get a warning, then a runtime error with a data frame assignment. I think it's because the particular machine I'm running this code on has a compiled version of R, not a part of the official repositories (ubuntu 14.04). However, other programs installed libR.so as well (r-base-core), so maybe haskellr is using the compiled R as intended but the wrong libR.so. I tried solving this using LD_PRELOAD and LD_LIBRARY_PATH to point to the correct libR.so, but it's not working (maybe because stack installs a precompiled version of inline-r and H?). Any ideas on a solution?

In local({ : bytecode version mismatch; using eval
Error in objects(db.pos, all.names = TRUE) :
3 arguments passed to .Internal(ls) which requires 2
Prelude H H R R H> df <- [r| data.frame(x=c(1,2)) |]
*** Exception: R Runtime Error: Error in .deparseOpts(control) : could not find function
"anyNA"

Sorry, my mistake. I actually can get it to work when removing r-base-core (then getting libR.so not found) and pointing pkg-config to the libR.pc file generated from compilation.