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

Witold E Wolski wewolski at gmail.com
Fri Oct 7 12:18:24 CEST 2016


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



More information about the R-devel mailing list