[R] Problem building packages from source (WIN32)

Prof Brian Ripley ripley at stats.ox.ac.uk
Thu Jan 17 18:51:07 CET 2002


On Thu, 17 Jan 2002, Gavin Simpson wrote:

> Many thanks to Peter Dalgaard and Brian Ripley for there incredibly
> quick and accurate identification of my error.
>
> I hadn't put the path to hhc in my path, hence it wouldn't run.  Having
> fixed this, things seem to run alright.  Is there a way to check to see
> if everything has worked as required, or is there something more I
> should do after Rcmd INSTALL pkg as a matter of course?  There still
> seems to be an error (reported as ignored), and I wondered if this can
> be checked?

That's a bug in hhc.exe which always returns a non-zero error code.
That's documented in the help/Makefile, as I recall.

Double-click on the foo.chm installed and check it works is the only test.
But in hundreds of tests I have never seen hhc complete and produce an
invalid .chm.

I always run make pkgcheck-foo after Rcmd INSTALL foo, which checks all
the examples.


> <snip>
> Created c:\R\rw1040\src\gnuwin32\vegan\chm\vegan.chm, 42,50
> Compression decreased file by 19,366 bytes.
> make[2]: [vegan.chm] Error 1 (ignored)
> mkdir -p C:/R/rw1040/library/vegan/chtml
> cp C:/R/rw1040/src/gnuwin32/vegan/chm/vegan.chm C:/R/rw1040
> make[1]: Leaving directory `/cygdrive/c/R/rw1040/src/gnuwin
> make: Leaving directory `/cygdrive/c/R/rw1040/src/gnuwin32'
>
> By the way, as Uwe Ligges indicated in a private email, putting the path
> information in autoexec.bat won't work under Win2000.  The way to do it
> is in Control Panel > System > (click) Advanced Tab > Environmental
> Variables... , choose path from the System Variables window and click
> Edit..., and the add the new path information in the textbox, separating
> entries with a semi colon ";"

Or since you must run this from a terminal (commands prompt or whatever)
you can have a small batch file which sets the path as needed for building
R packages.  That's what I do, as otherwise the path can get too long.
>From what I read Windows NT variants accept paths of more than 262 chars,
but only parse the first 262 characters (which explains a problem Marc
Feldesman had with HHW a long time ago).


-- 
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 272860 (secr)
Oxford OX1 3TG, UK                Fax:  +44 1865 272595

-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
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