[R] Extracting data from zip file in one directory to a different directory.

Montgomery, Nigel n|ge|@montgomery @end|ng |rom roche@com
Mon Feb 25 11:22:10 CET 2019


Hi there, I've tried several different ways to do the above (see attempts
below) and none have been successful. From my internet searches this would
appear to be a common problem.
Any pointers would be appreciated.

Attempt 1:
zip_file_loc <- "xx/yy/zipfile.zip"
data <- read_csv(unzip(zip_file_loc))

ERROR: error 1 in extracting from zip file

Attempt 2:
temp <- tempfile()
temp <- "xx/yy/zipfile.zip"
unzip(temp)

ERROR: error 1 in extracting from zip file

Regards, Nigel.

	[[alternative HTML version deleted]]



More information about the R-help mailing list