Errors in running code in vignettes:
when running code in ‘data_in_mvgam.Rmd’
  ...

Number of Fisher Scoring iterations: 5


> summary(gam(y ~ series + s(time, by = series), data = simdat$data_train, 
+     family = poisson()))

  When sourcing ‘data_in_mvgam.R’:
Error: could not find function "gam"
Execution halted
when running code in ‘nmixtures.Rmd’
  ...

> plot(mod, type = "smooths", trend_effects = TRUE)

> plot_predictions(mod, condition = "species", type = "detection") + 
+     ylab("Pr(detection)") + ylim(c(0, 1)) + theme_classic() + 
+     theme(leg .... [TRUNCATED] 

  When sourcing ‘nmixtures.R’:
Error: could not find function "plot_predictions"
Execution halted
when running code in ‘time_varying_effects.Rmd’
  ...
make would use
clang++ -arch arm64 -std=gnu++17 -I"/Library/Frameworks/R.framework/Resources/include" -DNDEBUG   -I"/Volumes/Builds/packages/big-sur-arm64/Rlib/4.3/Rcpp/include/"  -I"/Volumes/Builds/packages/big-sur-arm64/Rlib/4.3/RcppEigen/include/"  -I"/Volumes/Builds/packages/big-sur-arm64/Rlib/4.3/RcppEigen/include/unsupported"  -I"/Volumes/Builds/packages/big-sur-arm64/Rlib/4.3/BH/include" -I"/Volumes/Builds/packages/big-sur-arm64/Rlib/4.3/StanHeaders/include/src/"  -I"/Volumes/Builds/packages/big-sur-arm64/Rlib/4.3/StanHeaders/include/"  -I"/Volumes/Builds/packages/big-sur-arm64/Rlib/4.3/RcppParallel/include/"  -I"/Volumes/Builds/packages/big-sur-arm64/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-arm64/Rlib/4.3/StanHeaders/include/stan/math/prim/fun/Eigen.hpp'  -D_REENTRANT -DRCPP_PARALLEL_USE_TBB=1   -I/opt/R/arm64/include    -fPIC  -falign-functions=64 -Wall -g -O2  -c file17568565b2266.cpp -o file17568565b2266.o
if test  "zfile17568565b2266.o" != "z"; then \
	  echo clang++ -arch arm64 -std=gnu++17 -dynamiclib -Wl,-headerpad_max_install_names -undefined dynamic_lookup -L"/Library/Frameworks/R.framework/Resources/lib" -L/opt/R/arm64/lib -o file17568565b2266.so file17568565b2266.o  '/Volumes/Builds/packages/big-sur-arm64/Rlib/4.3/rstan/lib//libStanServices.a' -L'/Volumes/Builds/packages/big-sur-arm64/Rlib/4.3/StanHeaders/lib/' -lStanHeaders -L'/Volumes/Builds/packages/big-sur-arm64/Rlib/4.3/RcppParallel/lib/' -ltbb -L/Volumes/Builds/packages/big-sur-arm64/Rlib/4.3/RcppParallel/lib -ltbb -ltbbmalloc  -F/Library/Frameworks/R.framework/.. -framework R -Wl,-framework -Wl,CoreFoundation; \
	  clang++ -arch arm64 -std=gnu++17 -dynamiclib -Wl,-headerpad_max_install_names -undefined dynamic_lookup -L"/Library/Frameworks/R.framework/Resources/lib" -L/opt/R/arm64/lib -o file17568565b2266.so file17568565b2266.o  '/Volumes/Builds/packages/big-sur-arm64/Rlib/4.3/rstan/lib//libStanServices.a' -L'/Volumes/Builds/packages/big-sur-arm64/Rlib/4.3/StanHeaders/lib/' -lStanHeaders -L'/Volumes/Builds/packages/big-sur-arm64/Rlib/4.3/RcppParallel/lib/' -ltbb -L/Volumes/Builds/packages/big-sur-arm64/Rlib/4.3/RcppParallel/lib -ltbb -ltbbmalloc  -F/Library/Frameworks/R.framework/.. -framework R -Wl,-framework -Wl,CoreFoundation; \
	fi

  When sourcing ‘time_varying_effects.R’:
Error: invalid connection
Execution halted
when running code in ‘trend_formulas.Rmd’
  ...
Chain 4: 
Chain 1: Iteration:    1 / 1500 [  0%]  (Warmup)
Chain 2: Iteration:    1 / 1500 [  0%]  (Warmup)
Chain 3: Iteration:    1 / 1500 [  0%]  (Warmup)
Chain 4: Iteration:    1 / 1500 [  0%]  (Warmup)
Chain 1: Iteration:  100 / 1500 [  6%]  (Warmup)

Execution halted

... incomplete output.  Crash?

  ‘data_in_mvgam.Rmd’ using ‘UTF-8’... failed
  ‘forecast_evaluation.Rmd’ using ‘UTF-8’... [255s/487s] OK
  ‘mvgam_overview.Rmd’ using ‘UTF-8’... [235s/271s] OK
  ‘nmixtures.Rmd’ using ‘UTF-8’... failed
  ‘shared_states.Rmd’ using ‘UTF-8’... [171s/123s] OK
  ‘time_varying_effects.Rmd’ using ‘UTF-8’... failed
  ‘trend_formulas.Rmd’ using ‘UTF-8’... failed to complete the test
* checking re-building of vignette outputs ...* using check arguments '--no-clean-on-error '