[Rd] Environment variable MAKE not defined on Windows
Duncan Murdoch
murdoch at stats.uwo.ca
Sat Jun 10 00:18:49 CEST 2006
On 6/9/2006 4:03 PM, Martin Morgan wrote:
> On Windows,
>
>> Sys.getenv("MAKE")
> MAKE
> ""
>
> when (at a DOS prompt)
>
> X:>set MAKE
> Environment variable MAKE not defined
>
> On linux,
>
>> Sys.getenv("MAKE")
> MAKE
> "make"
>
> even when (in a shell)
>
> % echo $MAKE
>
> returns nothing.
>
>
> This has consequences, e.g., in buildVignette where
>
> system(Sys.getenv("MAKE"))
>
> dutifully does nothing on Windows, but evaluates the vignette Makefile
> on linux.
>
>> sessionInfo()
> R version 2.4.0 Under development (unstable) (2006-06-08 r38315)
> i386-pc-mingw32
>
>> sessionInfo()
> R version 2.4.0 Under development (unstable) (2006-05-25 r38197)
> x86_64-unknown-linux-gnu
Most Windows systems don't have a working "make" command, and I don't
know of a reliable test for one. (I believe the one that ships with MS
compilers is not compatible with R's makefiles.) If you do have one,
you can define MAKE=make on the Rgui or Rterm command line.
Duncan Murdoch
More information about the R-devel
mailing list