From wewolski at gmail.com  Fri Oct  7 12:18:24 2016
From: wewolski at gmail.com (Witold E Wolski)
Date: Fri, 7 Oct 2016 12:18:24 +0200
Subject: [Rd] unzip does not like a / at the end of path.
Message-ID: <CAAjnpdgDHuPDKZPW6-i+WhsN+g=96LRKVnm3ZB3MpZ5rtDV29Q@mail.gmail.com>

dir("inst/extdata/")
dir("./inst/extdata/")
dir("inst/extdata")

works all fine, listing the directory content.

but:

unzip(tmp[1],exdir = "inst/extdata/")
Error in unzip(tmp[1], exdir = "inst/extdata/") : 'exdir' does not exist
unzip(tmp[1],exdir = "./inst/extdata/")
Error in unzip(tmp[1], exdir = "inst/extdata/") : 'exdir' does not exist

only
unzip(tmp[1],exdir = "inst/extdata")
does work.

Somehow inconsistent isn't it?


-- 
Witold Eryk Wolski



[Rd] unzip does not like a / at the end of path.
Witold E Wolski