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 with Rexcel with R earlier than 1.7.1. I am not sure if anyone has seen similar problem? Thanks in advance! Best Regards, Zehao - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - This message is intended only for the personal and confidential use of the designated recipient(s) named above. If you are not the intended recipient of this message you are hereby notified that any review, dissemination, distribution or copying of this message is strictly prohibited. This communication is for information purposes only and should not be regarded as an offer to sell or as a solicitation of an offer to buy any financial product, an official confirmation of any transaction, or as an official statement of Lehman Brothers. Email transmission cannot be guaranteed to be secure or error-free. Therefore, we do not represent that this information is complete or accurate and it should not be relied upon as such. All information is subject to change without notice. -------- IRS Circular 230 Disclosure: Please be advised that any discussion of U.S. tax matters contained within this communication (including any attachments) is not intended or written to be used and cannot be used for the purpose of (i) avoiding U.S. tax related penalties or (ii) promoting, marketing or recommending to another party any transaction or matter addressed herein.
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 issueMost 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, ripley at stats.ox.ac.uk 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