From h.wickham at gmail.com  Wed Apr 29 18:35:47 2015
From: h.wickham at gmail.com (Hadley Wickham)
Date: Wed, 29 Apr 2015 11:35:47 -0500
Subject: [Rd] R CMD INSTALL and windows paths with ampersands
Message-ID: <CABdHhvGoi2TCe8DhBNTmd5PSjDNpjrY1ySc0x1og8tdWA=gcpw@mail.gmail.com>

mkdir "A&"
R
# install.packages("pkgKitten")
pkgKitten::kitten("aPackage", "A&")
q()
R CMD INSTALL "A&"

gives

Warning invalid package A
(not the absence of the ampersand)

I'm reasonably certain this is a bug - I don't think ampersands should
require any additional escaping when already double quoted.

Note that

R CMD INSTALL "A^&"

does work

Hadley

-- 
http://had.co.nz/



[Rd] R CMD INSTALL and windows paths with ampersands
Hadley Wickham