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 Martin -- Bioconductor
Duncan Murdoch
2006-Jun-09 22:18 UTC
[Rd] Environment variable MAKE not defined on Windows
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-gnuMost 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
Seemingly Similar Threads
- Lack of consistent cross-platform behaviour of tools:::buildVignettes()
- Sys.getenv(): Error in substring(x, m + 1L) : invalid multibyte string at '<ff>' if an environment variable contains \xFF
- Sys.getenv(): Error in substring(x, m + 1L) : invalid multibyte string at '<ff>' if an environment variable contains \xFF
- Environment variables
- Sys.getenv(): Error in substring(x, m + 1L) : invalid multibyte string at '<ff>' if an environment variable contains \xFF