[R] Build R-patched from Source

Ko-Kang Kevin Wang kwan022 at stat.auckland.ac.nz
Sat Jan 19 06:19:45 CET 2002


Hi,

If I want to build R-patched from source (on Windows), do I need to edit
Makefile and/or MkRules at all?

I have followed all instructions in the INSTALL file (under
R-patched/src/gnuwin32/), as well as downloaded all the files from
http://www.stats.ox.ac.uk/pub/Rtools/ .  My PATH variable has been
modified accordingly.

Now, with the only change to MkRules I made was to modify the Tcl/Tk path,
to C:/Tcl.  Then when I do:
   make
it goes on and on until it displays (I'm compiling under DOS Prompt):
    /cygdrive/c/BIN/MAKE  --no-print-directory -C
C:/Temp/R-patched/src/library/base
    /chm -f C:/Temp/R-patched/src/gnuwin32/help/Makefile base.chm
    cp C:/Temp/R-patched/src/gnuwin32/help/Rchm.css Rchm.css
    cp C:/Temp/R-patched/doc/html/logo.jpg logo.jpg
    hhc base.hhp
    MAKE[3]: hhc: Command not found
    MAKE[3]: [base.chm] Error 127 (ignored)
    mkdir -p C:/Temp/R-patched/library/base/chtml
    cp C:/Temp/R-patched/src/library/base/chm/base.chm
C:/Temp/R-patched/library/bas
    e/chtml
    cp: cannot stat `C:/Temp/R-patched/src/library/base/chm/base.chm': No
such file
    or directory
    MAKE[2]: *** [chm-base] Error 1
    MAKE[2]: Leaving directory
`/cygdrive/c/Temp/R-patched/src/gnuwin32/help'
    MAKE[1]: *** [pkg-base] Error 2
    MAKE[1]: Leaving directory `/cygdrive/c/Temp/R-patched/src/gnuwin32'
    MAKE: *** [rpackage] Error 2

However the *.exe files under bin directory were made and I can open
RGui.exe without a problem.  It is only when I tried to do a make check
when I found problems in the base package.  It also happens when I tried
running demo(graphics) under RGui - it stops and says cannot find iris
data (but it is there when I checked under base/data).

If I then cd into bitmap, and to a:
    make
then it also works fine.

I also tried to compiled some packages, such as the ctest
(R-patched/src/library), and get:
    ---------- Making package ctest ------------
    mkdir -p C:/TEMP/R-PATCHED/library/ctest
    cp -r   ./INDEX  ./TITLE  C:/TEMP/R-PATCHED/library/ctest/
      adding build stamp to DESCRIPTION
    make[1]: *** [C:/TEMP/R-PATCHED/library/ctest/zzzz] Error 2
    make[1]: Leaving directory
`/cygdrive/c/Temp/R-patched/src/library/ctest'
    make: *** [pkg-ctest] Error 2
    make: Leaving directory `/cygdrive/c/TEMP/R-PATCHED/src/gnuwin32'
    *** Installation of ctest failed ***

Some of the R-recommended packages also have the same problem.  As a
result when I tried to make everything into one SetupR.exe it also stopped
right at the beginning...

Any help will be greatly appreciated ;-)

Cheers,


Ko-Kang Wang


------------------------------------------------------------------------------
Ko-Kang Kevin Wang
Statistical Analysis Division Leader
Software Developers' Klub (SDK)
University of Auckland
New Zealand

-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-help-request at stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._



More information about the R-help mailing list