HenrikBengtsson / matrixStats

R package: Methods that Apply to Rows and Columns of Matrices (and to Vectors)
https://cran.r-project.org/package=matrixStats
202 stars 33 forks source link

.dylib file not present in libs folder of matrixStats #262

Open as224 opened 1 month ago

as224 commented 1 month ago

Hey, I have installed the matrixStats package but there is no matrixStats.dylib file present in the libs folder. Does someone has an idea how I can get it? Thank you!

yaccos commented 1 month ago

Appearently, the latest versions of R on macOS use the .so extension for the shared library of a package, meaning that you should look for matrixStats.so in the libs folder of the installed package. I assume the change is purely cosmetical. However, I wonder why you are interested in obtaining this file as the regular user never gets in touch with it. Does the package fail to load and do you have other uses for the shared library?

as224 commented 1 month ago

I do see the .so file. And I was wondering how I can transfer this to a .dylib file or how I can force the library to install it. I want to load the scry library in python but I get the error that the matrixStats.dylib file does not exist.

yaccos commented 1 month ago

As a hack you could try to create a symlink by running the command ln -s matrixStats.so matrixStats.dylib inside the directory. I do not know how the Python package scry uses matrixStats, but I suspect it would a good idea to make the maintainers aware of the problem.