Hi, How to zip a csv file ? i tried with "zipfile.ZipFile" - but it showing function could not find. Is there have any other way to zip files without installing any package ? - Thanks in advance Antony -- View this message in context: http://r.789695.n4.nabble.com/Zip-a-file-tp4643012.html Sent from the R help mailing list archive at Nabble.com.
Zip a file
7 messages · Berend Hasselman, arun, Rantony +1 more
On 13-09-2012, at 14:10, Rantony wrote:
Hi, How to zip a csv file ? i tried with "zipfile.ZipFile" - but it showing function could not find.
What exactly did you try?
Is there have any other way to zip files without installing any package ?
Have you tried ??zip or ?zip in R? Berend
HI,
If you look ?zip(), the usage is:
???? zip(zipfile, files, flags = "-r9X", extras = "",
???????? zip = Sys.getenv("R_ZIPCMD", "zip"))
????
A.K.
----- Original Message -----
From: Rantony <antony.akkara at ge.com>
To: r-help at r-project.org
Cc:
Sent: Thursday, September 13, 2012 8:10 AM
Subject: [R] Zip a file
Hi,
How to zip a csv file ? i tried with "zipfile.ZipFile" - but it showing
function could not find.
Is there have any other way to zip files without installing any package ?
- Thanks in advance
Antony
--
View this message in context: http://r.789695.n4.nabble.com/Zip-a-file-tp4643012.html
Sent from the R help mailing list archive at Nabble.com.
______________________________________________
R-help at r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.
3 days later
An embedded and charset-unspecified text was scrubbed... Name: not available URL: <https://stat.ethz.ch/pipermail/r-help/attachments/20120917/6ac19fe4/attachment.pl>
Hi Antony,
I don't use the function zip().? I was able to access the R documentation for zip() (package:utils).
?I am using R 2.15 in Ubuntu 12.04. ? If I wanted to compress files, I do gzip() from linux terminal.? I guess in windows, you can use 7-zip or other WinZip.? Is there any specific reason for you to zip files within R?
A.K. ? ? ??
----- Original Message -----
From: Rantony <antony.akkara at ge.com>
To: r-help at r-project.org
Cc:
Sent: Monday, September 17, 2012 3:07 AM
Subject: Re: [R] Zip a file
Hi Arun,
I tried this way, but getting an error like
Using Eclips:
?Error in .rj.originals$help(..., help_type = "html") : 'topic' should be a name, length-one character vector or reserved word?
Using R:
Error: could not find function "zip"
So, is it required to install any package for zip functioning ?
From: arun kirshna [via R] [mailto:ml-node+s789695n4643049h57 at n4.nabble.com]
Sent: Thursday, September 13, 2012 11:55 PM
To: Akkara, Antony (GE Energy, Non-GE)
Subject: Re: Zip a file
HI,
If you look ?zip(), the usage is:
? ? zip(zipfile, files, flags = "-r9X", extras = "",
? ? ? ? zip = Sys.getenv("R_ZIPCMD", "zip"))
? ?
A.K.
----- Original Message -----
From: Rantony <[hidden email]>
To: [hidden email]
Cc:
Sent: Thursday, September 13, 2012 8:10 AM
Subject: [R] Zip a file
Hi,
How to zip a csv file ? i tried with "zipfile.ZipFile" - but it showing
function could not find.
Is there have any other way to zip files without installing any package ?
- Thanks in advance
Antony
View this message in context: http://r.789695.n4.nabble.com/Zip-a-file-tp4643012.html Sent from the R help mailing list archive at Nabble.com. ______________________________________________ [hidden email] mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. ______________________________________________ [hidden email] mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. ________________________________ If you reply to this email, your message will be added to the discussion below: http://r.789695.n4.nabble.com/Zip-a-file-tp4643012p4643049.html To unsubscribe from Zip a file, click here <http://r.789695.n4.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=4643012&code=YW50b255LmFra2FyYUBnZS5jb218NDY0MzAxMnwxNTUxOTQzMDI5> . NAML <http://r.789695.n4.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml>? -- View this message in context: http://r.789695.n4.nabble.com/Zip-a-file-tp4643012p4643344.html Sent from the R help mailing list archive at Nabble.com. ??? [[alternative HTML version deleted]] ______________________________________________ R-help at r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.
An embedded and charset-unspecified text was scrubbed... Name: not available URL: <https://stat.ethz.ch/pipermail/r-help/attachments/20120918/bb4be5de/attachment.pl>
On Tue, Sep 18, 2012 at 9:40 AM, Rantony <antony.akkara at ge.com> wrote:
Error: could not find function "zip" So, is it required to install any package for zip functioning ?
Technically, one needs the "utils" package, but if it's not autoloading, something seems quite messed up with your R installation. Do you have access to functions like head() and tail()? Also, _please_ stop posting HTML emails: I've said this to you repeatedly. I don't know what your email client is, but if you let me know I'll happily explain to you how to do so. Cheers, Michael