Running ‘testthat.R’ [26s/59s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(PKPDsim)
  > 
  > test_check("PKPDsim")
  using C++ compiler: ‘clang version 16.0.0’
  In file included from file33aa722d9e3c04.cpp:12:
  In file included from /data/gannet/ripley/R/test-clang/BH/include/boost/numeric/odeint.hpp:63:
  In file included from /data/gannet/ripley/R/test-clang/BH/include/boost/numeric/odeint/algebra/multi_array_algebra.hpp:22:
  In file included from /data/gannet/ripley/R/test-clang/BH/include/boost/multi_array.hpp:34:
  In file included from /data/gannet/ripley/R/test-clang/BH/include/boost/multi_array/multi_array_ref.hpp:32:
  /data/gannet/ripley/R/test-clang/BH/include/boost/functional.hpp:45:24: error: no member named 'unary_function' in namespace 'std'; did you mean '__unary_function'?
              using std::unary_function;
                    ~~~~~^~~~~~~~~~~~~~
                         __unary_function
  /usr/local/clang16/bin/../include/c++/v1/__functional/unary_function.h:46:1: note: '__unary_function' declared here
  using __unary_function = __unary_function_keep_layout_base<_Arg, _Result>;
  ^
  In file included from file33aa722d9e3c04.cpp:12:
  In file included from /data/gannet/ripley/R/test-clang/BH/include/boost/numeric/odeint.hpp:63:
  In file included from /data/gannet/ripley/R/test-clang/BH/include/boost/numeric/odeint/algebra/multi_array_algebra.hpp:22:
  In file included from /data/gannet/ripley/R/test-clang/BH/include/boost/multi_array.hpp:34:
  In file included from /data/gannet/ripley/R/test-clang/BH/include/boost/multi_array/multi_array_ref.hpp:32:
  /data/gannet/ripley/R/test-clang/BH/include/boost/functional.hpp:46:24: error: no member named 'binary_function' in namespace 'std'; did you mean '__binary_function'?
              using std::binary_function;
                    ~~~~~^~~~~~~~~~~~~~~
                         __binary_function
  /usr/local/clang16/bin/../include/c++/v1/__functional/binary_function.h:49:1: note: '__binary_function' declared here
  using __binary_function = __binary_function_keep_layout_base<_Arg1, _Arg2, _Result>;
  ^
  In file included from file33aa722d9e3c04.cpp:12:
  In file included from /data/gannet/ripley/R/test-clang/BH/include/boost/numeric/odeint.hpp:63:
  In file included from /data/gannet/ripley/R/test-clang/BH/include/boost/numeric/odeint/algebra/multi_array_algebra.hpp:22:
  In file included from /data/gannet/ripley/R/test-clang/BH/include/boost/multi_array.hpp:34:
  In file included from /data/gannet/ripley/R/test-clang/BH/include/boost/multi_array/multi_array_ref.hpp:32:
  /data/gannet/ripley/R/test-clang/BH/include/boost/functional.hpp:180:45: error: no template named 'unary_function' in namespace 'boost::functional::detail'; did you mean '__unary_function'?
          : public boost::functional::detail::unary_function<typename unary_traits<Predicate>::argument_type,bool>
                   ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~
                                              __unary_function
  /data/gannet/ripley/R/test-clang/BH/include/boost/functional.hpp:45:24: note: '__unary_function' declared here
              using std::unary_function;
                         ^
  /data/gannet/ripley/R/test-clang/BH/include/boost/functional.hpp:214:45: error: no template named 'binary_function' in namespace 'boost::functional::detail'; did you mean '__binary_function'?
          : public boost::functional::detail::binary_function<
                   ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~
                                              __binary_function
  /data/gannet/ripley/R/test-clang/BH/include/boost/functional.hpp:46:24: note: '__binary_function' declared here
              using std::binary_function;
                         ^
  /data/gannet/ripley/R/test-clang/BH/include/boost/functional.hpp:252:45: error: no template named 'unary_function' in namespace 'boost::functional::detail'; did you mean '__unary_function'?
          : public boost::functional::detail::unary_function<
                   ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~
                                              __unary_function
  /data/gannet/ripley/R/test-clang/BH/include/boost/functional.hpp:45:24: note: '__unary_function' declared here
              using std::unary_function;
                         ^
  /data/gannet/ripley/R/test-clang/BH/include/boost/functional.hpp:299:45: error: no template named 'unary_function' in namespace 'boost::functional::detail'; did you mean '__unary_function'?
          : public boost::functional::detail::unary_function<
                   ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~
                                              __unary_function
  /data/gannet/ripley/R/test-clang/BH/include/boost/functional.hpp:45:24: note: '__unary_function' declared here
              using std::unary_function;
                         ^
  /data/gannet/ripley/R/test-clang/BH/include/boost/functional.hpp:345:57: error: no template named 'unary_function' in namespace 'boost::functional::detail'; did you mean '__unary_function'?
      class mem_fun_t : public boost::functional::detail::unary_function<T*, S>
                               ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~
                                                          __unary_function
  /data/gannet/ripley/R/test-clang/BH/include/boost/functional.hpp:45:24: note: '__unary_function' declared here
              using std::unary_function;
                         ^
  /data/gannet/ripley/R/test-clang/BH/include/boost/functional.hpp:361:58: error: no template named 'binary_function' in namespace 'boost::functional::detail'; did you mean '__binary_function'?
      class mem_fun1_t : public boost::functional::detail::binary_function<T*, A, S>
                                ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~
                                                           __binary_function
  /data/gannet/ripley/R/test-clang/BH/include/boost/functional.hpp:46:24: note: '__binary_function' declared here
              using std::binary_function;
                         ^
  /data/gannet/ripley/R/test-clang/BH/include/boost/functional.hpp:377:63: error: no template named 'unary_function' in namespace 'boost::functional::detail'; did you mean '__unary_function'?
      class const_mem_fun_t : public boost::functional::detail::unary_function<const T*, S>
                                     ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~
                                                                __unary_function
  /data/gannet/ripley/R/test-clang/BH/include/boost/functional.hpp:45:24: note: '__unary_function' declared here
              using std::unary_function;
                         ^
  /data/gannet/ripley/R/test-clang/BH/include/boost/functional.hpp:393:64: error: no template named 'binary_function' in namespace 'boost::functional::detail'; did you mean '__binary_function'?
      class const_mem_fun1_t : public boost::functional::detail::binary_function<const T*, A, S>
                                      ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~
                                                                 __binary_function
  /data/gannet/ripley/R/test-clang/BH/include/boost/functional.hpp:46:24: note: '__binary_function' declared here
              using std::binary_function;
                         ^
  /data/gannet/ripley/R/test-clang/BH/include/boost/functional.hpp:438:61: error: no template named 'unary_function' in namespace 'boost::functional::detail'; did you mean '__unary_function'?
      class mem_fun_ref_t : public boost::functional::detail::unary_function<T&, S>
                                   ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~
                                                              __unary_function
  /data/gannet/ripley/R/test-clang/BH/include/boost/functional.hpp:45:24: note: '__unary_function' declared here
              using std::unary_function;
                         ^
  /data/gannet/ripley/R/test-clang/BH/include/boost/functional.hpp:454:62: error: no template named 'binary_function' in namespace 'boost::functional::detail'; did you mean '__binary_function'?
      class mem_fun1_ref_t : public boost::functional::detail::binary_function<T&, A, S>
                                    ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~
                                                               __binary_function
  /data/gannet/ripley/R/test-clang/BH/include/boost/functional.hpp:46:24: note: '__binary_function' declared here
              using std::binary_function;
                         ^
  /data/gannet/ripley/R/test-clang/BH/include/boost/functional.hpp:470:67: error: no template named 'unary_function' in namespace 'boost::functional::detail'; did you mean '__unary_function'?
      class const_mem_fun_ref_t : public boost::functional::detail::unary_function<const T&, S>
                                         ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~
                                                                    __unary_function
  /data/gannet/ripley/R/test-clang/BH/include/boost/functional.hpp:45:24: note: '__unary_function' declared here
              using std::unary_function;
                         ^
  /data/gannet/ripley/R/test-clang/BH/include/boost/functional.hpp:487:68: error: no template named 'binary_function' in namespace 'boost::functional::detail'; did you mean '__binary_function'?
      class const_mem_fun1_ref_t : public boost::functional::detail::binary_function<const T&, A, S>
                                          ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~
                                                                     __binary_function
  /data/gannet/ripley/R/test-clang/BH/include/boost/functional.hpp:46:24: note: '__binary_function' declared here
              using std::binary_function;
                         ^
  /data/gannet/ripley/R/test-clang/BH/include/boost/functional.hpp:533:73: error: no template named 'unary_function' in namespace 'boost::functional::detail'; did you mean '__unary_function'?
      class pointer_to_unary_function : public boost::functional::detail::unary_function<Arg,Result>
                                               ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~
                                                                          __unary_function
  /data/gannet/ripley/R/test-clang/BH/include/boost/functional.hpp:45:24: note: '__unary_function' declared here
              using std::unary_function;
                         ^
  /data/gannet/ripley/R/test-clang/BH/include/boost/functional.hpp:557:74: error: no template named 'binary_function' in namespace 'boost::functional::detail'; did you mean '__binary_function'?
      class pointer_to_binary_function : public boost::functional::detail::binary_function<Arg1,Arg2,Result>
                                                ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~
                                                                           __binary_function
  /data/gannet/ripley/R/test-clang/BH/include/boost/functional.hpp:46:24: note: '__binary_function' declared here
              using std::binary_function;
                         ^
  16 errors generated.
  make[1]: *** [/data/gannet/ripley/R/R-clang/etc/Makeconf:198: file33aa722d9e3c04.o] Error 1
  make[1]: Target 'all' not remade because of errors.
  make[1]: Entering directory '/tmp/Rtmpt72GqU/working_dir/RtmpMmtivU/sourceCpp-x86_64-pc-linux-gnu-1.0.10/sourcecpp_33aa72193ad3fb'
  make[1]: Leaving directory '/tmp/Rtmpt72GqU/working_dir/RtmpMmtivU/sourceCpp-x86_64-pc-linux-gnu-1.0.10/sourcecpp_33aa72193ad3fb'
  make[1]: Entering directory '/tmp/Rtmpt72GqU/working_dir/RtmpMmtivU/sourceCpp-x86_64-pc-linux-gnu-1.0.10/sourcecpp_33aa72193ad3fb'
  /usr/local/clang16/bin/clang++ -std=gnu++17 -I"/data/gannet/ripley/R/R-clang/include" -DNDEBUG   -I"/data/gannet/ripley/R/test-clang/Rcpp/include" -I"/data/gannet/ripley/R/test-clang/BH/include" -I"/tmp/Rtmpt72GqU/working_dir/RtmpMmtivU/sourceCpp-x86_64-pc-linux-gnu-1.0.10" -isystem /usr/local/clang16/include    -w -fpic  -O3 -Wall -pedantic -frtti  -c file33aa722d9e3c04.cpp -o file33aa722d9e3c04.o
  make[1]: Leaving directory '/tmp/Rtmpt72GqU/working_dir/RtmpMmtivU/sourceCpp-x86_64-pc-linux-gnu-1.0.10/sourcecpp_33aa72193ad3fb'
  Error in Rcpp::sourceCpp(code = sim_func, rebuild = TRUE, env = globalenv(),  : 
    Error 1 occurred building shared library.
  Calls: test_check ... eval -> new_ode_model -> compile_sim_cpp -> <Anonymous>
  Execution halted