Error 1 In Extracting From Zip File R
Contents |
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies unspecified error extracting zip file of this site About Us Learn more about Stack Overflow the company
Error 0x80004005 While Extracting Zip File
Business Learn more about hiring developers or posting ads with us Stack Overflow Questions Jobs Documentation Tags Users
Extracting Zip File Java
Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of 4.7 million programmers, just like you, helping each other. Join them; it only takes a
Extracting Zip File Linux
minute: Sign up r function unzip error 1 in extracting from zip file up vote 3 down vote favorite Environment: Windows 7 OS RStudio Version 0.99.491 I have been programming in R for about 4 months via the Coursera Data Science curriculum, but I have NEVER been successful in using the unzip function. I've looked at the forums for hours for potential extracting a zip file on mac solutions, syntax problems, undefined arguments, etc., but to no avail. I eventually unzip the contents manually and proceed with the assignment, but I am tired of not knowing why it is not working. Here are a few examples of the error: fileName <- "StormData.zip" unzip(fileName, exdir = mainDir,subDir) Warning message: In unzip(fileName, exdir = mainDir, subDir) : error 1 in extracting from zip file unzip(fileName) Warning message: In unzip(fileName) : error 1 in extracting from zip file unzip(fileName, "stormdata.csv") Warning message: In unzip(fileName, "stormdata.csv") : error 1 in extracting from zip file unzip(fileName, "stormdata.csv", list = TRUE) Error in unzip(fileName, "stormdata.csv", list = TRUE) : zip file 'StormData.zip' cannot be opened Any suggestions would be greatly appreciated. r unzip share|improve this question edited May 14 at 1:16 Psidom 21.6k51435 asked May 14 at 0:33 Richmodo 161 Where are you getting the zip file from? –Divi May 14 at 0:40 It sounds like a permissions issue. –nrussell May 14 at 0:45 file is download from link –Richmodo May 15 at 8:37 I have no probems download
sorted by: [ date ] [ thread ] [ subject ] [ author ] extracting a zip file windows 7 On Wed, Jan 14, 2015 at 4:32 AM, Emilio Gianicolo extracting zip file in unix
this post in threaded view ♦ ♦ | Report Content as Inappropriate ♦ http://r.789695.n4.nabble.com/Data-import-export-zipped-files-from-URLs-td1017287.html ♦ Data import export zipped files from URLs I am not able to import zipped files from the following link. How to get thw same in to R?. mydata <- read.csv("http://nseindia.com/content/historical/EQUITIES/2010/JAN/cm15JAN2010bhav.csv.zip") ______________________________________________ [hidden email] mailing list https://stat.ethz.ch/mailman/listinfo/r-helpPLEASE do read the posting guide http://www.R-project.org/posting-guide.htmland provide commented, minimal, self-contained, reproducible code. zip file Dieter Menne Threaded Open this post in threaded view ♦ ♦ | Report Content as Inappropriate ♦ ♦ Re: Data import export zipped files from URLs Velappan Periasamy wrote I am not able to import zipped files from the following link. How to get thw same in to R?. extracting zip file mydata <- read.csv("http://nseindia.com/content/historical/EQUITIES/2010/JAN/cm15JAN2010bhav.csv.zip") As Brian Ripley noted in http://markmail.org/message/7dsauipzagq5y36oyou will have to download it first and then to unzip. Dieter Duncan Temple Lang Threaded Open this post in threaded view ♦ ♦ | Report Content as Inappropriate ♦ ♦ Re: Data import export zipped files from URLs Dieter Menne wrote: > > Velappan Periasamy wrote: >> I am not able to import zipped files from the following link. >> How to get thw same in to R?. >> mydata <- >> read.csv("http://nseindia.com/content/historical/EQUITIES/2010/JAN/cm15JAN2010bhav.csv.zip") >> > > As Brian Ripley noted in > > http://markmail.org/message/7dsauipzagq5y36o> > you will have to download it first and then to unzip. Well if downloading to disk first does need to be avoided, you can use the RCurl and Rcompression packages to do the computations in memory: library(RCurl) ctnt = getURLContent("http://nseindia.com/content/historical/EQUITIES/2010/JAN/cm15JAN2010bhav.csv.zip") library(Rcompression) zz = zipArchive(ctnt) names(zz) txt = zz[[1]] read.csv(textConnection(txt)) D. > > Diete