Displaying 20 results from an estimated 500 matches similar to: "unz() ignores encoding argument"
2024 Oct 25
1
readLines() and unz() and non-empty final line
Hi again,
The unz connection is non-blocking by default. I checked do_unz which calls
R_newunz which calls init_con and the only place in any of those functions
that sets 'blocking' is init_con which sets it to FALSE:
https://github.com/wch/r-source/blob/0c26529e807a9b1dd65f7324958c17bf72e1de1a/src/main/connections.c#L713
I'll open an issue on R-bugzilla and see if they're
2024 Oct 24
3
readLines() and unz() and non-empty final line
But note:
> zip("hello.zip", "hello.txt")
updating: hello.txt (stored 0%)
> readChar(unz("hello.zip","hello.txt"),100)
[1] "hello"
I leave it to you and other wiser heads to figure out.
Cheers,
Bert
On Thu, Oct 24, 2024 at 8:57?AM Iris Simmons <ikwsimmo at gmail.com> wrote:
> Hi Mikko,
>
>
> I tried running a few
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.
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 534 characters using
unz():
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", "r")
Error in unz("c:/temp/stoxx.zip",
2024 Oct 25
1
readLines() and unz() and non-empty final line
Hi,
you could use "scan" instead, it seems to work fine also when wrapped
around "unz".
Or, alternatively, you could use "unzip" instead of "unz". It works as
expected, i.e. reads the last incomplete line and throws a warning about
this.
So it seems to me that "unz" creates a non-blocking connection, whereas
"unzip" creates a
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.txt.homo_sapiens.zip"))
2024 Oct 24
2
readLines() and unz() and non-empty final line
Dear list,
I'm seeing a strange interaction with readLines() and unz() when reading
a file without an empty final line. The final line gets dropped silently:
> cat("hello", file = "hello.txt")
> zip("hello.zip", "hello.txt")
adding: hello.txt (stored 0%)
> readLines(unz("hello.zip", "hello.txt"))
character(0)
The
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 the mount point. No luck.
Has anyone successfully got this running under
2017 Jun 18
2
dist function in R is very slow
Hi Stefan,
Thank you very much for pointing me to the wordspace package. It does the job a bit faster than my C code but is 100 times more convenient.
By the way, since the tcrossprod function in the Matrix package is so fast, the Euclidean distance can be computed very fast:
euc_dist <- function(m) {mtm <- Matrix::tcrossprod(m); sq <- rowSums(m*m);? sqrt(outer(sq,sq,"+") -
2009 Sep 30
2
R 2.9.2 crashes when sorting latin1-encoded strings
Hi everyone!
I think I stumbled over a bug in the latest R 2.9.2 patched for OS X:
> R version 2.9.2 Patched (2009-09-24 r49861)
> i386-apple-darwin9.8.0
When I try to sort latin1-encoded character vectors, R sometimes
crashes with a segmentation fault. I'm running OS X 10.5.8 and have
observed this behaviour both with the i386 and x86_64 builds, in the
R.app GUI as well as on
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"
>
2010 Sep 15
3
warning or error upon type/storage mode coercion?
Hi,
I'm aware that the language definition states "R objects are often
coerced to different types during computations". Two questions:
1. Is it possible to configure the R environment so that, for example,
coercion from (say) numeric to integer will throw a warning or an error?
I realize that in the base R code alone, there are thousands of calls to
as.integer() which would
2004 Sep 22
1
'asterisk' displayed on my Cisco 7960 & 7912 ...
The problem is some calls from the PSTN have hidden caller id so if you want to change it to something else then modify chan_sip.c
#define CALLERID_UNKNOWN "Asterisk"
I've changed mine to:
#define CALLERID_UNKNOWN "Unknown"
-----Original Message-----
From: Shaun Ewing [mailto:sewing@gmail.com]
Sent: 22 September 2004 14:16
To: Asterisk Users Mailing List
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
2004 Sep 14
1
Wrong ID going out...
Hi all!
I'm trying to have asterisk route all outgoing calls out via my VOIP
provider.
exten => _NXXXXXXX,1,Dial,SIP/BYEXTENSION@VOIP seems to have them to in
the direct direction. However, debug shows that my asterisk doesn't
identify itself correctly:
Sip read:
SIP/2.0 100 Trying
From: "Evert"<sip:asterisk@[my IP]>;tag=as0aca53fa
To: <sip:[dialled
2004 Sep 14
1
What does 'Forbidden (From header is not a Trust host or gateway)' mean?
From a 'sip debug':
Sip read:
SIP/2.0 100 Trying
From: "Evert"<sip:[username]@[my ext. IP]>;tag=as6e18534e
To: <sip:[dialled number]@[SIP server of VoIP provider]>
Call-ID: 6cbf41c25281f08b2e7bbc5043061975@[my ext. IP]
CSeq: 102 INVITE
Via:SIP/2.0/UDP [my ext. IP]:5060;branch=z9hG4bK4fd1045b
Content-Length:0
7 headers, 0 lines
Sip read:
SIP/2.0 403 Forbidden
2004 Sep 22
1
'asterisk' displayed on my Cisco 7960 & 7912...
Hi!
When I call a colleague of mine from my Cisco (via Asterisk), they get
on their display:
From Evert
asterisk
How do I remove/change the 'asterisk' part?
Regards,
Evert
2010 Aug 09
0
Re: btrfsck: checksum verify failed
Is anyone interested in some part of this filesystem to figure out how
it failed?
Or can I erase and start again?
Kind regards,
-Evert Vorster-
On Sun, Aug 8, 2010 at 8:18 AM, Evert Vorster <evorster@gmail.com> wrote:
> Hi there.
>
> I have a btrfs on a raw device. (/dev/sda insted of in a partition, like
> /dev/sda1 )
> The device in question is a USB hard drive with a 1TB