Displaying 20 results from an estimated 200 matches similar to: "is gzcon w/ urls not implemented or used differently on linux?"
2020 Jun 29
0
A warning in gzcon but not in gzfile
Hi all,
I used `gzfile` and `gzcon` to read a compressed file but I found that
`gzcon` gave me a different result than `gzfile`. It seems like the `gzcon`
does not handle the data correctly. I have posted an example below. In the
example, a portion of a compressed file is downloaded from Google Cloud as
a raw vector, and the data is saved into a temp file. If I use ` gzfile` to
read the file, it
2015 Mar 03
0
Feature request: copy attributes in gzcon
The `gzcon` function both modifies and copies a connection object:
# compressed text
con1 <- url("http://www.stats.ox.ac.uk/pub/datasets/csb/ch12.dat.gz")
con2 <- gzcon(con1)
# almost indistinguishable
con1==con2
identical(summary(con2), summary(con1))
# both support gzip
readLines(con1, n = 3)
readLines(con2, n = 3)
# opening one opens both
isOpen(con2)
2009 Nov 19
1
problem post request with RCurl
Hi, I am trying to use a CGI service (Pubchem PUG) via RCurl and am
running into a problem where the data must be supplied via POST - but
I don't know the keyword for the argument.
The data to be sent is an XML fragment. I can do this via the command
line using curl: I save the XML string to a file called query.xml and
then do
curl -d @query.xml
2006 Oct 02
0
2.3.1: interacting bugs in load() and gzfile() (PR#9271)
Hello,
If repeated calls are made to save() using the same pre-opened gzfile
connection to a file, and then the connection is closed, the objects
saved by the second and subsequent calls are not correctly restored by
repeated calls to load() with a new gzfile connection to the same file.
What follows are a session exposing the bugs, analysis (see ANALYSIS),
patches (see PATCHES), and a session
2018 May 01
1
possible internal (un)tar bug
>>>>> Martin Maechler <maechler at stat.math.ethz.ch>
>>>>> on Tue, 1 May 2018 16:14:43 +0200 writes:
>>>>> G?bor Cs?rdi <csardi.gabor at gmail.com>
>>>>> on Tue, 1 May 2018 12:05:32 +0000 writes:
>> This is a not too old R-devel on Linux, it already fails
>> in R 3.4.4, and on macOS as well.
2011 Jan 21
1
Reading gz compressed csv file - 'incomplete line found'
Hi all,
I am trying to download, decompress and read a csv file. My code:
myurl <-
"ftp://ftp.ncbi.nih.gov/pub/geo/DATA/supplementary/series/GSE24729/GSE24729_MitoNuclear_suppl_male_stats.csv.gz"
#
myfile <- "GSE24729_MitoNuclear_suppl_male_stats.csv.gz"
#
download.file(myurl, destfile=myfile, mode="w")
#
mycon <- gzcon(gzfile(myfile,
2004 Aug 31
2
corrupted .imap.index.log
Hi, I'm using version 0.99.10.8 on debian 2.4.26 and am getting this
problem, can someone please shed some light over this?
Aug 31 13:58:58 xxx imap(someone): file_wait_lock() failed with modify
log file /var/mail/someone_new/Maildir/.INBOX/.imap.index.log: Resource
temporarily unavailable
and then:
Aug 31 14:00:58 xxx imap(someone): Couldn't lock modify log file
2017 Aug 09
1
Problem with serialization via readRDS() on a textConnection()
(Sorry for not linking to your message; I accidentally deleted the
original copy of your message.)
Your code
> zz = textConnection('tempConnection', 'wb')
> saveRDS(c("a", "b", "c"), zz, ascii = TRUE)
> serialized_obj = paste(textConnectionValue(zz), collapse='\n')
> readRDS(textConnection(serialized_obj))
Error in
2020 Jan 22
1
Memory error in the libcurl connection code
Hi All,
I think there is a memory error in the libcurl connection code that
typically happens when libcurl reads big chunks of data. This
potentially affects all code that use url() with the libcurl download
method, which is the default in most builds. In practice it tends to
happen more with HTTP/2 and if the connection is wrapped into a
gzcon(). macOS Catalina has a libcurl build with HTTP/2
2018 May 03
0
Package for Molecular Properties
library(sos)
(mp <- findFn('{molecular properties}'))
????? ** found 7 matches in 4 packages and opened two web pages in my
default browser with (a) the 7 matches and (b) the 4 packages. The first
function was something for amino acids, like you suggested.? Two others
returned compound and substance information from PubChem.
????? Does this help?
????? Spencer
On
2005 Jan 05
0
zlib
I need to decompress an array of bytes that were compressed using zlib. The
bytes are stored within a binary file. I can seek to the location, read the
length of the compressed byte array, and read the bytes into R. What I need
to do then is decompress the byte array to an array of doubles.
The code looks something like this:
compresslength = readBin(infile, integer(), 1, 4)
data =
2018 May 03
1
Package for Molecular Properties
... In addition, you may wish to also post on the Bioconductor list
for this sort of thing.
-- Bert
Bert Gunter
"The trouble with having an open mind is that people keep coming along
and sticking things into it."
-- Opus (aka Berkeley Breathed in his "Bloom County" comic strip )
On Thu, May 3, 2018 at 12:58 AM, Spencer Graves
<spencer.graves at effectivedefense.org>
2004 Mar 25
0
openssh-unix-dev Digest, Vol 11, Issue 28
The shell that executes on the remote server takes input in the form of
shell commands before it issues a prompt. When you redirect commands
from ssh client to a shell on the remote server there is usually a
trailing EOF to tell the shell to exit. If the shell gets an EOF it
should not respond with a prompt. Also, some shells decide whether or
not to issue a prompt by TTY detection.
2008 Jul 03
0
Cyberpower Value 600E UPS (unlisted) working
Hi Thomas,
Le mercredi 02 juillet 2008 ? 18:52 +0200, Thomas Backman a ?crit :
> Hey! I just bought my first UPS, a Cyberpower Value 600E, and set it
> up using NUT 2.2.x (on Gentoo x86_64). Everything is working great,
> using the usbhid-ups driver, and the UPS isn't on the compatibility
> lists, so I figured I'd post a little heads-up that it works. The
> battery
2009 Jan 19
1
gz netCDF files
Hello,
I am trying to access several netCDF files that are also zipped (via
gzip I guess) (and stored in a directory that I only have reading
permit)
I tried to unzip them using gzfile, gzcon, etc, and then open them
with open.ncdf (from ncdf package). Everything was unsuccesful.
I had no problem using the ncdf package with "normal" netCDF files
I would really appreciate any
2008 Oct 09
1
Reading zipped data directly from an FTP url
Hi
Sorry, I am clearly missing something here.
I want to read this file directly:
ftp://ftp.sanger.ac.uk/pub/mirbase/targets/v5/arch.v5.txt.gallus_gallus.
zip
I tried using
read.table(gzfile("ftp://ftp.sanger.ac.uk/pub/mirbase/targets/v5/arch.v5
.txt.gallus_gallus.zip"))
But I got an error:
Error in open.connection(file, "r") : cannot open the connection
In addition:
2008 Feb 28
2
compress data on read, decompress on write
Dear All,
I'd like to be able to have R store (in a list component) a compressed
data set, and then write it out uncompressed. gzcon and gzfile work in
exactly the opposite direction. What would be a good way to handle
this?
Details:
----------
We have a package that uses C; part of the C output is a large sparse
matrix. This is never manipulated directly by R, but always by the C
code.
2007 Oct 30
1
postscript(), used from a pre R-2.6.0 workspace
I find that if start R-2.6.0 in a workspace with no .RData file,
load one of my workspaces from R-2.5.1 or earlier into R-2.6.0,
and then before doing anything else type postscript(file="z.ps"),
I get::
> ls()
character(0)
> load(url("http://www.maths.anu.edu.au/~johnm/r/test5.RData"))
> postscript(file="z.ps")
Error in postscript(file = "z.ps")
2004 Mar 24
2
Where does the "prompt come from"
Hi All !
I have a little question about the shell that is run when establishing a
connection towards an SSH server.
The client(OpenSSH) displays a prompt(as usual) when a command is executed,
but my question is, where does the prompt come from.
Is it sent by the remote shell or is it handled in the client ??
The reason I ask is that we have developed a product that redirects
stdin/stdout/stderr
2017 Aug 08
0
Problem with serialization via readRDS() on a textConnection()
Hi All,
I had working code under R v3.2 that serialized an object, stored the
serialized object in a database, and then successfully retrieved and
hydrated that object.
I recently updated to R v3.4.1 and the same code now fails.
Here is the code in question (simplified), and the resulting error:
> zz = textConnection('tempConnection', 'wb')
> saveRDS(c("a",