From hadley at rice.edu  Tue Jun 28 21:03:49 2011
From: hadley at rice.edu (Hadley Wickham)
Date: Tue, 28 Jun 2011 14:03:49 -0500
Subject: [Rd] Small bug in install.packages?
Message-ID: <BANLkTinuHoNi4oQaaC9B1hhMgpdACyfKOw@mail.gmail.com>

When capturing the path to the current R binary, install.packages does:

  cmd0 <- paste(file.path(R.home("bin"), "R"), "CMD INSTALL")

shouldn't that be

  cmd0 <- shQuote(paste(file.path(R.home("bin"), "R"), "CMD INSTALL"))

to allow paths with spaces in them (which would be very common on windows)?

Hadley


-- 
Assistant Professor / Dobelman Family Junior Chair
Department of Statistics / Rice University
http://had.co.nz/



[Rd] Small bug in install.packages?
Hadley Wickham