Entering edit mode
brendan.furneaux
▴
10
@brendanfurneaux-13009
Last seen 4.8 years ago
The bug should affect reading SCF files also.
problem: UnExportedFunctions.R lines 60-61
f32 <- function(f, n=length(f)/4) readBin(f, what = "numeric", size = 4, n=n) f64 <- function(f, n=length(f)/8) readBin(f, what = "numeric", size = 8, n=n)
solution:
f32 <- function(f, n=length(f)/4) readBin(f, what = "numeric", size = 4, n=n, endian = "big) f64 <- function(f, n=length(f)/8) readBin(f, what = "numeric", size = 8, n=n, endian = "big")