Running ‘tinytest.R’ [6s/6s]
Running the tests in ‘tests/tinytest.R’ failed.
Last 13 lines of output:
  ld: warning: directory not found for option '-L/opt/R/arm64/gfortran/lib/gcc/aarch64-apple-darwin20.2.0/11.0.0'
  ld: library not found for -lemutls_w
  clang: error: linker command failed with exit code 1 (use -v to see invocation)
  make: *** [sourceCpp_2.so] Error 1
  clang++ -arch arm64 -std=gnu++17 -I"/Library/Frameworks/R.framework/Resources/include" -DNDEBUG -I../inst/include   -I"/Volumes/Builds/packages/big-sur-arm64/Rlib/4.1/Rcpp/include" -I"/Volumes/Builds/packages/big-sur-arm64/Rlib/4.1/RcppArmadillo/include" -I"/Volumes/Builds/packages/big-sur-arm64/results/4.1/ast2ast.Rcheck/ast2ast/include" -I"/Volumes/Temp/tmp/RtmpWt3zgD/sourceCpp-aarch64-apple-darwin20-1.0.8.3" -I/opt/R/arm64/include   -fPIC  -falign-functions=64 -Wall -g -O2  -c fileeec6719c9c36.cpp -o fileeec6719c9c36.o
  clang++ -arch arm64 -std=gnu++17 -dynamiclib -Wl,-headerpad_max_install_names -undefined dynamic_lookup -single_module -multiply_defined suppress -L/Library/Frameworks/R.framework/Resources/lib -L/opt/R/arm64/lib -o sourceCpp_2.so fileeec6719c9c36.o -L/Library/Frameworks/R.framework/Resources/lib -lRlapack -L/Library/Frameworks/R.framework/Resources/lib -lRblas -L/opt/R/arm64/gfortran/lib/gcc/aarch64-apple-darwin20.2.0/11.0.0 -L/opt/R/arm64/gfortran/lib -lgfortran -lemutls_w -lm -F/Library/Frameworks/R.framework/.. -framework R -Wl,-framework -Wl,CoreFoundation
  Error in Rcpp::sourceCpp(code = "\n\n// [[Rcpp::depends(RcppArmadillo)]]\n// [[Rcpp::depends(ast2ast)]]\n#include \"etr.hpp\"\ntypedef sexp (*fp) (sexp);\n\n// [[Rcpp::plugins(cpp17)]]\n\nusing namespace Rcpp;\n\n// [[Rcpp::export]]\nNumericVector test(XPtr<fp> fetr, NumericVector inp) {\n  fp Fct = *fetr;\n\n  sexp a;\n  a = inp;\n  sexp b = Fct(a);\n\n  NumericVector ret = b;\n  return ret;\n}\n\n") : 
    Error 1 occurred building shared library.
  Calls: <Anonymous> ... run_test_dir -> lapply -> FUN -> eval -> eval -> <Anonymous>
  
  WARNING: The tools required to build C++ code for R were not found.
  
  Please install Command Line Tools for XCode (or equivalent).
  
  Execution halted