- using R version 4.4.1 (2024-06-14)
- using platform: x86_64-apple-darwin20
- R was compiled by
Apple clang version 14.0.0 (clang-1400.0.29.202)
GNU Fortran (GCC) 12.2.0
- running under: macOS Ventura 13.3.1
- using session charset: UTF-8
- checking for file ‘mangoro/DESCRIPTION’ ... OK
- this is package ‘mangoro’ version ‘0.2.6’
- package encoding: UTF-8
- checking package namespace information ... OK
- checking package dependencies ... OK
- checking if this is a source package ... OK
- checking if there is a namespace ... OK
- checking for executable files ... OK
- checking for hidden files and directories ... OK
- checking for portable file names ... OK
- checking for sufficient/correct file permissions ... OK
- checking whether package ‘mangoro’ can be installed ... [4s/10s] OK
See the install log for details.
- checking installed package size ... NOTE
installed size is 16.3Mb
sub-directories of 1Mb or more:
go 15.9Mb
- checking package directory ... OK
- checking DESCRIPTION meta-information ... OK
- checking top-level files ... OK
- checking for left-over files ... OK
- checking index information ... OK
- checking package subdirectories ... OK
- checking code files for non-ASCII characters ... OK
- checking R files for syntax errors ... OK
- checking whether the package can be loaded ... [0s/1s] OK
- checking whether the package can be loaded with stated dependencies ... [0s/0s] OK
- checking whether the package can be unloaded cleanly ... [0s/0s] OK
- checking whether the namespace can be loaded with stated dependencies ... [0s/1s] OK
- checking whether the namespace can be unloaded cleanly ... [0s/1s] OK
- checking loading without being on the library search path ... [0s/0s] OK
- checking dependencies in R code ... OK
- checking S3 generic/method consistency ... OK
- checking replacement functions ... OK
- checking foreign function calls ... OK
- checking R code for possible problems ... [2s/7s] OK
- checking Rd files ... [0s/1s] OK
- checking Rd metadata ... OK
- checking Rd cross-references ... OK
- checking for missing documentation entries ... OK
- checking for code/documentation mismatches ... OK
- checking Rd \usage sections ... OK
- checking Rd contents ... OK
- checking for unstated dependencies in examples ... OK
- checking line endings in shell scripts ... OK
- checking line endings in Makefiles ... OK
- checking for GNU extensions in Makefiles ... NOTE
GNU make is a SystemRequirements.
- checking include directives in Makefiles ... OK
- checking examples ... NONE
- checking for unstated dependencies in ‘tests’ ... OK
- checking tests ... [1s/3s] ERROR
Running ‘test-mangoro-bin.R’ [0s/2s]
Running the tests in ‘tests/test-mangoro-bin.R’ failed.
Complete output:
> library(nanonext)
> library(processx)
> library(nanoarrow)
> library(mangoro)
>
> # skip test if Sys.which cannot find go
> if (nchar(Sys.which("go")) == 0) {
+ quit(status = 0)
+ }
> # vendored mangos version
> get_mangos_version()
[1] NA
Warning message:
In system2(go, c("list", "-m", "go.nanomsg.org/mangos/v3"), stdout = TRUE, :
running command ''/usr/local/go/bin/go' list -m go.nanomsg.org/mangos/v3 2>&1' had status 1
> go_echo_code <- paste(
+ "package main",
+ "import (",
+ ' "fmt"',
+ ' "os"',
+ ' "go.nanomsg.org/mangos/v3/protocol/rep"',
+ ' _ "go.nanomsg.org/mangos/v3/transport/ipc"',
+ ")",
+ "func main() {",
+ " url := os.Args[1]",
+ " sock, err := rep.NewSocket()",
+ " if err != nil { fmt.Println(\"NewSocket error:\", err); os.Exit(1) }",
+ " if err := sock.Listen(url); err != nil { fmt.Println(\"Listen error:\", err); os.Exit(1) }",
+ " for {",
+ " msg, err := sock.Recv()",
+ " if err != nil { fmt.Println(\"Recv error:\", err); break }",
+ ' newMsg := append(msg, []byte(" [echoed by Go]")...)',
+ " if err := sock.Send(newMsg); err != nil { fmt.Println(\"Send error:\", err); break }",
+ " }",
+ "}",
+ sep = "\n"
+ )
>
> tmp_go <- tempfile(fileext = ".go")
> writeLines(go_echo_code, tmp_go)
>
> tmp_bin <- if (.Platform$OS.type == "windows") {
+ tempfile(fileext = ".exe")
+ } else {
+ tempfile()
+ }
> mangoro_go_build(tmp_go, tmp_bin)
GOMAXPROCS=1 /usr/local/go/bin/go 'build' '-mod=vendor' '-o' '/Volumes/Temp/tmp/Rtmp2KySAQ/file1604f435077ff' '/Volumes/Temp/tmp/Rtmp2KySAQ/file1604f644a32d9.go'
go: errors parsing go.mod:
/Volumes/Builds/packages/big-sur-x86_64/results/4.4/mangoro.Rcheck/mangoro/go/go.mod:3: invalid go version '1.22.2': must match format 1.23
Error in mangoro_go_build(tmp_go, tmp_bin) : Go build failed
In addition: Warning message:
In system(cmd, ignore.stdout = FALSE, ignore.stderr = FALSE, intern = TRUE, :
running command 'GOMAXPROCS=1 /usr/local/go/bin/go 'build' '-mod=vendor' '-o' '/Volumes/Temp/tmp/Rtmp2KySAQ/file1604f435077ff' '/Volumes/Temp/tmp/Rtmp2KySAQ/file1604f644a32d9.go'' had status 1
Execution halted
- checking PDF version of manual ... [7s/24s] OK
- DONE
Status: 1 ERROR, 2 NOTEs
- using check arguments '--no-clean-on-error '