From phgrosjean at sciviews.org  Mon Jun 29 19:59:31 2009
From: phgrosjean at sciviews.org (Philippe Grosjean)
Date: Mon, 29 Jun 2009 19:59:31 +0200
Subject: [Rd] Installing DLL elsewhere than in \libs?
Message-ID: <4A490103.3000602@sciviews.org>

Hello,

Its a couple of days I am fighting with this problem, and cannot find a 
solution. I need to compile a DLL that is not directly used by R, but 
must be installed elsewhere (it is indeed part of a Tcl/Tk package). So, 
I want to install it in /tklibs/tkpackage/alib.dll (under Windows) in my 
compiled package.

I do manage to compile it in /src, but cannot copy it at the right 
place. I tried using a cleanup.win file that contains:

cp src/alib.dll "${R_PACKAGE_DIR}/tklibs/tkpackage/alib.dll"

but it does not work. The Writing R extensions manual explicitly says 
not to use ${DPKG}. Yet, the following instruction does the job under R 
2.8.0:

cp src/alib.dll "${DPKG}/tklibs/tkpackage/alib.dll"

I become really desperate to get it working!
Thanks for help.
Best,

PhG
-- 
..............................................<?}))><........
  ) ) ) ) )
( ( ( ( (    Prof. Philippe Grosjean
  ) ) ) ) )
( ( ( ( (    Numerical Ecology of Aquatic Systems
  ) ) ) ) )   Mons-Hainaut University, Belgium
( ( ( ( (
..............................................................



[Rd] Installing DLL elsewhere than in \libs?
Philippe Grosjean