search for: unz

Displaying 20 results from an estimated 31 matches for "unz".

Did you mean: jnz
2007 Dec 19
1
unexpected behavior from gzfile and unz
I get unexpected behavior from "readLines()" and "scan()" depending on how the file is opened with "gzfile" or "unz". More specifically: > file <- gzfile("file.gz") > readLines(file,1) [1] "a\tb\tc" > readLines(file,1) [1] "a\tb\tc" > close(file) It seems that the stream is rewound between calls to readLines. The same is true if I replace readLines with scan....
2003 Jul 11
2
unz()
I am having problems getting the unz() function to work as a connection to start reading a file... z <- unz("c:/temp/stoxx.zip", "close_tmi_components.txt", "r") readLines(z,2) yields the following problems: > z <- unz("c:/temp/stoxx.zip", "close_tmi_components.txt", "...
2010 Jul 09
4
Mysterious behavior
I had trouble with some tests for the survival suite last night that I cannot explain. Framework: Ubuntu Linux, R2.11. For testing survival I have a separate directory and Makefile. I pull everything into the local .RData, no packages, library, or namespace. (It's easier to add test modifications to a routine in a chain of calls). A test of survreg + psline would fail because
2009 Jul 28
2
Looking for example of usage of function unz
I would greatly appreciate some example of correct usage of function unz. I have to download and uncompress the following web compressef file: ftp://ftp.sanger.ac.uk/pub/mirbase/targets/v5/arch.v5.txt.homo_sapiens.zip I tried the following command that does not work: Targets.rec <- readLines(zz <- unz("ftp://ftp.sanger.ac.uk/pub/mirbase/targets/v5/arch.v5....
2012 Jan 31
2
how to unzip files in R
Hi, I have downloaded a bunch of bz2 files. I wonder if R will be able to unzip them in a batch mode or even one at a time? I was looking at the unz function. But it didn't work well. Say I have a bz2 file in H:/Temp/65502805_532.pair.bz2. Anyone has any suggestion? thanks John > setwd("H:\\Temp\\") > getwd() [1] "H:/Temp" > fn<-list.fi...
2003 Jul 24
0
unz( "x.zip", "y.csv" ) != pipe( "unzip -p x.zip y.csv" )
Not sure this is a bug in R. Maybe its a bug in my understanding of unz(). The character 'b2' (hexadecimal) is in position 535 of line 1 of 'naughty.csv'. This character appears as superscript '2' and came to me in an EXCEL file that I converted to text in a comma separated ( *.csv ) format. The first line gets truncated by readLines after 5...
2010 Sep 20
0
unz() ignores encoding argument
Hi! I'm trying to read individual files from a ZIP archive, using the unz() function. Some of the files contain non-ASCII characters and I'd like to avoid unpacking them in a temporary directory. My problem is that unz() seems to ignore the encoding="latin1" option I need to read the non-ASCII characters properly. I can't find a clear indication in t...
2005 Aug 24
1
How to get the list of the files when you read zip file by gzfile or unz
Dear List, Does somebody know how to get the filename lists in the ziped when "gzfile" or "unz" command is used ? Thanks for your help. Shawn Lee -- The information contained in this communication and any atta...{{dropped}}
2011 Jul 07
2
UNZ FM TOWNS Emulator not reading discs
Hello all, I've got Unz (FM Towns emulator) running under wine but its not capable of reading the original FM Towns CDROM images on my Mac. I have it working under Windows XP using Daemon Tools to mount the ISO but under OSX it does not work. I have the ISO mounted under finder and have pointed my wine configuration to t...
2007 Jun 06
1
opening a file from within a zipfile that is online
Hi Reading the help for ?unz I was wondering if I can read data into R from within an zipfile that is on some website, like maybe: dtaa = read.table(unz("http://www.ats.ucla.edu/stat/examples/alsm/alsm.zip","Ch01pr19.dat")) Thanks for letting me know if you came acros such a thing before. Toby
2012 May 30
1
reading file in zip archive
...containing several files. One of these files is called goCats.txt and I would like to read it into R from the archive. It's a simple tab delimited text file. pathToZip <- '/home/iain/Documents/Work/Results/bovineMacRNAData/deAnalysis/afInfection/commonNorm/twoHrs/af2hrs.zip' z <- unz(pathToZip, 'goCats.txt', 'r') zT <- read.table(z, 'goCats.txt', header=T, sep='\t') Error in read.table(z, "goCats.txt", header = T, sep = "\t") :   seek not enabled for this connection The same error arises with readLines. Can anyone advi...
2008 Oct 09
1
Reading zipped data directly from an FTP url
...addition: Warning message: In open.connection(file, "r") : cannot open compressed file 'ftp://ftp.sanger.ac.uk/pub/mirbase/targets/v5/arch.v5.txt.gallus_gallus .zip', probable reason 'No such file or directory' With all the different ways of opening connections (url(), unz(), gzfile(), gzcon() etc) I am just getting a bit lost. The above zip archive contains a single tab-delimited file, but one which I need to skip the first 5 lines. Any help appreciated! Thanks Mick
2006 Sep 25
1
Passing R connection as argument to a shell command on Windows
Hello, is there a way to pass a connection to a file in a zipped archive as argument (instead of a file name of unzipped file) to shell command "cut". In general, is it possible to pipe output of a R function to a shell command? How? I want to do something like: z = unz("zipArchive.zip", "fileASCII.ASC") # open connection open(z) # cut lines of the ASCII file in zipped archive at...
2007 Mar 30
1
zip.file.extract on Windows
...unterintuitive to me, that it should get the part from the first argument, and apply that path to the second, it seems to how this works. This seems to me to be the wrong approach, since it won't handle folders inside the zipfile correctly. Am I missing something? Should I just use "unz" instead? Thanks, Gregg L.
2007 Jan 26
1
CGIwithR and visible output of 'invisible(capture.output(library(...)))'
...gical reason why this still happens. Deleting the line with "invisible ... library().." and adding 'library(R2HTML)' to .Rprofile does not solve the problem. I use ubuntu edgy, R Version 2.3.1 (2006-06-01) THANKS! best wishes, leo PS: the output is (uncut) <----> MiniUnz 1.01b, demo of zLib + Unz package written by Gilles Vollant more info at http://www.winimage.com/zLibDll/unzip.html /usr/local/lib/R/site-library/R2HTML/output/R2HTMLstuff.zip opened extracting: ASCIIMathML.js extracting: factor.gif extracting: gridR2HTML.css extracting: gridR2HTML.js extracting: n...
2004 May 18
1
Having issues with rpcclient's adddriver
...NZE21N.ICC,CNZN15N.ICC,CNZN18N.ICC,CNZN21N.ICC,CNZP15N.ICC,\ CNZP18N.ICC,CNZP21N.ICC,CnP5eE.DLL,CnP5eE0.CNT,CnP5eE0.HLP,\ CnP5eEUI.DLL,CnP5eEUM.DLL,DCS.DLL,DCSTBL.DLL,GP300FK.XPD,GP300PK.XPD,\ IMF32.DLL,IMFPRINT.DLL,ML51NSAR.DLL,OK001U2H.CAP,OK009U0H.CCM,\ OK714NHE.VER,OMRDM32.DLL,OP5100.DAT,OP5100.UNZ,OP51ICB.BIN,\ OPCLB002.DLL,OPCST000.DLL,OPDMN004.DLL,OPDVA002.DLL,OPHCRENU.DLL,\ OPHCSENU.DLL,OPHCWDDM.DLL,OPHCWDUI.DLL,OPHCWINF.DAT,OPHCWM00.DAT,\ OPHCWNXS.DLL,OPHCWNXT.DLL,OPHCWS00.DAT,OPNE000C.SCR,OPRCL000.DLL,\ OPS00ENU.DLL,OPS00JPN.DLL,OPUSB000.DLL,QDPRIOK.DLL,RDMWIN32.DLL,\ SDDM.INI,SDDMOK.DL...
2009 Jul 31
1
Install R on Cygwin (correction)
Hello, I should use R on cygwin. I have ever install cygwin and now I try to install R. I have read the R manual and particularly the part : Installation R under Unix but I improved some difficulties for succeed in this task. Actually I have create a R repertory where I have unzipped the file R-2.9.1.tar.gz. In this repertory I do ./configure in cygwin but some errors appear and I don't understant them. I would specify that I'm a beginner on cygwin. ######################################################################### $ ./configure checking build system type.....
2003 Oct 13
1
opening a WinZip file
Hello I am trying to read a large number of WinZip files from inside R (v 1.7.1, options()$unzip = internal). I have unsuccessfully tried to unpack the files and write to an external directory so that I could read the text files using zip.unpack. Reading some of the archives suggests that this is for .ZIP format files only. I have also unsuccessfully tried to use gzfile to open a connectio...
2010 Jan 13
1
decompress tar.gz and zip files
Can anyone point me in the right direction for decompressing text files that are compressed as tar.gz or zip files? Cheers, Nathan -- -------------------------------------------------------- Dr. Nathan S. Watson-Haigh OCE Post Doctoral Fellow CSIRO Livestock Industries University Drive Townsville, QLD 4810 Australia Tel: +61 (0)7 4753 8548 Fax: +61 (0)7 4753 8600 Web:
2004 Nov 08
1
Extension provokes crash in unzReadCurrentFile
I'm doing some work in C with the R_ExternalPointer interface, and having some seg fault problems. I expect the crash is my fault, bad pointer in my code causing a fault later etc, but I'm curious about the point of failure. R almost always falls over in a call to unzReadCurrentFile following a burst of disk activity. I'm definitely not doing anything that would call that explicitly, and I don't notice the bursts of disk activity in similar work without using my package. Any idea what might be causing a compressed file read? Something to do with lazy l...