similar to: Problems installing packages using the inbuilt facility: "Error i n gzfile(file, "r") : unable to open connection"

Displaying 20 results from an estimated 1000 matches similar to: "Problems installing packages using the inbuilt facility: "Error i n gzfile(file, "r") : unable to open connection""

2005 Jul 29
3
Error Downloading Matrix Package
I'm trying to update my Matrix package given the update last night. But the following error is generated. I've tried restarting R and deleting my old Matrix package. Can anyone suggest how this might be resolved? > install.packages('Matrix') trying URL 'http://www.ibiblio.org/pub/languages/R/CRAN/bin/windows/contrib/2.1/Mat rix_0.98-1.zip' Content type
2003 Aug 15
3
How to reinstall rpart?
After entering ?library(rpart)?, I tried to plot an existing rpart tree, and got this error message: Error: couldn't find function "plot.rpart". However, ??plot.rpart? does bring up the help for the function. The same things occur for text.rpart, although print(my.tree) does work. So, I tried to re-install rpart using Packages | Install from CRAN, but then I get this
2004 Jul 15
1
lattice (PR#7093)
Full_Name: michael cole Version: 1.9.1 OS: Windows Submission from: (NULL) (80.219.153.13) When trying to install lattice graphics... I receieve the following: trying URL `http://cran.r-project.org/bin/windows/contrib/1.9/lattice_0.9-16.zip' Content type `application/zip' length 496618 bytes opened URL downloaded 484Kb package 'lattice' successfully unpacked and MD5 sums
2004 Apr 28
2
Problem in Installing Package from CRAN...
Hi, I have installed R 1.9.0 under Windows XP. When I used "Packages->Install Package(s) from CRAN..." to install the package 'gregmisc', I got this message: > local({a <- CRAN.packages() + install.packages(select.list(a[,1],,TRUE), .libPaths()[1], available=a)}) trying URL `http://cran.r-project.org/bin/windows/contrib/1.9/PACKAGES' Content type `text/plain;
2005 Dec 09
1
local source packages install from within R session - cross-platform
I realize that others have struggled with this issue...i.e. http://tolstoy.newcastle.edu.au/~rking/R/help/05/01/9826.html i am on os.x 10.4 w/ R2.2, and am (perhaps foolishly) also on this quest... i would like to be able to install downloaded source (tar.gz'd) files from within an R session, and have it work in a X-platform way..i am often not connected to the internet and have libraries
2003 Jun 23
2
Problem with installation under R 1.7.1 and unzip
Dear all, i was working under R 1.6.2 but i wanted to install bioconductor under WinXP, and because R 1.7.1 contains the TclTk package and automatic installation of bioconductor packages, so i install it. Everything is fine except this message which appear after the installation of packages. "> local({a<- CRAN.packages(CRAN=getOption("BIOC")) +
2009 Apr 28
1
Cannot update.packages (error message)
When trying to update (various) packages using update.packages() I get the following error message for various packages package 'fBasics' successfully unpacked and MD5 sums checked Error in unpackPkg(foundpkgs[okp, 2L], foundpkgs[okp, 1L], lib) : malformed bundle DESCRIPTION file, no Contains field > This happens with other packages besides fBasics (Matrix, as well as others) and I
2009 Apr 28
1
R-2.9.0 malformed bundle DESCRIPTION file, no Contains field
When trying to update (various) packages using update.packages() I get the following error message for various packages package 'fBasics' successfully unpacked and MD5 sums checked Error in unpackPkg(foundpkgs[okp, 2L], foundpkgs[okp, 1L], lib) : malformed bundle DESCRIPTION file, no Contains field > This happens with other packages besides fBasics (Matrix, as well as others)
2009 Feb 20
1
NOT an R problem: cannot install packages from distant repository
I met today a computer crash and our maintenance officer had to reinstall some components of the OS (MS Windows XP Pro) as well as the Internet browser (among other things). Now, I cannot install packages from a distant repository: > utils:::menuInstallPkgs() Error in .readRDS(pfile) : unknown input format > traceback() 5: .readRDS(pfile) 4: .packages(all.available = TRUE) 3:
2002 Dec 05
1
writing to gzfile: segmentation fault (PR#2347)
Full_Name: Vadim Ogranovich Version: Version 1.6.0 (2002-10-01) OS: Red Hat 7.1 Submission from: (NULL) (209.99.241.1) The following sequence of commands crashes my R session. The first weirdness happens after the second command that appears not to change the "foo.gz" file, no error generated. > con <- gzfile("foo.gz", open="w"); cat("goo\n",
2002 Dec 02
1
readLines() changes mode of connection
Hi, It seems like reading a line from a gzfile() connection changes the mode of the connection from text to binary (it also alters "can write", in case it matters). The following transcript, produced on RedHat 7.1, demonstrates this "feature" (note the evolution of file$text). Is this expected? Thanks, Vadim > file <- gzfile("foo.gz") file <-
2007 Jul 03
1
bug in closing gzfile-opened connections?
Hi, I am making multiple calls to gzfile() via read.table(), e.g. > x <- read.table( gzfile( "xxx.gz" ) ) After i do this many times (I haven't counted, but probably between 50 and 100 times) I get the error message: Error in open.connection(file, "r") : unable to open connection In addition: Warning message: cannot open compressed file 'xxx.gz' however, I
2011 Oct 15
2
gctorture() and gzfile() doesn't get along.
Found the simpliest way of seeing I bug I encountered doing "R CMD check --use-gct": Just launch R (with --vanilla), and do this: > ?gctorture # this work > gctorture() > ?gctorture Error in gzfile(file, "rb") : can only weakly reference/finalize reference objects # this does not It seems that when gctorture() is on gzfile() doesn't work.
2018 May 10
2
readLines() behaves differently for gzfile connection
When I read a .gz file with readLines() in 3.4.3, it returns text (and a warning). In 3.5.0, it gives a warning, but no text. Is this expected behavior or a bug? 3.4.3: > source_file = "1k_annotation.gz" > readfile_con <- gzfile(source_file, "r") > readLines(readfile_con, n = 5) [1] "#chr\tpos\tref\talt\t <truncated output here> Warning message: In
2006 Nov 14
2
gzfile with multiple entries in the archive
If I open a tgz archive with gzfile and then parse it using readLines I miss the initial line of each member of the archive - and also the name of the file although the archive otherwise complete (but useless!). Is there any way within R to extract both the list of files in a tgz archive and to extract any one of these files? Clearly I can use zcat and tar on Linux, but I need this to work
2004 Mar 15
1
gzfile & read.table on Win32
Hello ... Are there any known problems or even gotchas to look out for when using a gzfile connection in read.csv/read.table in Windows? In the package PROcess, available at www.bioconductor.org/repository/devel/package/html/PROcess.html there are two files in the PROcess/inst/Test directory which are of the extension *.csv.gz. With both files, if I open up a gzfile connection, say: vv <-
2008 Apr 20
1
How to read last (incomplete) line from gzfile()?
Hi, I have some text files that do not have trailing \n on the last (incomplete) line; how do I read in the last line? e.g. here is a test case: [linux + R version 2.6.1 (2007-11-26) ] z <- gzfile("short.gz", open="w") cat("7\n5\n3", file=z) close(z) z <- gzfile('short.gz') readLines(z) [1] "7" "5" readLines would indicate that
2013 May 08
1
getting corrupted data when using readBin() after seek() on a gzfile connection
Hi, I'm running into more issues when reading data from a gzfile connection. If I read the data sequentially with successive calls to readBin(), the data I get looks ok. But if I call seek() between the successive calls to readBin(), I get corrupted data. Here is a (hopefully) reproducible example. See my sessionInfo() at the end (I'm not on Windows, where, according to the man page,
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.
2011 Oct 16
1
Error in gzfile(file, mode) when checking a package with rcmd check
Hi, For the first time I have a strange behaviour when checking a package before 'packaging' the code. Looks like a file cannot be read. rcmd check pgirmess * using log directory 'U:/Documents and Settings/pgiraudo/Mes documents/R/pgir_arch/pgirmess_arch/On work/pgirmess.Rcheck' * using R version 2.13.2 (2011-09-30) * using platform: i386-pc-mingw32 (32-bit) * using session