From simon.urbanek at r-project.org  Tue Jun 28 21:22:50 2011
From: simon.urbanek at r-project.org (Simon Urbanek)
Date: Tue, 28 Jun 2011 15:22:50 -0400
Subject: [Rd] Small bug in install.packages?
In-Reply-To: <BANLkTinuHoNi4oQaaC9B1hhMgpdACyfKOw@mail.gmail.com>
References: <BANLkTinuHoNi4oQaaC9B1hhMgpdACyfKOw@mail.gmail.com>
Message-ID: <D7C3B3C4-5ED9-4170-8E4A-BD9EFD00A6BF@r-project.org>


On Jun 28, 2011, at 3:03 PM, Hadley Wickham wrote:

> 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)?
> 

Isn't R.home() 8.3 path anyway?

BTW: I think you probably meant more something like paste(shQuote(file.path(R.home("bin"), "R")), "CMD INSTALL") since the above won't work ..

Cheers,
S



[Rd] Small bug in install.packages?
Simon Urbanek