[Rd] Small modification of zip.file.extract in utils?

From: Jon Olav Skoien <j.skoien_at_geo.uu.nl>
Date: Thu, 30 Oct 2008 20:08:27 +0100

Dear list,

I needed to extract a zip-archive, and found zip.file.extract in utils. My only problem was the use of tempdir(), since I wanted to permanently extract the archive at a fixed location for later use. My own fix was simple, adding an extra parameter zipdir (without default), and within the function change
tmpd <- tempdir()
tmpd = ifelse(missing(zipdir),tempdir(),zipdir)

This modification could maybe be useful also for other users, unless there are some problems I am not aware of?


R-devel_at_r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel Received on Thu 30 Oct 2008 - 19:37:19 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Sat 01 Nov 2008 - 16:30:41 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-devel. Please read the posting guide before posting to the list.

list of date sections of archive