Last updated on 2024-05-16 02:54:16 CEST.
Flavor | Version | Tinstall | Tcheck | Ttotal | Status | Flags |
---|---|---|---|---|---|---|
r-devel-linux-x86_64-debian-clang | 0.6-22 | 9.03 | 30.82 | 39.85 | NOTE | |
r-devel-linux-x86_64-debian-gcc | 0.6-22 | 6.56 | 27.87 | 34.43 | ERROR | |
r-devel-linux-x86_64-fedora-clang | 0.6-22 | 66.65 | NOTE | |||
r-devel-linux-x86_64-fedora-gcc | 0.6-22 | 79.65 | NOTE | |||
r-devel-windows-x86_64 | 0.6-22 | 18.00 | 61.00 | 79.00 | NOTE | |
r-patched-linux-x86_64 | 0.6-22 | 8.69 | 40.09 | 48.78 | OK | |
r-release-linux-x86_64 | 0.6-22 | 8.83 | 38.78 | 47.61 | OK | |
r-release-macos-arm64 | 0.6-22 | 36.00 | OK | |||
r-release-windows-x86_64 | 0.6-22 | 19.00 | 58.00 | 77.00 | OK | |
r-oldrel-macos-arm64 | 0.6-22 | 56.00 | OK | |||
r-oldrel-macos-x86_64 | 0.6-22 | 111.00 | OK | |||
r-oldrel-windows-x86_64 | 0.6-22 | 22.00 | 59.00 | 81.00 | OK |
Version: 0.6-22
Check: compiled code
Result: NOTE
File ‘mmap/libs/mmap.so’:
Found non-API calls to R: ‘SET_ENCLOS’, ‘SET_FRAME’, ‘SET_HASHTAB’
Compiled code should not call non-API entry points in R.
See ‘Writing portable packages’ in the ‘Writing R Extensions’ manual.
Flavors: r-devel-linux-x86_64-debian-clang, r-devel-linux-x86_64-debian-gcc, r-devel-linux-x86_64-fedora-clang, r-devel-linux-x86_64-fedora-gcc
Version: 0.6-22
Check: examples
Result: ERROR
Running examples in ‘mmap-Ex.R’ failed
The error most likely occurred in:
> base::assign(".ptime", proc.time(), pos = "CheckExEnv")
> ### Name: mmap
> ### Title: Map And Unmap Pages of Memory
> ### Aliases: mmap munmap extractFUN extractFUN<- replaceFUN replaceFUN<-
> ### is.mmap as.mmap is.na.mmap dim.mmap dim<-.mmap dimnames.mmap
> ### dimnames<-.mmap is.array.mmap tempmmap pagesize
> ### Keywords: utilities
>
> ### ** Examples
>
>
> # create a binary file and map into 'ints' object
> # Note that we are creating a file of 1 byte integers,
> # and that the conversion is handled transparently
> tmp <- tempfile()
> ints <- as.mmap(1:100L, mode=int8(), file=tmp)
Error in mmap(file, as.Ctype(mode)) : 'parent' is not an environment
Calls: as.mmap -> as.mmap.integer -> mmap
Execution halted
Flavor: r-devel-linux-x86_64-debian-gcc
Version: 0.6-22
Check: tests
Result: ERROR
Running ‘integers.R’ [0s/1s]
Running the tests in ‘tests/integers.R’ failed.
Complete output:
> library(mmap)
> tmp <- tempfile()
>
> ##### int8() #####
> # write binary from min to max signed 2^8
> test.int8 <- function() {
+ writeBin(-128:127L, tmp, size=1)
+
+ m <- mmap(tmp, int8()) # signed 1 byte integers
+ if( !all(m[] == (-128:127L)) )
+ stop("m[] == (-128:127L)")
+
+ # test replacement
+ m[] <- -128L
+ if( !all(m[] == -128))
+ stop("m[] == -128")
+ munmap(m)
+ }
>
>
>
>
> #### uint8() ####
> test.uint8 <- function(on=TRUE) {
+ if( !isTRUE(on)) {
+ cat("test.uint8 disabled\n")
+ return(NULL)
+ }
+ writeBin(0:255L, tmp, size=1)
+ m <- mmap(tmp, uint8()) # unsigned 1 byte integers
+ if( !all(m[] == 0:255L) )
+ stop("m[] == 0:255L")
+
+ # test replacement
+ m[] <- 255L;
+ if( !all(m[] == 255L))
+ stop("m[] == 255L")
+ munmap(m)
+ }
>
>
>
>
> #### int16() ####
> test.int16 <- function(on=TRUE) {
+ if( !isTRUE(on)) {
+ cat("test.int16 disabled\n")
+ return(NULL)
+ }
+ writeBin(-32768:32767L, tmp, size=2)
+ m <- mmap(tmp, int16()) # signed 2 byte integers
+ if( !all(m[] == -32768:32767L) )
+ stop("m[] == -32768:32767L")
+
+ # test replacement
+ m[] <- -32768L
+ if( !all(m[] == -32768L))
+ stop("m[] == -32768L")
+ munmap(m)
+ }
>
>
>
>
> #### uint16() ####
> test.uint16 <- function(on=TRUE) {
+ cat("checking test.uint16...")
+ if( !isTRUE(on)) {
+ cat("test.uint16 disabled\n")
+ return(NULL)
+ }
+ writeBin(0:65535L, tmp, size=2)
+ m <- mmap(tmp, uint16()) # unsigned 2 byte integers
+ if( !all(m[] == 0:65535L) )
+ stop("m[] == 0:65535L")
+
+ # test replacement
+ m[] <- 65535L
+ if( !all(m[] == 65535L))
+ stop("m[] == 65535L")
+ munmap(m)
+ cat("OK\n")
+ }
>
>
>
>
> #### int24() ####
> test.int24 <- function(on=TRUE) {
+ cat("checking test.int24...")
+ if( !isTRUE(on)) {
+ cat("test.int24 disabled\n")
+ return(NULL)
+ }
+ ints <- as.integer(seq(-8388607L,8388607L,length.out=11))
+ writeBin(rep(as.raw(0),33), tmp)
+ m <- mmap(tmp, int24()) # signed 3 byte integers
+ m[] <- ints
+ if( !all(m[] == ints) )
+ stop("m[] == ints")
+ munmap(m)
+ cat("OK\n")
+ }
>
>
>
>
> #### uint24() ####
> test.uint24 <- function(on=TRUE) {
+ cat("checking test.uint24...")
+ if( !isTRUE(on)) {
+ cat("test.uint24 disabled\n")
+ return(NULL)
+ }
+ ints <- as.integer(seq(0,16777215L,length.out=100))
+ writeBin(rep(as.raw(0),300), tmp)
+ m <- mmap(tmp, uint24()) # signed 3 byte integers
+ m[] <- ints
+ if( !all(m[] == ints) )
+ stop("m[] == ints")
+ munmap(m)
+ cat("OK\n")
+ }
>
>
>
>
> #### int32() ####
> test.int32 <- function(on=TRUE) {
+ cat("checking test.int32...")
+ if( !isTRUE(on)) {
+ cat("test.int32 disabled\n")
+ return(NULL)
+ }
+ writeBin(-1e6:1e6L, tmp, size=4)
+ m <- mmap(tmp, int32()) # unsigned 2 byte integers
+ if( !all(m[] == -1e6:1e6L) )
+ stop("m[] == -1e6:1e6L")
+
+ # test replacement
+ m[] <- .Machine$integer.max
+ if( !all(m[] == .Machine$integer.max))
+ stop("m[] == .Machine$integer.max")
+ munmap(m)
+ cat("OK\n")
+ }
>
>
>
>
> #### int64() ####
> test.int64 <- function(on=TRUE) {
+ cat("checking test.int64...")
+ if( !isTRUE(on)) {
+ cat("test.int32 disabled\n")
+ return(NULL)
+ }
+ writeBin(0.0, tmp)
+ m <- mmap(tmp, int64()) # signed 8 byte integers as doubles
+ m[] <- 2^40
+ if( !all(m[] == 2^40) )
+ stop("m[] == 2^40")
+ munmap(m)
+ cat("OK\n")
+ }
>
> test.int8()
Error in mmap(tmp, int8()) : 'parent' is not an environment
Calls: test.int8 -> mmap
Execution halted
Flavor: r-devel-linux-x86_64-debian-gcc
Version: 0.6-22
Check: re-building of vignette outputs
Result: ERROR
Error(s) in re-building vignettes:
...
--- re-building ‘mmap.Rnw’ using Sweave
Error: processing vignette 'mmap.Rnw' failed with diagnostics:
chunk 2 (label = as_mmap)
Error in mmap(file, as.Ctype(mode)) : 'parent' is not an environment
--- failed re-building ‘mmap.Rnw’
SUMMARY: processing the following file failed:
‘mmap.Rnw’
Error: Vignette re-building failed.
Execution halted
Flavor: r-devel-linux-x86_64-debian-gcc
Version: 0.6-22
Check: compiled code
Result: NOTE
File 'mmap/libs/x64/mmap.dll':
Found non-API calls to R: 'SET_ENCLOS', 'SET_FRAME', 'SET_HASHTAB'
Compiled code should not call non-API entry points in R.
See 'Writing portable packages' in the 'Writing R Extensions' manual.
Flavor: r-devel-windows-x86_64