Running ‘test-chud.R’ [0s/1s]
  Running ‘test-gradients.R’ [0s/1s]
  Running ‘test-indep-mh.R’ [0s/1s]
Running the tests in ‘tests/test-indep-mh.R’ failed.
Complete output:
  > # From SamplerCompare, (c) 2010 Madeleine Thompson
  > 
  > # This script makes sure the indep-mh-sampler.c example works as
  > # described in glue.Rnw.
  > 
  > library(SamplerCompare)
  Loading required package: mvtnorm
  > 
  > # Change working directory to the doc dir, where indep-mh-sampler.c
  > # is found.
  > 
  > setwd(system.file("doc", package="SamplerCompare"))
  > 
  > # Set CPPFLAGS to add .../include to the search path so that
  > # SamplerCompare.h can be found.
  > 
  > include.dir <- system.file("include", package="SamplerCompare")
  > Sys.setenv(MAKEFLAGS=sprintf("CPPFLAGS=-I%s", include.dir))
  > 
  > # "R CMD SHLIB" inside "R CMD check" breaks if you change the working
  > # directory, so unset R_TESTS.
  > 
  > Sys.unsetenv("R_TESTS")
  > 
  > # Build and link indep-mh-sampler.c.  Windows does not automatically
  > # include Rblas, unix does.
  > 
  > if (.Platform$OS.type=="windows") {
  +   rcmd <- file.path(R.home(), paste("bin", Sys.getenv("R_ARCH"), sep=""),
  +                     "Rcmd SHLIB indep-mh-sampler.c -lRblas 2>&1")
  + } else {
  +   rcmd <- file.path(R.home(), "bin", "R CMD SHLIB indep-mh-sampler.c")
  + }
  > 
  > r <- system(rcmd)
  make[1]: Entering directory '/home/hornik/tmp/R.check/r-patched-gcc/Work/build/Packages/SamplerCompare/doc'
  gcc-6 -I/home/hornik/tmp/R.check/r-patched-gcc/Work/build/include -DNDEBUG   -I/home/hornik/tmp/R.check/r-patched-gcc/Work/build/Packages/SamplerCompare/include   -fpic  -g -O3 -Wall -pedantic -mtune=native -c indep-mh-sampler.c -o indep-mh-sampler.o
  Assembler messages:
  Fatal error: can't create indep-mh-sampler.o: Permission denied
  /home/hornik/tmp/R.check/r-patched-gcc/Work/build/etc/Makeconf:159: recipe for target 'indep-mh-sampler.o' failed
  make[1]: *** [indep-mh-sampler.o] Error 1
  make[1]: Leaving directory '/home/hornik/tmp/R.check/r-patched-gcc/Work/build/Packages/SamplerCompare/doc'
  > stopifnot(r==0)
  Error: r == 0 is not TRUE
  Execution halted