rhub icon indicating copy to clipboard operation
rhub copied to clipboard

Error message about `tcrossprod` not being a builtin function

Open sjentsch opened this issue 2 years ago • 1 comments

When running devtools::check_rhub(), the builder on Windows Server 2022, R-devel, 64 bit returns the following error message:

Quitting from lines 106-125 [unnamed-chunk-5] (jmvReadWrite.Rmd)
Error: processing vignette 'jmvReadWrite.Rmd' failed with diagnostics:
"tcrossprod" is not a BUILTIN function
--- failed re-building 'jmvReadWrite.Rmd'

The respective lines from jmvReadWrite.Rmd are:

fleOMV <- system.file("extdata", "ToothGrowth.omv", package = "jmvReadWrite")
data <- jmvReadWrite::read_omv(fleOMV, getSyn = TRUE)
# shows the syntax of the analyses from the .omv-file
# please note that syntax extraction may not work on all systems
# if the syntax couldn't be extracted, an empty list (length = 0) is returned,
# otherwise, the syntax of the analyses from the .omv-file is shown and
# the commands of the first and the second analysis are run, with the
# output of the second analysis assigned to the variable result
if (length(attr(data, "syntax")) >= 2) {
    attr(data, "syntax")
    # if the "jmv"-package is installed, we can run the analyses in "syntax"
    if ("jmv" %in% rownames(installed.packages())) {
        eval(parse(text = attr(data, "syntax")[[1]]))
        eval(parse(text = paste0("result = ", attr(data, "syntax")[[2]])))
        names(result)
        # -> "main"      "assump"    "contrasts" "postHoc"   "emm"
        # (the names of the five output tables)
    }
}

The two other architectures (Ubuntu Linux 20.04.1 LTS, R-release, GCC; Fedora Linux, R-devel, clang, gfortran), and devtools::check_win_devel() return fine.

Please let me know if there is other information needed.

sjentsch avatar Oct 16 '23 12:10 sjentsch

I think this was a bug in R-devel, and it is fixed now, so please try again.

gaborcsardi avatar Oct 16 '23 18:10 gaborcsardi