Skip to content
Prev 38694 / 63424 Next

Rcmd SHLIB error

On Sun, Dec 19, 2010 at 9:07 AM, Duncan Murdoch
<murdoch.duncan at gmail.com> wrote:
Thanks.  I now have a better workaround.  The batch file shown below
works but if /i386 is changed to i386 then it fails because it looks
for a directory called etci386:

  setlocal
  set R_ARCH=/i386
  "C:\Program Files\R\R-2.12.x\bin\i386\Rcmd.exe" SHLIB myprog.c
  endlocal

1. It seems the / is missing between etc and $(R_ARCH) on lines 31 and
38 of that Makefile (or if etci386 is intended then the actual
structure of R that is installed is wrong).
2. page 8 of R-admin manual says that there is an --arch argument with
values i386, 32, x64, 64 but neither "Rcmd --help" nor "Rcmd SHLIB
--help" document an argument for setting the architecture.
3. on page 12 of the R-ext manual it refers to
R_HOME/etcR_ARCH/Makeconf so the documentation and how the Makefile
works seems inconsistent with the actual R directory structure which
is etc/i386 and not etci386.