Skip to content
Back to formatted view

Raw Message

Message-ID: <ed24494f1001290450r5f0eb160gbb24fabe04e0b16e@mail.gmail.com>
Date: 2010-01-29T12:50:41Z
From: Giuseppe
Subject: liblapack

Dear all,

I am trying to put together in a package some functions that maybe of
interest to other. A particular function of the package uses "zgges"
from Lapack with a .Fortran call. Since R does not load all symbols
from liblapack, I load all the liblapack symbols (lazyload, it is)
with a .First.lib hook in the zzz.R file:

.First.lib <- function(lib, pkg)
?? ? ? dyn.load("/usr/lib/liblapack.dylib", now = FALSE).

This is ok for my system (OSX 10.6), but it won't work on Linux and
Windows. Of course, it won't work if the location of liblapack is
different from /usr/lib. Is there a way load liblapack conditionally
on the specific system and the location of the library?

Thank you in advance.