similar to: scan after seek in text files (PR#12640)

Displaying 20 results from an estimated 8000 matches similar to: "scan after seek in text files (PR#12640)"

2018 May 26
2
Buffering in R 3.5 connections causes incorrect data in readChar
I noticed an issue where readChar does not return the correct value after a call to readline. It appears that readChar is not aware of the buffering, so it reads from the end of the buffer, rather than the current position in the file. This is a significant change of behavior from R-3.4.4. Below is a test case that I used to home in on the problem. --- p<-"test2.txt"
2018 May 29
1
Buffering in R 3.5 connections causes incorrect data in readChar
Tomas, Thank you for the explanation. I see in the documentation: "These functions are intended to be used with binary-mode connections." So I see how using it on a text connection is undefined, and not a bug. An error or warning when attempting to use a it on a text connection would be helpful considering how the behavior has changed in R-3.5. On Tue, May 29, 2018 at 3:09 AM, Tomas
2008 Jun 11
1
read.table() causes segfault with incorrect data (PR#11627)
Full_Name: Juho Vuori Version: 2.7.0 (2008-04-22) OS: Linux poseidon.fimr.fi 2.6.23.17-88.fc7PAE #1 SMP Thu May 15 00:22:53 EDT 2008 i686 i686 i386 GNU/Linux Submission from: (NULL) (193.166.188.194) Calling read.table() twice the following way causes a segmentation fault in R. Run R and type the following commands: > read.table(stdin()) 0: 1 2 3 1: 3 2: Error in scan(file, what, nmax, sep,
2012 Apr 01
1
scan() vs readChar() speed
Dear list, I am trying to find a fast solution to read moderately large (1 -- 10 million entries) text files containing only tab-delimited numeric values. My test file is the following, nr <- 1000 nc <- 5000 m <- matrix(round(rnorm(nr*nc),3),nr=nr) write.table(m, file = "a.txt", append=FALSE, row.names = FALSE, col.names = FALSE) scan() is faster than
2005 May 28
1
(PR#7899) seek(con, 0, "end", rw="r") does not always work
Tony Plate wrote: > ligges@statistik.uni-dortmund.de wrote: > >> tplate@blackmesacapital.com wrote: >> >> >>> I've noticed that seek(con, 0, "end", rw="r") on a file connection >>> does not always work correctly after a write (R 2.1.0 on Windows). >>> >>> [Is a call to fflush() needed inside file_seek() in
2010 Dec 01
2
Help with Samba4 running logon script
Hi! I am currently testing a Samba4 Alpha13 server with Windows Vista SPK2 and I am not able to run logon scripts. I am able to use both profiles and map Home folders without any problems. I do not see any DOS window opening with the script running and I have tested running this as both a user and administrator by hand by just clicking on the script .bat file which runs just fine. Therefore,
2003 Nov 05
1
read.table leaves out data when reading multiple-line records (PR#4955)
Dear all, I discovered that read.table (RW1.8.0) leaves out data when reading multiple-line records. Replication code at the end Best regards Jens Oehlschlägel > filename <- "c:/tmp/c2.csv" > > data <- data.frame(a=c("c", "e\nnewline"), b=c("d", '"quoted simpleline"')) > > #look at the data >
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
2006 Nov 07
1
reading VERY large binary files
Hello, I am trying to read in elements out of a very large binary file ... the total file is 4 gigs. I want to select rows out of the file, and the current procedure I run works but is prohibitively slow (takes more than a day to run and still won't complete). Is there any faster way to accomplish this? My current procedure looks like this: readHH <- function(file_name,
2012 Feb 27
2
[LLVMdev] Where is LLVM-3.0.dll
I'm trying to use LLVM on Windows for the first time. Keith Sheppard has published some F# bindings: https://github.com/keithshep/llvm-fs They require an LLVM-3.0.dll file. I'm not familiar with Windows but I think I've managed to build LLVM 3.0 using both VS2010 and Cygwin but neither build seems to have produced said file. The VS2010 build (made using CMake) seems to have made
2012 Oct 18
1
[LLVMdev] [cfe-dev] Announcement: Phabricator for code reviews
Yes, that was my (maybe wrong) assumption. -Keith On Thu, Oct 18, 2012 at 9:33 AM, Tim Northover <t.p.northover at gmail.com> wrote: > On Thu, Oct 18, 2012 at 2:09 PM, Keith Sheppard <keithshep at gmail.com> wrote: >> This looks great! One hitch though: it looks like I can monitor files >> by name but what I really want to watch is a whole directory >>
2004 Dec 14
5
wxRuby and other GUI toolkits
So, having subscribed recently to the ruby-talk mailing list, I''ve noticed that wxruby doesn''t seem to have the "respect" of other GUI libraries. I know GUI-library preference is a holy war almost up there with vi versus emacs, but since I''m a wxruby developer, I''d like to know what people "don''t" like about wxruby. Otherwise,
2001 Dec 29
1
Slow 'read.table' in R 1.4.0 (PR#1232)
The 'read.table' function appears to be up to 10X slower in R 1.4.0 than R 1.3.1 for some of the data sets I read in. I was comparing the source code for the 2 versions and see that it was rewritten in R 1.4.0. I think I found out what part of the problem might be. I was comparing R1.3.1 and R1.4.0 code and it appears that a statement is missing in some of the code for R 1.4. This is
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
1999 Nov 24
2
scan error (PR#342)
It seems to me the following should work (in fact, it comes from someone's SPlus file). Instead, it reads the first 8 lines and then spits out syntax errors. Using nlines=36 works. Using nmax does not. Intel RH5.2 with R90.0. Debugging shows it must be internal. Jim junk <- scan(file="",list(i=0,r1=0,r2=0,lull="",day=""),n=5*36) 1 3 5 no 1 2 1
2012 Feb 27
0
[LLVMdev] Where is LLVM-3.0.dll
> I'm trying to use LLVM on Windows for the first time. Keith Sheppard has > published some F# bindings: > >  https://github.com/keithshep/llvm-fs Keith specified the build instructions there, what were the problems of using them? -- With best regards, Anton Korobeynikov Faculty of Mathematics and Mechanics, Saint Petersburg State University
2012 Oct 18
0
[LLVMdev] [cfe-dev] Announcement: Phabricator for code reviews
On Thu, Oct 18, 2012 at 2:09 PM, Keith Sheppard <keithshep at gmail.com> wrote: > This looks great! One hitch though: it looks like I can monitor files > by name but what I really want to watch is a whole directory > "/llvm/trunk/include/llvm-c". I didn't see any way to do that. Do you > have any idea if that is possible? I can add a rule for each file > which is
2018 May 29
0
Buffering in R 3.5 connections causes incorrect data in readChar
On 05/26/2018 05:15 AM, Aaron Goodman wrote: > I noticed an issue where readChar does not return the correct value after a > call to readline. It appears that readChar is not aware of the buffering, > so it reads from the end of the buffer, rather than the current position in > the file. This is a significant change of behavior from R-3.4.4. > > Below is a test case that I used
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
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)