Skip to content
Prev 57471 / 63424 Next

Calling a LAPACK subroutine from R

This will not work on macOS.
The extension for dynamic libraries is .dylib.
So you would need 

lapack.path <- paste0(file.path(R.home(), ifelse(.Platform$OS.type == "windows",
         file.path("bin", .Platform$r_arch, "Rlapack"), file.path("lib", "libRlapack"))),
         ".dylib")

See the help for .Platform and dyn.load for the details for macOS.

Berend