Closed nfultz closed 6 years ago
I'll have to look into this further. The only thing odd I see you doing is installing directly from your R library. It is meant to be first extracted with lologPackageSkeleton
and then installed. I've checked that
R CMD INSTALL lolog/inst/examplePackage/LologExtension
works on my system. But it seems
R CMD INSTALL /Library/Frameworks/R.framework/Versions/3.4/Resources/library/lolog/examplePackage/LologExtension
also works. So it is perhaps a platform difference.
R version 3.4.0 (2017-04-21)
Platform: x86_64-apple-darwin15.6.0 (64-bit)
Running under: macOS 10.13.4
Matrix products: default
BLAS: /Library/Frameworks/R.framework/Versions/3.4/Resources/lib/libRblas.0.dylib
LAPACK: /Library/Frameworks/R.framework/Versions/3.4/Resources/lib/libRlapack.dylib
locale:
[1] en_US.UTF-8/en_US.UTF-8/en_US.UTF-8/C/en_US.UTF-8/en_US.UTF-8
attached base packages:
[1] stats graphics grDevices utils datasets methods base
loaded via a namespace (and not attached):
[1] compiler_3.4.0
My best guess right now is that registerMinDegree is getting called before it is ready?
Might consider using C init hooks a la https://github.com/jeroen/openssl/blob/master/src/onload.c rather than .onload in zzz.R
I've been unable to reproduce this yet, but I don't have an ubuntu system where I am right now so that is the likely cause.
I could move registration into R_init, but that would break Rcpp::compileAttributes and make extension packages a pain to develop in RStudio. I've made some edits to the way the c++ registration code was called in the extension package. Neal, can you try again using the ext
branch of lolog and see if the changes make any difference?
I was able to reproduce on an ubuntu machine. This is fixed by #2 .
I tried installing the example package, it compiles just fine but then fails to load. ??? :(
explicitly building the package first didn't help either: