Open yifeihhou opened 2 years ago
Hi @yifeihhou ,
This problem was reported in the past (see here) and was linked to binaries in the src
folder of the package. Please note that this package has been tested on Ubuntu 16.04 LTS, macOS Sierra and High Sierra. What OS are you using? Could you share your sessionInfo()
to better understand your setup?
Hi @galanisl ! Thanks for replying. The OS i'm using is Big Sur, and here is the sessionInfo()
, hope it's helpful:
R version 4.0.5 (2021-03-31)
Platform: x86_64-apple-darwin17.0 (64-bit)
Running under: macOS Big Sur 10.16
Matrix products: default
LAPACK: /Library/Frameworks/R.framework/Versions/4.0/Resources/lib/libRlapack.dylib
locale:
[1] zh_CN.UTF-8/zh_CN.UTF-8/zh_CN.UTF-8/C/zh_CN.UTF-8/zh_CN.UTF-8
attached base packages:
[1] stats graphics grDevices utils datasets methods base
other attached packages:
[1] scales_1.1.1 RSpectra_0.16-0 NetHypGeom_0.9 devtools_2.4.3 ggplot2_3.3.5 usethis_2.1.5
[7] Rcpp_1.0.8.3 igraph_1.2.11
loaded via a namespace (and not attached):
[1] pillar_1.7.0 compiler_4.0.5 remotes_2.4.2 prettyunits_1.1.1 tools_4.0.5
[6] testthat_3.1.2 pkgbuild_1.3.1 pkgload_1.2.4 lattice_0.20-41 memoise_2.0.1
[11] lifecycle_1.0.1 tibble_3.1.6 gtable_0.3.0 pkgconfig_2.0.3 rlang_1.0.2
[16] Matrix_1.3-2 cli_3.2.0 fastmap_1.1.0 withr_2.5.0 dplyr_1.0.2
[21] generics_0.1.0 desc_1.4.1 fs_1.5.0 vctrs_0.3.8 rprojroot_2.0.2
[26] grid_4.0.5 tidyselect_1.1.0 glue_1.6.2 R6_2.5.1 processx_3.5.2
[31] fansi_1.0.3 sessioninfo_1.2.2 purrr_0.3.4 callr_3.7.0 magrittr_2.0.2
[36] ps_1.4.0 ellipsis_0.3.2 colorspace_2.0-3 utf8_1.2.2 munsell_0.5.0
[41] cachem_1.0.6 crayon_1.5.0 brio_1.1.0
Sorry that I don't really understand how to link to the binaries in the src
folder since I'm not very familiar with C++, do I need to download the repo files and make some linking job done?
Hi @yifeihhou
Sorry for getting back to you until now. I had time to look at your issue until recently.
First the answer to your question: no, you don't need to worry about the binaries in the src
folder. As I mention in the other issue, I removed them from the folder to force your OS to compile the C++ code locally.
I tested the installation of NetHypGeom
in Big Sur and it worked without issues. Did you install the macOS command line developer tools in your computer (see https://developer.apple.com/xcode/resources/)?
Hi, I know that this problem has occurred in the issue before, but I don't know how it was resolved.
When I run the example code, I'm getting this below error:
hm <- labne_hm(net = net$network, gma = 2.3, Temp = 0.15, k.speedup = 10, w = 2*pi) Error in hypermap(as_data_frame(params$net, what = "edges"), params$gma, : object 'NetHypGeom_hypermap' not found
I think I did import all the packages needed, do you mind helping me see where could have gone wrong? (Here is what I have tried: I found a function named 'NetHypGeom_hypermap' in the src folder. I've been trying to use sourceCpp to import that folder into R, but it didn't work.)