similar to: scan error (PR#342)

Displaying 20 results from an estimated 6000 matches similar to: "scan error (PR#342)"

2000 Feb 08
2
installing online help (PR#423)
When I attempt to install the online help for R.99 on Intel RH5.2, I get the following message Substitution loop at /usr/local/src/R/etc/Rdconvlib.pl line 1589, <rdfile> chunk 171 and it stops after a few files. Each time I rerun it, it gets a bit further and gives a different number at the end. I commented out the line 1589 and it works.
2000 Feb 08
2
installing online help (PR#423)
When I attempt to install the online help for R.99 on Intel RH5.2, I get the following message Substitution loop at /usr/local/src/R/etc/Rdconvlib.pl line 1589, <rdfile> chunk 171 and it stops after a few files. Each time I rerun it, it gets a bit further and gives a different number at the end. I commented out the line 1589 and it works.
2012 Dec 02
6
Warning message: In scan(file, what, nmax...)
Dear R-users, When i try - Data1<-read.table("/Users/kama/Analysis/GDP10.csv",header=TRUE,sep=";") i am getting this error: Warning message: In scan(file, what, nmax, sep, dec, quote, skip, nlines, na.strings, : number of items read is not a multiple of the number of columns I wonder what Iam doing wrong. i guess it is something simple, however, i do not understand
2023 Feb 11
1
scan(..., skip=1e11): infinite loop; cannot interrupt
On Fri, 10 Feb 2023 23:38:55 -0600 Spencer Graves <spencer.graves at prodsyse.com> wrote: > I have a 4.54 GB file that I'm trying to read in chunks using > "scan(..., skip=__)". It works as expected for small values of > "skip" but goes into an infinite loop for "skip=1e11" and similar > large values of skip: I cannot even interrupt it; I
2004 May 01
5
skip lines on a connection
Hi, I am looking for an efficient way of skipping big chunks of lines on a connection (not necessarily at the beginning of the file). One way is to use read lines, e.g. readLines(1e6), but a) this incurs the overhead of construction of the return char vector and b) has a (fairly remote) potential to blow up the memory. Another way would be to use scan(), e.g. scan(con, skip=1e6, nmax=0)
2009 Nov 10
3
Error: cannot allocate vector of size...
I'm trying to import a table into R the file is about 700MB. Here's my first try: > DD<-read.table("01uklicsam-20070301.dat",header=TRUE) Error: cannot allocate vector of size 15.6 Mb In addition: Warning messages: 1: In scan(file, what, nmax, sep, dec, quote, skip, nlines, na.strings, : Reached total allocation of 1535Mb: see help(memory.size) 2: In scan(file, what,
1999 May 11
1
model.matrix crashes (PR#189)
With 0.64.1 on Intel RH5.2, abc <- list() abc$abc$abc <- matrix(1:20) mt <- terms(~(abc$abc$abc[,1]==64)|(abc$abc$abc[,1]==65)|(abc$abc$abc[,1]==75) |(abc$abc$abc[,1]==84)|(abc$abc$abc[,1]==85)) model.matrix(mt,model.frame(mt)) crashes. With ab$ab$ab, it does not. Apparently, the bug I reported for 0.64.0 has just been pushed back one step. Jim
1999 Nov 29
1
rbind crash (PR#351)
Well here is my (first) segmentation fault for this version (R0.90.0) on Intel RH5.2: x <- matrix(0,nrow=1,ncol=3) y <- c(0.1,10,0.01) rbind(x,y) Jim -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- r-devel mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html Send "info", "help", or "[un]subscribe" (in the
1999 Dec 17
1
lists of functions (PR#377)
The following works: list(function() 1, function() 2) but this does not: z <- list() zz[[1]] <- function() 1 giving an "incompatible types" error. The second procedure works with other types of objects. Intel RH5.2 with R90.1. Jim -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- r-devel mailing list -- Read
2023 Feb 11
1
scan(..., skip=1e11): infinite loop; cannot interrupt
Hello, All: I have a 4.54 GB file that I'm trying to read in chunks using "scan(..., skip=__)". It works as expected for small values of "skip" but goes into an infinite loop for "skip=1e11" and similar large values of skip: I cannot even interrupt it; I must kill R. Below please find sessionInfo() with a toy example. My real problem is a large
2000 Jan 25
1
core dump involving function closure (PR#402)
A user has crashed R90.1 on MS Windows by succesive calls to two of my formula/function interpretors in an order that I had not foreseen. I have checked and this also occurs with Intel RH5.2. I have distilled the problem down to its bare bones as the following set of instructions: func <- function(.mu){ .ch1 <- deparse(.mu,width=500)[-1] .fn <-
2008 Sep 19
4
Novice question about getting data into R
I found it easy to use R when typing data manually into it. Now I need to read data from a file, and I get the following errors: > refdata = > read.table("K:\\MerchantData\\RiskModel\\refund_distribution.csv", header > = TRUE) Error in scan(file, what, nmax, sep, dec, quote, skip, nlines, na.strings, : line 1 did not have 42 elements > refdata = >
2011 Feb 02
1
error in scan(...
I know it's a common error and there is a lot of help available but still can't resolve the issue: all i am trying to do is to read a csv file from my folder and this is what i get: Error in scan(file, what, nmax, sep, dec, quote, skip, nlines, na.strings, : scan() expected 'a real', got '1,m,a,F,165,240,26.5,31,0.738,0.704,1.095,0.606,0.847' Can you help? -- View
2012 Feb 09
1
scan() doesn't like '1.#IND'
Hi, Since C++ code compiled with g++ 4.6.3 on Windows (the version included in latest Rtools) now can produce things like '1.#IND' when writing doubles to a file (using the << operator), I wonder whether scan() shouldn't support those things. Right now (with recent R devel and latest Rtools) we get errors like: Error in scan(file, what, nmax, sep, dec, quote, skip, nlines,
1999 Nov 16
3
Inf in expression (PR#326)
I was getting worried. 0.65 is the first version that I had not been able to crash. Well the following gives a seg fault on Intel RH5.2 with R0.65.1: plot(rnorm(20),xlab=expression(mu[Inf])) You can guess what I was trying to do, as I used infty first and that did not work. (I now know the correct formula.) Jim -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
2010 Oct 04
1
Error message with scan() function
Hi Everyone, I am new R user and am trying to learn by reading the online manual "An Introduction to R" from the R web site. I am trying to practice using the scan() function as explained in the manual. For this I first created three vectors (one a character vector and two numeric one) and saved file "input.dat" in my working directory as: > label <- c("Bill",
2008 Jul 30
2
problem with read.table()
Hello R-User I have a table as tab-delimited textfile (291 rows, 83 columns). The first row are labels and the first line the variable names. I used the following code several times with different similar tables and it always worked. But now: setClass("of") setAs("character", "of", function(from) as.ordered(from)) Classe82<-cclasses <-
2008 Aug 29
1
scan after seek in text files (PR#12640)
Full_Name: Dr. Alex Sheppard Version: 2.7.1 OS: Linux Debian Lenny Submission from: (NULL) (79.73.224.62) After scanning from an open (text) connection, then seeking, then scanning again, the second scan returns incorrect result. It looks like the first byte scanned was from the pre-seek file position, then it continues to read from the post-seek file position. To reproduce: #Put 3x3 matrix
2014 Mar 12
3
Lectura de texto
Hola a todos, Me gustaria leer el texto que se encuentra en http://dl.dropboxusercontent.com/u/9601860/txt.txt He intentado txt <- 'http://dl.dropboxusercontent.com/u/9601860/txt.txt' r <- scan(txt) #Error in scan(file, what, nmax, sep, dec, quote, skip, nlines, na.strings, : # invalid multibyte string at '<ff><fe>M' r <- read.table(txt, header = FALSE)
2007 Sep 06
2
problems in read.table
Dear R-users, I have encountered the following problem every now and then. But I was dealing with a very small dataset before, so it wasn't a problem (I just edited the dataset in Openoffice speadsheet). This time I have to deal with many large datasets containing commuting flow data. I appreciate if anyone could give me a hint or clue to get out of this problem. I have a .dat file