* using log directory 'd:/Rcompile/CRANpkg/local/3.6/BuildSys.Rcheck' * using R version 3.6.3 (2020-02-29) * using platform: x86_64-w64-mingw32 (64-bit) * using session charset: ISO8859-1 * checking for file 'BuildSys/DESCRIPTION' ... OK * checking extension type ... Package * this is package 'BuildSys' version '1.1.0' * 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 hidden files and directories ... OK * checking for portable file names ... OK * checking whether package 'BuildSys' can be installed ... OK * checking installed package size ... OK * 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 R files for non-ASCII characters ... OK * checking R files for syntax errors ... OK * checking whether the package can be loaded ... OK * checking whether the package can be loaded with stated dependencies ... OK * checking whether the package can be unloaded cleanly ... OK * checking whether the namespace can be loaded with stated dependencies ... OK * checking whether the namespace can be unloaded cleanly ... OK * checking loading without being on the library search path ... OK * checking use of S3 registration ... 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 ... [5s] OK * checking Rd files ... 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 examples ... ERROR Running examples in 'BuildSys-Ex.R' failed The error most likely occurred in: > ### Name: BuildSys-package > ### Title: System for Building and Debugging C/C++ Dynamic Libraries > ### Aliases: BuildSys-package BuildSys > ### Keywords: package debugging programming utilities > > ### ** Examples > > ProjectFolder <- tempdir() > > # Create source file for finite convolution example in "Writing R Extensions" > lines <- c( + "#include ", + "#include ", + "", + "SEXP convolve2(SEXP a, SEXP b)", + "{", + " int na, nb, nab;", + " double *xa, *xb, *xab;", + " SEXP ab;", + "", + " a = PROTECT(coerceVector(a, REALSXP));", + " b = PROTECT(coerceVector(b, REALSXP));", + " na = length(a); nb = length(b); nab = na + nb - 1;", + " ab = PROTECT(allocVector(REALSXP, nab));", + " xa = REAL(a); xb = REAL(b); xab = REAL(ab);", + " for(int i = 0; i < nab; i++) xab[i] = 0.0;", + " for(int i = 0; i < na; i++)", + " for(int j = 0; j < nb; j++) xab[i + j] += xa[i] * xb[j];", + " UNPROTECT(3);", + " return ab;", + "}") > > SourceFilePath <- paste0(ProjectFolder, "/convolve.c") > writeLines(lines, SourceFilePath) > > # digest need not be loaded but the digest package needs to be installed > # as it is used to create a digest of the project to track the need for > # makefile re-creation. > require(BuildSys) > > # create project to build shared library, a flat project with source in current working directory. > Project <- new("BSysProject", ProjectFolder) > > # re-initialise project from current working directory, new("BSysProject") calls this internally > Project <- initProjectFromFolder(Project, ProjectFolder) > > # build the shared library > make(Project) D:/temp/RtmpqGIlSX/convolve.sh: line 3: tee: command not found Warning in file(CapturePath, "rt") : cannot open file 'D:/temp/RtmpqGIlSX/convolve.log': No such file or directory Error in file(CapturePath, "rt") : cannot open the connection Calls: make -> make -> .local -> runMake -> file Execution halted * checking PDF version of manual ... OK * DONE Status: 1 ERROR