similar to: Problem with writeBin and importing into gfortran compiled programs

Displaying 20 results from an estimated 1000 matches similar to: "Problem with writeBin and importing into gfortran compiled programs"

2008 Jan 07
2
output into an unformatted direct fortran file
Hello everybody Is there a way to output data into a file like the unformatted, direct fortran files? That's the kind that can be opened with: open(30, file='file', format='unformatted', access='direct', rec=1000, convert='big endian') Thank you in advance Kostas Douvis
2012 Feb 15
1
Using readBin to read binary "unformatted" output files from Fortran?
Hello, I'm wondering if I can get some help with reading Fortran binary "unformatted" output files into R. The Fortran output files were generated in Ubuntu 10.04 LTS using gfortran4.4, on a 32bit Intel Core 2 Duo 3.16 GHz machine, with little-endian and record marker lengths equal to 4. The machine I'm currently trying to read this Fortran output file is a Macbook Pro
2002 Nov 29
2
readBin or writeBin adds extra nulls (PR#2333)
Full_Name: Ken Yap Version: 1.6.1 OS: Linux (SuSE 8.0) Submission from: (NULL) (129.78.64.5) I'm trying to copy a file using readBin and writeBin. (The reason is to be able to pipe PostScript or PDF output to a socket later, this is just an experiment.) I do: zz <- file("foo.ps", "rb") r <- readBin(zz, character(), 1000000) yy <- file("bar.ps",
2002 Oct 07
2
Error in writeBin(object, con, size = 2)
Hi all, I wrote a function (in R batch mode) which reads binary data, interpolates sometimes and wrote a new binary file of the same size as the input file. Her is a bit of code: while (length( head <- readBin(si, integer(), 64, size=2))) { data <- readBin(si, integer(), head[5], size=2) ## now write head to new file writeBin(head, so, size=2) ## if head[4] is 9 or
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 <-
2007 Nov 05
1
R2HTML package and Open Office: text only pasted
I am trying to use R2HTML (just downloaded from CRAN) to paste R (2.6.0) results output via the clipboard to OpenOffice Writer and Calc (version 2.3on WinXPPro) Pasting into Excel gives a formatted table of results (as expected), but pasting into Calc simply pastes the HTML code. Trying paste special only gives an option to paste unformatted text. Equally, with Writer, in the past when I tried
2011 Apr 23
1
KVM, virsh attach-disk problems
Greetings, list! I hope you forgive cross-posting - I only now found this list. I am in the process of configuring a KVM stack of about 8 vms. Mostly I am concerned about performance, as there will be a lot of I/O. My last problem is this: I try to add a fresh, unformatted disk partition to a KVM guest. I follow the directions given here:
2005 Nov 23
2
Changing loadTextURL
I have an InPlaceEditor, when it is clicked on it loads the unformatted textile text from the server. When i click on menu items, I change the content to the formatted text and i want to change the file the InPlaceEditor will load. I thought a simple loadTextURL: "getPage.php?page=" + currentPage; would do. But currentPage is always empty... It''s baffling :p Is there a way
2011 Jan 11
2
parted usage
Hello again, Been an interesting day. I'm attempting to use parted to create a partition on a 28TB volume which consists of 16x2TB drives configuired in a Raid 5 + spare, so total unformatted size is 28TB to the OS.. However upon entering parted, and making a gpt label, print reports back as follows; Model: Areca ARC-1680-VOL#000 (scsi) Disk /dev/sdc: 2199GB Sector Size
2010 Jul 06
2
Logwatch with Postfix and Amavisd-new
I'm trying to get usable reports out of logwatch on this new system. Looks like the reports are running in an 'unformatted' mode under Postfix/Amavisd. I found a couple of programs, postfix-logwatch and amavisd-logwatch. These sound promising. I am running Amavisd as the frontend to Postfix. Is anybody running either of these as a logwatch filter? If so, is it repetitive to run
2008 Apr 08
1
reading in a Fortran binary array
Greetings -- I'd like to avoid converting a Fortran array of floats into ASCII and back reading it in R. Furthermore it's much faster to dump large arrays in binary, as they take up much less space with full precision -- many decimal points take up many bytes in ASCII versus four or eight per float in raw. Is there a way to read such a Fortran unformatted file back into R?
2003 Aug 30
2
Bug in plot() with POSIX dates (PR#4024)
When I do this (highly simplified example): plot(as.POSIXct(c("1984-01-01","1984-01-02")), c(1,2), col=2) I get a partially red (col=2) x-axis between and including the first and last tick marks. Otherwise ok. Only happens with POSIXct or POSIXlt dates. Also, POSIX dates cannot be used on the y-axis? POSIXlt gives an error, and POSIXct is unformatted. Bruce Using X11
2014 Oct 07
2
[LLVMdev] lld coding style
On Sun, Oct 5, 2014 at 12:47 PM, Renato Golin <renato.golin at linaro.org> wrote: > On 5 October 2014 19:45, Chandler Carruth <chandlerc at google.com> wrote: > > This is not completely accurate. Both LLD and LLDB were given specific > > exemptions from the coding standards, but Clang wasn't and I wouldn't > expect > > a new subproject to *necessarily*
2006 Feb 07
1
Reading in FORTRAN data using R
Hi There: I was wondering if there is a way to read FORTRAN list data (similar to IDL's readf function). I often use FORTRAN for most of my number crunching, and use something like IDL to visualize and perform statistical analysis on that data. Since the each file is rather large (>100 Mb), formatting the output into columns or tables is impractical, hence the "list"
2008 Jan 23
0
writeBin doesn't "send" until readBin executed
Hi all - I'm playing around with an attempt to do some serial communication from within R to a microcontroller board. I open a connection: zz = file("/dev/ttyUSB0",open="a+") ## text mode ... when I execute writeLines("0",con=zz) I know the board receives the "0" because the board's serial comm LEDs light up when submit the command at the R
2008 Dec 23
2
Tabular output: from R to Excel or HTML
What is the equivalent for formatted tabular output of the various very sophisticated plotting tools in R (plot, lattice, ggplot2)? In particular, I'd like to be able to produce formatted Excel spreadsheets (using color, fonts, borders, etc. -- probably via Excel XML) and formatted HTML tables (ideally through a format-independent interface), and preview them using commands within R, just as
2005 Aug 19
1
In place editor, load in text
I''ve been testing the in-place-editor on a few things and it works well. One use-case I''ve just come across though is the need to load in the text from somewhere other than the source of the page. For example, I have a block of text which is marked up in texttile/markdown/whatever. Editing that block should bring up the unformatted markup, not the HTML it''s turned
2009 Sep 21
1
Keeping format in link_to
Hello, if a action/id.something is called with the link_to urls don''t keep the format ? I mean the link_to calls inside the view don''t maintain the .something and generate unformatted links How can I do to keep the format ? -- Posted via http://www.ruby-forum.com/.
2011 Jul 12
1
matplot with dates/times on horizontal axis
>matplot(timestamp,xymatrix,type='l') where timestamp is a vector filled with POSIXct objects and xymatrix is a numeric 2x2 matrix plots but the horizontal axis labels are raw unformatted timestamps. I would like to format these in any of the available codes for strftime, for instance format="%H:%M". Passing a vector of formatted strings does not work. Any obvious other
2018 Apr 29
1
formating DVR-RW
On Sun, 29 Apr 2018, Thomas Schmitt wrote: > Michael Hennebry wrote: >> The last time I use it [K3B], , it crapped out after writing, >> but before finalizing. > > Sounds like a growisofs problem. > > If it was with unformatted DVD-R or DVD-RW media, does it resemble this > error ? > https://bugzilla.redhat.com/show_bug.cgi?id=810483 > > Any message from