Errors in running code in vignettes:
when running code in ‘loo2-elpd.Rmd’
  ...
make would use
clang++ -arch x86_64 -std=gnu++17 -I"/Library/Frameworks/R.framework/Resources/include" -DNDEBUG   -I"/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.3/Rcpp/include/"  -I"/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.3/RcppEigen/include/"  -I"/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.3/RcppEigen/include/unsupported"  -I"/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.3/BH/include" -I"/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.3/StanHeaders/include/src/"  -I"/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.3/StanHeaders/include/"  -I"/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.3/RcppParallel/include/"  -I"/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.3/rstan/include" -DEIGEN_NO_DEBUG  -DBOOST_DISABLE_ASSERTS  -DBOOST_PENDING_INTEGER_LOG2_HPP  -DSTAN_THREADS  -DUSE_STANC3 -DSTRICT_R_HEADERS  -DBOOST_PHOENIX_NO_VARIADIC_EXPRESSION  -D_HAS_AUTO_PTR_ETC=0  -include '/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.3/StanHeaders/include/stan/math/prim/fun/Eigen.hpp'  -D_REENTRANT -DRCPP_PARALLEL_USE_TBB=1   -I/opt/R/x86_64/include    -fPIC  -falign-functions=64 -Wall -g -O2  -c file8d62afdb812.cpp -o file8d62afdb812.o
if test  "zfile8d62afdb812.o" != "z"; then \
	  echo clang++ -arch x86_64 -std=gnu++17 -dynamiclib -Wl,-headerpad_max_install_names -undefined dynamic_lookup -L"/Library/Frameworks/R.framework/Resources/lib" -L/opt/R/x86_64/lib -o file8d62afdb812.so file8d62afdb812.o  '/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.3/rstan/lib//libStanServices.a' -L'/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.3/StanHeaders/lib/' -lStanHeaders -L'/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.3/RcppParallel/lib/' -ltbb -L/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.3/RcppParallel/lib -ltbb -ltbbmalloc  -F/Library/Frameworks/R.framework/.. -framework R -Wl,-framework -Wl,CoreFoundation; \
	  clang++ -arch x86_64 -std=gnu++17 -dynamiclib -Wl,-headerpad_max_install_names -undefined dynamic_lookup -L"/Library/Frameworks/R.framework/Resources/lib" -L/opt/R/x86_64/lib -o file8d62afdb812.so file8d62afdb812.o  '/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.3/rstan/lib//libStanServices.a' -L'/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.3/StanHeaders/lib/' -lStanHeaders -L'/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.3/RcppParallel/lib/' -ltbb -L/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.3/RcppParallel/lib -ltbb -ltbbmalloc  -F/Library/Frameworks/R.framework/.. -framework R -Wl,-framework -Wl,CoreFoundation; \
	fi

  When sourcing ‘loo2-elpd.R’:
Error: invalid connection
Execution halted
when running code in ‘loo2-lfo.Rmd’
  ...
make would use
clang++ -arch x86_64 -std=gnu++17 -I"/Library/Frameworks/R.framework/Resources/include" -DNDEBUG   -I"/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.3/Rcpp/include/"  -I"/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.3/RcppEigen/include/"  -I"/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.3/RcppEigen/include/unsupported"  -I"/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.3/BH/include" -I"/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.3/StanHeaders/include/src/"  -I"/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.3/StanHeaders/include/"  -I"/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.3/RcppParallel/include/"  -I"/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.3/rstan/include" -DEIGEN_NO_DEBUG  -DBOOST_DISABLE_ASSERTS  -DBOOST_PENDING_INTEGER_LOG2_HPP  -DSTAN_THREADS  -DUSE_STANC3 -DSTRICT_R_HEADERS  -DBOOST_PHOENIX_NO_VARIADIC_EXPRESSION  -D_HAS_AUTO_PTR_ETC=0  -include '/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.3/StanHeaders/include/stan/math/prim/fun/Eigen.hpp'  -D_REENTRANT -DRCPP_PARALLEL_USE_TBB=1   -I/opt/R/x86_64/include    -fPIC  -falign-functions=64 -Wall -g -O2  -c file4022214bafd8.cpp -o file4022214bafd8.o
if test  "zfile4022214bafd8.o" != "z"; then \
	  echo clang++ -arch x86_64 -std=gnu++17 -dynamiclib -Wl,-headerpad_max_install_names -undefined dynamic_lookup -L"/Library/Frameworks/R.framework/Resources/lib" -L/opt/R/x86_64/lib -o file4022214bafd8.so file4022214bafd8.o  '/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.3/rstan/lib//libStanServices.a' -L'/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.3/StanHeaders/lib/' -lStanHeaders -L'/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.3/RcppParallel/lib/' -ltbb -L/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.3/RcppParallel/lib -ltbb -ltbbmalloc  -F/Library/Frameworks/R.framework/.. -framework R -Wl,-framework -Wl,CoreFoundation; \
	  clang++ -arch x86_64 -std=gnu++17 -dynamiclib -Wl,-headerpad_max_install_names -undefined dynamic_lookup -L"/Library/Frameworks/R.framework/Resources/lib" -L/opt/R/x86_64/lib -o file4022214bafd8.so file4022214bafd8.o  '/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.3/rstan/lib//libStanServices.a' -L'/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.3/StanHeaders/lib/' -lStanHeaders -L'/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.3/RcppParallel/lib/' -ltbb -L/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.3/RcppParallel/lib -ltbb -ltbbmalloc  -F/Library/Frameworks/R.framework/.. -framework R -Wl,-framework -Wl,CoreFoundation; \
	fi

  When sourcing ‘loo2-lfo.R’:
Error: invalid connection
Execution halted
when running code in ‘loo2-mixis.Rmd’
  ...
make would use
clang++ -arch x86_64 -std=gnu++17 -I"/Library/Frameworks/R.framework/Resources/include" -DNDEBUG   -I"/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.3/Rcpp/include/"  -I"/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.3/RcppEigen/include/"  -I"/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.3/RcppEigen/include/unsupported"  -I"/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.3/BH/include" -I"/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.3/StanHeaders/include/src/"  -I"/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.3/StanHeaders/include/"  -I"/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.3/RcppParallel/include/"  -I"/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.3/rstan/include" -DEIGEN_NO_DEBUG  -DBOOST_DISABLE_ASSERTS  -DBOOST_PENDING_INTEGER_LOG2_HPP  -DSTAN_THREADS  -DUSE_STANC3 -DSTRICT_R_HEADERS  -DBOOST_PHOENIX_NO_VARIADIC_EXPRESSION  -D_HAS_AUTO_PTR_ETC=0  -include '/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.3/StanHeaders/include/stan/math/prim/fun/Eigen.hpp'  -D_REENTRANT -DRCPP_PARALLEL_USE_TBB=1   -I/opt/R/x86_64/include    -fPIC  -falign-functions=64 -Wall -g -O2  -c file8537787d8e8a.cpp -o file8537787d8e8a.o
if test  "zfile8537787d8e8a.o" != "z"; then \
	  echo clang++ -arch x86_64 -std=gnu++17 -dynamiclib -Wl,-headerpad_max_install_names -undefined dynamic_lookup -L"/Library/Frameworks/R.framework/Resources/lib" -L/opt/R/x86_64/lib -o file8537787d8e8a.so file8537787d8e8a.o  '/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.3/rstan/lib//libStanServices.a' -L'/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.3/StanHeaders/lib/' -lStanHeaders -L'/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.3/RcppParallel/lib/' -ltbb -L/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.3/RcppParallel/lib -ltbb -ltbbmalloc  -F/Library/Frameworks/R.framework/.. -framework R -Wl,-framework -Wl,CoreFoundation; \
	  clang++ -arch x86_64 -std=gnu++17 -dynamiclib -Wl,-headerpad_max_install_names -undefined dynamic_lookup -L"/Library/Frameworks/R.framework/Resources/lib" -L/opt/R/x86_64/lib -o file8537787d8e8a.so file8537787d8e8a.o  '/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.3/rstan/lib//libStanServices.a' -L'/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.3/StanHeaders/lib/' -lStanHeaders -L'/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.3/RcppParallel/lib/' -ltbb -L/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.3/RcppParallel/lib -ltbb -ltbbmalloc  -F/Library/Frameworks/R.framework/.. -framework R -Wl,-framework -Wl,CoreFoundation; \
	fi

  When sourcing ‘loo2-mixis.R’:
Error: invalid connection
Execution halted
when running code in ‘loo2-moment-matching.Rmd’
  ...
> standata <- list(N = n, K = k, x = as.matrix(x), y = y, 
+     offset = offset, beta_prior_scale = 2.5, alpha_prior_scale = 5)

> stanmodel <- stan_model(model_code = stancode)
Warning in close.connection(con) :
  Problem closing connection:  No space left on device

  When sourcing ‘loo2-moment-matching.R’:
Error: error writing to connection
Execution halted
when running code in ‘loo2-non-factorized.Rmd’
  ...
make would use
clang++ -arch x86_64 -std=gnu++17 -I"/Library/Frameworks/R.framework/Resources/include" -DNDEBUG   -I"/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.3/Rcpp/include/"  -I"/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.3/RcppEigen/include/"  -I"/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.3/RcppEigen/include/unsupported"  -I"/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.3/BH/include" -I"/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.3/StanHeaders/include/src/"  -I"/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.3/StanHeaders/include/"  -I"/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.3/RcppParallel/include/"  -I"/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.3/rstan/include" -DEIGEN_NO_DEBUG  -DBOOST_DISABLE_ASSERTS  -DBOOST_PENDING_INTEGER_LOG2_HPP  -DSTAN_THREADS  -DUSE_STANC3 -DSTRICT_R_HEADERS  -DBOOST_PHOENIX_NO_VARIADIC_EXPRESSION  -D_HAS_AUTO_PTR_ETC=0  -include '/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.3/StanHeaders/include/stan/math/prim/fun/Eigen.hpp'  -D_REENTRANT -DRCPP_PARALLEL_USE_TBB=1   -I/opt/R/x86_64/include    -fPIC  -falign-functions=64 -Wall -g -O2  -c file1279a40498400.cpp -o file1279a40498400.o
if test  "zfile1279a40498400.o" != "z"; then \
	  echo clang++ -arch x86_64 -std=gnu++17 -dynamiclib -Wl,-headerpad_max_install_names -undefined dynamic_lookup -L"/Library/Frameworks/R.framework/Resources/lib" -L/opt/R/x86_64/lib -o file1279a40498400.so file1279a40498400.o  '/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.3/rstan/lib//libStanServices.a' -L'/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.3/StanHeaders/lib/' -lStanHeaders -L'/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.3/RcppParallel/lib/' -ltbb -L/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.3/RcppParallel/lib -ltbb -ltbbmalloc  -F/Library/Frameworks/R.framework/.. -framework R -Wl,-framework -Wl,CoreFoundation; \
	  clang++ -arch x86_64 -std=gnu++17 -dynamiclib -Wl,-headerpad_max_install_names -undefined dynamic_lookup -L"/Library/Frameworks/R.framework/Resources/lib" -L/opt/R/x86_64/lib -o file1279a40498400.so file1279a40498400.o  '/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.3/rstan/lib//libStanServices.a' -L'/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.3/StanHeaders/lib/' -lStanHeaders -L'/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.3/RcppParallel/lib/' -ltbb -L/Volumes/Builds/packages/big-sur-x86_64/Rlib/4.3/RcppParallel/lib -ltbb -ltbbmalloc  -F/Library/Frameworks/R.framework/.. -framework R -Wl,-framework -Wl,CoreFoundation; \
	fi

  When sourcing ‘loo2-non-factorized.R’:
Error: invalid connection
Execution halted

  ‘loo2-elpd.Rmd’ using ‘UTF-8’... failed
  ‘loo2-example.Rmd’ using ‘UTF-8’... [20s/31s] OK
  ‘loo2-large-data.Rmd’ using ‘UTF-8’... [2s/3s] OK
  ‘loo2-lfo.Rmd’ using ‘UTF-8’... failed
  ‘loo2-mixis.Rmd’ using ‘UTF-8’... failed
  ‘loo2-moment-matching.Rmd’ using ‘UTF-8’... failed
  ‘loo2-non-factorized.Rmd’ using ‘UTF-8’... failed
  ‘loo2-weights.Rmd’ using ‘UTF-8’... [11s/18s] OK
  ‘loo2-with-rstan.Rmd’ using ‘UTF-8’... [0s/1s] OK