Skip to content

Zip a file

7 messages · Berend Hasselman, arun, Rantony +1 more

#
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.
#
On 13-09-2012, at 14:10, Rantony wrote:

            
What exactly did you try?
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
#
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
#
On Tue, Sep 18, 2012 at 9:40 AM, Rantony <antony.akkara at ge.com> wrote:
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