Running ‘tinytest.R’ [4s/8s]
Running the tests in ‘tests/tinytest.R’ failed.
Complete output:
  > 
  > if (requireNamespace("tinytest", quietly=TRUE) &&
  +   utils::packageVersion("tinytest") >= "1.1.0") {
  + 
  +   ## Set a seed to make the tests deterministic
  +   set.seed(42)
  + 
  +   tinytest::test_package("inline")
  + }
  
  test_cfunction.R..............    0 tests    
  test_cfunction.R..............    0 tests    
  test_cfunction.R..............    0 tests    
  test_cfunction.R..............    0 tests    
  test_cfunction.R..............    0 tests    
  test_cfunction.R..............    0 tests    
  test_cfunction.R..............    0 tests    
  test_cfunction.R..............    0 tests    
  test_cfunction.R..............    1 tests [0;32mOK[0m 
  test_cfunction.R..............    1 tests [0;32mOK[0m 
  test_cfunction.R..............    2 tests [0;32mOK[0m 
  test_cfunction.R..............    3 tests [0;32mOK[0m 
  test_cfunction.R..............    3 tests [0;32mOK[0m 
  test_cfunction.R..............    3 tests [0;32mOK[0m 
  test_cfunction.R..............    3 tests [0;32mOK[0m 
  test_cfunction.R..............    4 tests [0;32mOK[0m 
  test_cfunction.R..............    4 tests [0;32mOK[0m 
  test_cfunction.R..............    4 tests [0;32mOK[0m 
  test_cfunction.R..............    4 tests [0;32mOK[0m 
  test_cfunction.R..............    5 tests [0;32mOK[0m 
  test_cfunction.R..............    5 tests [0;32mOK[0m 
  test_cfunction.R..............    5 tests [0;32mOK[0m 
  test_cfunction.R..............    5 tests [0;32mOK[0m 
  test_cfunction.R..............    6 tests [0;32mOK[0m 
  test_cfunction.R..............    6 tests [0;32mOK[0m 
  test_cfunction.R..............    6 tests [0;32mOK[0m 
  test_cfunction.R..............    6 tests [0;32mOK[0m 
  test_cfunction.R..............    6 tests [0;32mOK[0m 
  test_cfunction.R..............    6 tests [0;32mOK[0m 
  test_cfunction.R..............    7 tests [0;32mOK[0m 
  test_cfunction.R..............    7 tests [0;32mOK[0m 
  test_cfunction.R..............    7 tests [0;32mOK[0m 
  test_cfunction.R..............    7 tests [0;32mOK[0m 
  test_cfunction.R..............    7 tests [0;32mOK[0m 
  ERROR(s) during compilation: source code errors or compiler configuration errors!
  make cmd is
    make -f '/home/hornik/tmp/R.check/r-devel-clang/Work/build/etc/Makeconf' -f '/home/hornik/tmp/R.check/r-devel-clang/Work/build/share/make/shlib.mk' -f '/home/hornik/.R/Makevars-clang' SHLIB_LDFLAGS='$(SHLIB_CXXLDFLAGS)' SHLIB_LD='$(SHLIB_CXXLD)' SHLIB='file3ddcc57fe43f62.so' OBJECTS='file3ddcc57fe43f62.o'
  
  make would use
  make[1]: Entering directory '/tmp/RtmpCPkMiC'
  I"/home/hornik/tmp/R.check/r-devel-clang/Work/build/include" -DNDEBUG   -I/usr/local/include -D_FORTIFY_SOURCE=3   -fpic  -g -O3 -Wall -pedantic -c file3ddcc57fe43f62.cpp -o file3ddcc57fe43f62.o
  if test  "zfile3ddcc57fe43f62.o" != "z"; then \
    echo  -shared -L"/home/hornik/tmp/R.check/r-devel-clang/Work/build/lib" -Wl,-O1 -o file3ddcc57fe43f62.so file3ddcc57fe43f62.o   -L"/home/hornik/tmp/R.check/r-devel-clang/Work/build/lib" -lR; \
     -shared -L"/home/hornik/tmp/R.check/r-devel-clang/Work/build/lib" -Wl,-O1 -o file3ddcc57fe43f62.so file3ddcc57fe43f62.o   -L"/home/hornik/tmp/R.check/r-devel-clang/Work/build/lib" -lR; \
  fi
  make[1]: Leaving directory '/tmp/RtmpCPkMiC'
  
  Program source:
    1: #include <R.h>
    2: 
    3: 
    4: extern "C" {
    5:   void squarefn ( int * n, double * x );
    6: }
    7: 
    8: void squarefn ( int * n, double * x ) {
    9: 
   10:   for (int i=0; i < *n; i++) {
   11:     x[i] = x[i]*x[i];
   12:   }
   13: }
   14: extern "C" {
   15:   void quadfn ( int * n, double * x );
   16: }
   17: 
   18: void quadfn ( int * n, double * x ) {
   19: 
   20:   squarefn(n, x);
   21:   squarefn(n, x);
   22: 
   23: }
  
  Compilation ERROR, function(s)/method(s) not created!
  Error in compileCode(f, code, language, verbose) : 
    /bin/bash: line 1: I/home/hornik/tmp/R.check/r-devel-clang/Work/build/include: No such file or directorymake[1]: [/home/hornik/tmp/R.check/r-devel-clang/Work/build/etc/Makeconf:198: file3ddcc57fe43f62.o] Error 127 (ignored)/bin/bash: line 3: -shared: command not foundmake[1]: *** [/home/hornik/tmp/R.check/r-devel-clang/Work/build/share/make/shlib.mk:10: file3ddcc57fe43f62.so] Error 127
  Calls: <Anonymous> ... lapply -> FUN -> eval -> eval -> cfunction -> compileCode
  Execution halted