On Thu, 7 Aug 2008, Chen, Zehao wrote:

Hello,

I was building a R addin for Excel. I was able to build R.dll, export to
Rdll.lib and wrap it in a Excel addin (.xll) format. Most basic
functions work fine within Excel except functions that use LAPACK, e.g.
eigen, solve etc. But if you use solve(..., LINPACK = T). That's fine.

So apparently the problem is with loading the shared library
../modules/lapack.dll. I read one of the earlier threads on this issue

Most likely finding Rlapack.dll.

with Rexcel with R earlier than 1.7.1. I am not sure if anyone has seen
similar problem?

Yes, and the answer has been to ensure that the RHOME/bin directory is in the path. You don't need to do that for R itself because the directory containing the application is one of the places searched for DLLs.

This is documented in 'Writing R Extensions', right there in the section on 'Calling R.dll directly'.

Thanks in advance!

Best Regards,
Zehao

--
Brian D. Ripley,                  [EMAIL PROTECTED]
Professor of Applied Statistics,  http://www.stats.ox.ac.uk/~ripley/
University of Oxford,             Tel:  +44 1865 272861 (self)
1 South Parks Road,                     +44 1865 272866 (PA)
Oxford OX1 3TG, UK                Fax:  +44 1865 272595

______________________________________________
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Reply via email to