Displaying 7 results from an estimated 7 matches for "testbin".
2011 Feb 04
2
Strange behaviour of read and writeBin
To me it seems like writeBin() writes one char/byte more than expected.
> con <- file("testbin", "wb")
> writeBin("ttccggaa", con)
> close(con)
> con <- file("testbin", "rb")
> readBin(con, what="character")
[1] "ttccggaa"
> seek(con, what=NA)
[1] 9
> close(con)
> con <- file("testbin&qu...
2002 Aug 06
0
pipe and binary i/o (on Linux)
...e and binary i/o (on Linux)
On Mon, 5 Aug 2002 ripley at stats.ox.ac.uk wrote:
> pipe predates readBin, and no one has seen a reason to do this before you.
However, gzfile should work, and bzfile *always* opens with "rb". Here's
an example on RH7.2:
> zz <- gzfile("testbin.gz", "wb")
> writeBin(1:10, zz)
> close(zz)
> zz <- gzfile("testbin.gz", "rb")
> readBin(zz, integer(), 4)
[1] 1 2 3 4
> readBin(zz, integer(), 6)
[1] 5 6 7 8 9 10
> close(zz)
> zz <- pipe("gzcat testbin.gz", "rb"...
2001 Feb 15
2
Reading single precision floats from binary file
Dear all,
I have a few files with binary data written by a C program a friend wrote.
I allready have program to read these files, Thomas Lumley and Prof Brian
D Ripley was kind enough to respond to a question to this list earlier
with some code that works perfectly, so this is really no problem, it is
more out curiousity.
Most of my files consists of 40000 single precision floats, and I figured
2013 Dec 13
0
how to use the readBin ?
how to use the readBin ?
i want to write the extended ascii character `Œ` into a file named c:/testbin,
and read it in the R console ,display it as `Œ` in R console.
now i can write it .
zz <- file("c:/testbin", "wb")
writeBin(charToRaw("\u0152"), zz)
close(zz)
when i open the file with office(encoding=utf-8),i can see `Œ`,whay i can not read it with readBin?
&g...
2020 Sep 01
2
[cfe-dev] Can we remove llvmbb from IRC?
On Tue, Sep 1, 2020 at 3:57 PM David Blaikie <dblaikie at gmail.com> wrote:
>
>
> On Tue, Sep 1, 2020 at 12:42 PM Nico Weber <thakis at chromium.org> wrote:
>
>> On Tue, Sep 1, 2020 at 3:32 PM David Blaikie <dblaikie at gmail.com> wrote:
>>
>>> On Tue, Sep 1, 2020 at 12:07 PM Nico Weber via cfe-dev <
>>> cfe-dev at lists.llvm.org>
2012 May 02
6
Quickest way to make a large "empty" file on disk?
R-helpers:
What would be the absolute fastest way to make a large "empty" file (e.g.
filled with all zeroes) on disk, given a byte size and a given number
number of empty values. I know I can use writeBin, but the "object" in
this case may be far too large to store in main memory. I'm asking because
I'm going to use this file in conjunction with mmap to do parallel
2019 Apr 30
6
Disk space and RAM requirements in docs
.../clang/test/Driver/Output/workdir/subdir
8.0K build/tools/clang/test/Driver/Output/testroot-gcc
8.0K build/tools/clang/test/Driver/Output/testroot-clang
8.0K build/tools/clang/test/Driver/Output/testreload
8.0K build/tools/clang/test/Driver/Output/testdmode
8.0K build/tools/clang/test/Driver/Output/testbin
8.0K build/tools/clang/test/Driver/Output/no-canonical-prefixes.c.tmp.real
8.0K build/tools/clang/test/Driver/Output/linker-opts.c.tmp
8.0K build/tools/clang/test/Driver/Output/clang_f_opts.c.tmp.d/some
8.0K build/tools/clang/test/CXX/temp/temp.type/Output
8.0K build/tools/clang/test/CXX/temp/temp....