* installing *source* package ‘rlibkriging’ ...
** package ‘rlibkriging’ successfully unpacked and MD5 sums checked
** using staged installation
/Applications/CMake.app/Contents/bin/cmake
set CMAKE_BIN=/Applications/CMake.app/Contents/bin/cmake
set CC=clang -mmacosx-version-min=10.13
set FC=gfortran -mmacosx-version-min=10.13
set CFLAGS=-I/usr/local/include -fPIC -Wall -g -O2
set CXX=clang++ -mmacosx-version-min=10.13
set CXXFLAGS=-std=gnu++17 -I/usr/local/include -fPIC -Wall -g -O2
set LDFLAGS=-L/usr/local/lib
travis-ci
----------------------------------------------------------------
Look for HDF5 installation
----------------------------------------------------------------
--  [31mC [32mo [33ml [34mo [35mr  [36mm [37mo [1;31md [1;32me  [1;33me [1;34mn [1;35ma [1;36mb [1;37ml [31me [32md [m
fatal: not a git repository (or any parent up to mount point /Volumes)
Stopping at filesystem boundary (GIT_DISCOVERY_ACROSS_FILESYSTEM not set).
-- The C compiler identification is AppleClang 10.0.0.10001044
-- The CXX compiler identification is AppleClang 10.0.0.10001044
-- Check for working C compiler: /Library/Developer/CommandLineTools/usr/bin/clang
-- Check for working C compiler: /Library/Developer/CommandLineTools/usr/bin/clang - works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: /Library/Developer/CommandLineTools/usr/bin/clang++
-- Check for working CXX compiler: /Library/Developer/CommandLineTools/usr/bin/clang++ - works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- *** set cmake policy CMP0025 to NEW
-- CMAKE_CXX_STANDARD = 11
-- Configuring Armadillo 11.4.2
-- Detected AppleClang 8.0 or later
-- ARMA_USE_EXTERN_RNG = true
-- CMAKE_SYSTEM_NAME          = Darwin
-- CMAKE_CXX_COMPILER_ID      = AppleClang
-- CMAKE_CXX_COMPILER_VERSION = 10.0.0.10001044
-- CMAKE_COMPILER_IS_GNUCXX   = 
-- 
-- *** Options:
-- BUILD_SHARED_LIBS         = off
-- DETECT_HDF5               = true
-- OPENBLAS_PROVIDES_LAPACK  = OFF
-- ALLOW_FLEXIBLAS_LINUX     = ON
-- ALLOW_OPENBLAS_MACOS      = OFF
-- ALLOW_BLAS_LAPACK_MACOS   = OFF
-- BUILD_SMOKE_TEST          = OFF
-- 
-- *** Looking for external libraries
-- Detected macOS
-- Added '-framework Accelerate' to compiler flags
-- Detected AppleClang compiler on macOS. Added '-stdlib=libc++' to compiler flags
-- Found PkgConfig: /usr/local/bin/pkg-config (found version "0.29.2") 
-- HDF5_FOUND = TRUE
-- ARMA_HDF5_INCLUDE_DIR = /Volumes/Builds/packages/high-sierra-x86_64/results/4.2/rlibkriging.Rcheck/00_pkg_src/rlibkriging/inst/hdf5/include
-- 
-- *** If use of HDF5 is causing problems,
-- *** rerun cmake with HDF5 detection disabled:
-- *** cmake -D DETECT_HDF5=false .
-- 
-- ARPACK_FOUND = NO
-- Looking for SuperLU version 5
-- Could not find SuperLU
-- SuperLU_FOUND = NO
-- 
-- *** Result of configuration:
-- *** ARMA_USE_WRAPPER    = true
-- *** ARMA_USE_LAPACK     = true
-- *** ARMA_USE_BLAS       = true
-- *** ARMA_USE_ATLAS      = false
-- *** ARMA_USE_HDF5_CMAKE = true
-- *** ARMA_USE_ARPACK     = false
-- *** ARMA_USE_EXTERN_RNG = true
-- *** ARMA_USE_SUPERLU    = false
-- 
-- *** Armadillo wrapper library will use the following libraries:
-- *** ARMA_LIBS = -framework Accelerate;/Volumes/Builds/packages/high-sierra-x86_64/results/4.2/rlibkriging.Rcheck/00_pkg_src/rlibkriging/inst/hdf5/lib/libhdf5.a;/usr/local/lib/libsz.a;/Volumes/Builds/packages/high-sierra-x86_64/results/4.2/rlibkriging.Rcheck/00_pkg_src/rlibkriging/inst/hdf5/lib/libaec.a;/usr/lib/libz.dylib
-- 
-- Copying /Volumes/Builds/packages/high-sierra-x86_64/results/4.2/rlibkriging.Rcheck/00_pkg_src/rlibkriging/src/libK/armadillo/include/ to /Volumes/Builds/packages/high-sierra-x86_64/results/4.2/rlibkriging.Rcheck/00_pkg_src/rlibkriging/src/libK/build/armadillo/tmp/include/
-- Generating /Volumes/Builds/packages/high-sierra-x86_64/results/4.2/rlibkriging.Rcheck/00_pkg_src/rlibkriging/src/libK/build/armadillo/tmp/include/config.hpp
-- CMAKE_CXX_FLAGS           =  -stdlib=libc++ -O2
-- CMAKE_SHARED_LINKER_FLAGS = 
-- CMAKE_REQUIRED_INCLUDES   = /Volumes/Builds/packages/high-sierra-x86_64/results/4.2/rlibkriging.Rcheck/00_pkg_src/rlibkriging/inst/hdf5/include
-- 
-- CMAKE_INSTALL_PREFIX     = /Volumes/Builds/packages/high-sierra-x86_64/results/4.2/rlibkriging.Rcheck/00_pkg_src/rlibkriging/src/libK/build/installed
-- CMAKE_INSTALL_LIBDIR     = lib
-- CMAKE_INSTALL_INCLUDEDIR = include
-- CMAKE_INSTALL_DATADIR    = share
-- CMAKE_INSTALL_BINDIR     = bin
-- Generating '/Volumes/Builds/packages/high-sierra-x86_64/results/4.2/rlibkriging.Rcheck/00_pkg_src/rlibkriging/src/libK/build/armadillo/ArmadilloConfig.cmake'
-- Generating '/Volumes/Builds/packages/high-sierra-x86_64/results/4.2/rlibkriging.Rcheck/00_pkg_src/rlibkriging/src/libK/build/armadillo/ArmadilloConfigVersion.cmake'
-- Generating '/Volumes/Builds/packages/high-sierra-x86_64/results/4.2/rlibkriging.Rcheck/00_pkg_src/rlibkriging/src/libK/build/armadillo/InstallFiles/ArmadilloConfig.cmake'
-- Generating '/Volumes/Builds/packages/high-sierra-x86_64/results/4.2/rlibkriging.Rcheck/00_pkg_src/rlibkriging/src/libK/build/armadillo/InstallFiles/ArmadilloConfigVersion.cmake'
-- Copying /Volumes/Builds/packages/high-sierra-x86_64/results/4.2/rlibkriging.Rcheck/00_pkg_src/rlibkriging/src/libK/armadillo/misc/ to /Volumes/Builds/packages/high-sierra-x86_64/results/4.2/rlibkriging.Rcheck/00_pkg_src/rlibkriging/src/libK/build/armadillo/tmp/misc/
-- Generating '/Volumes/Builds/packages/high-sierra-x86_64/results/4.2/rlibkriging.Rcheck/00_pkg_src/rlibkriging/src/libK/build/armadillo/tmp/misc/armadillo.pc'
-- Compiling lbfgsb_cpp as an external library
-- Compilation of lbfgsb_cpp done
-- Build static library
-- Static analysis not available.
-- Octave binding not available
-- Could NOT find Matlab (missing: Matlab_INCLUDE_DIRS Matlab_MEX_LIBRARY Matlab_MEX_EXTENSION Matlab_MX_LIBRARY MAIN_PROGRAM) (found version "NOTFOUND")
-- Matlab binding not available
-- Could NOT find PythonInterp: Found unsuitable version "2.7.16", but required is at least "3.6" (found /usr/bin/python)
-- Python requirement failure:
	python3 interpreter not found
-- Python binding not available.
-- Performing Test COMPILER_HAS_HIDDEN_VISIBILITY
-- Performing Test COMPILER_HAS_HIDDEN_VISIBILITY - Success
-- Performing Test COMPILER_HAS_HIDDEN_INLINE_VISIBILITY
-- Performing Test COMPILER_HAS_HIDDEN_INLINE_VISIBILITY - Success
-- Performing Test COMPILER_HAS_DEPRECATED_ATTR
-- Performing Test COMPILER_HAS_DEPRECATED_ATTR - Success
CMake Warning at CMakeLists.txt:659 (message):
  clang-format no found; clang-format target is not available.


CMake Warning at CMakeLists.txt:693 (message):
  doxygen no found; doc target is not available.


-- Configuring done
-- Generating done
-- Build files have been written to: /Volumes/Builds/packages/high-sierra-x86_64/results/4.2/rlibkriging.Rcheck/00_pkg_src/rlibkriging/src/libK/build
Scanning dependencies of target armadillo
[  4%] Building CXX object armadillo/CMakeFiles/armadillo.dir/src/wrapper1.cpp.o
[  9%] Building CXX object armadillo/CMakeFiles/armadillo.dir/src/wrapper2.cpp.o
[ 14%] Linking CXX static library libarmadillo.a
[ 14%] Built target armadillo
Scanning dependencies of target Kriging
[ 19%] Building CXX object src/lib/CMakeFiles/Kriging.dir/demo/DemoClass.cpp.o
[ 23%] Building CXX object src/lib/CMakeFiles/Kriging.dir/demo/DemoFunction.cpp.o
[ 28%] Building CXX object src/lib/CMakeFiles/Kriging.dir/demo/DemoArmadilloClass.cpp.o
[ 33%] Building CXX object src/lib/CMakeFiles/Kriging.dir/Trend.cpp.o
[ 38%] Building CXX object src/lib/CMakeFiles/Kriging.dir/Optim.cpp.o
[ 42%] Building CXX object src/lib/CMakeFiles/Kriging.dir/Random.cpp.o
[ 47%] Building CXX object src/lib/CMakeFiles/Kriging.dir/LinearAlgebra.cpp.o
[ 52%] Building CXX object src/lib/CMakeFiles/Kriging.dir/Covariance.cpp.o
[ 57%] Building CXX object src/lib/CMakeFiles/Kriging.dir/Kriging.cpp.o
/Volumes/Builds/packages/high-sierra-x86_64/results/4.2/rlibkriging.Rcheck/00_pkg_src/rlibkriging/src/libK/src/lib/Kriging.cpp:585:26: warning: moving a temporary object prevents copy elision [-Wpessimizing-move]
  return std::make_tuple(std::move(yhat.col(0)), std::move(yhat.col(1) * std::sqrt(m_sigma2)));
                         ^
/Volumes/Builds/packages/high-sierra-x86_64/results/4.2/rlibkriging.Rcheck/00_pkg_src/rlibkriging/src/libK/src/lib/Kriging.cpp:585:26: note: remove std::move call here
  return std::make_tuple(std::move(yhat.col(0)), std::move(yhat.col(1) * std::sqrt(m_sigma2)));
                         ^~~~~~~~~~           ~
/Volumes/Builds/packages/high-sierra-x86_64/results/4.2/rlibkriging.Rcheck/00_pkg_src/rlibkriging/src/libK/src/lib/Kriging.cpp:585:50: warning: moving a temporary object prevents copy elision [-Wpessimizing-move]
  return std::make_tuple(std::move(yhat.col(0)), std::move(yhat.col(1) * std::sqrt(m_sigma2)));
                                                 ^
/Volumes/Builds/packages/high-sierra-x86_64/results/4.2/rlibkriging.Rcheck/00_pkg_src/rlibkriging/src/libK/src/lib/Kriging.cpp:585:50: note: remove std::move call here
  return std::make_tuple(std::move(yhat.col(0)), std::move(yhat.col(1) * std::sqrt(m_sigma2)));
                                                 ^~~~~~~~~~                                 ~
/Volumes/Builds/packages/high-sierra-x86_64/results/4.2/rlibkriging.Rcheck/00_pkg_src/rlibkriging/src/libK/src/lib/Kriging.cpp:1144:31: error: call to unavailable member function 'value': introduced in macOS 10.14
    theta0 = parameters.theta.value();
             ~~~~~~~~~~~~~~~~~^~~~~
/Library/Developer/CommandLineTools/usr/include/c++/v1/optional:933:33: note: candidate function has been explicitly made unavailable
    constexpr value_type const& value() const&
                                ^
/Library/Developer/CommandLineTools/usr/include/c++/v1/optional:942:27: note: candidate function not viable: 'this' argument has type 'const std::optional<arma::mat>' (aka 'const optional<Mat<double> >'), but method is not marked const
    constexpr value_type& value() &
                          ^
/Library/Developer/CommandLineTools/usr/include/c++/v1/optional:951:28: note: candidate function not viable: 'this' argument has type 'const std::optional<arma::mat>' (aka 'const optional<Mat<double> >'), but method is not marked const
    constexpr value_type&& value() &&
                           ^
/Library/Developer/CommandLineTools/usr/include/c++/v1/optional:960:34: note: candidate function not viable: no known conversion from 'const optional<...>' to 'const optional<...>' for object argument
    constexpr value_type const&& value() const&&
                                 ^
/Volumes/Builds/packages/high-sierra-x86_64/results/4.2/rlibkriging.Rcheck/00_pkg_src/rlibkriging/src/libK/src/lib/Kriging.cpp:1145:26: error: call to unavailable member function 'value': introduced in macOS 10.14
    if (parameters.theta.value().n_cols != d && parameters.theta.value().n_rows == d)
        ~~~~~~~~~~~~~~~~~^~~~~
/Library/Developer/CommandLineTools/usr/include/c++/v1/optional:933:33: note: candidate function has been explicitly made unavailable
    constexpr value_type const& value() const&
                                ^
/Library/Developer/CommandLineTools/usr/include/c++/v1/optional:942:27: note: candidate function not viable: 'this' argument has type 'const std::optional<arma::mat>' (aka 'const optional<Mat<double> >'), but method is not marked const
    constexpr value_type& value() &
                          ^
/Library/Developer/CommandLineTools/usr/include/c++/v1/optional:951:28: note: candidate function not viable: 'this' argument has type 'const std::optional<arma::mat>' (aka 'const optional<Mat<double> >'), but method is not marked const
    constexpr value_type&& value() &&
                           ^
/Library/Developer/CommandLineTools/usr/include/c++/v1/optional:960:34: note: candidate function not viable: no known conversion from 'const optional<...>' to 'const optional<...>' for object argument
    constexpr value_type const&& value() const&&
                                 ^
/Volumes/Builds/packages/high-sierra-x86_64/results/4.2/rlibkriging.Rcheck/00_pkg_src/rlibkriging/src/libK/src/lib/Kriging.cpp:1145:66: error: call to unavailable member function 'value': introduced in macOS 10.14
    if (parameters.theta.value().n_cols != d && parameters.theta.value().n_rows == d)
                                                ~~~~~~~~~~~~~~~~~^~~~~
/Library/Developer/CommandLineTools/usr/include/c++/v1/optional:933:33: note: candidate function has been explicitly made unavailable
    constexpr value_type const& value() const&
                                ^
/Library/Developer/CommandLineTools/usr/include/c++/v1/optional:942:27: note: candidate function not viable: 'this' argument has type 'const std::optional<arma::mat>' (aka 'const optional<Mat<double> >'), but method is not marked const
    constexpr value_type& value() &
                          ^
/Library/Developer/CommandLineTools/usr/include/c++/v1/optional:951:28: note: candidate function not viable: 'this' argument has type 'const std::optional<arma::mat>' (aka 'const optional<Mat<double> >'), but method is not marked const
    constexpr value_type&& value() &&
                           ^
/Library/Developer/CommandLineTools/usr/include/c++/v1/optional:960:34: note: candidate function not viable: no known conversion from 'const optional<...>' to 'const optional<...>' for object argument
    constexpr value_type const&& value() const&&
                                 ^
/Volumes/Builds/packages/high-sierra-x86_64/results/4.2/rlibkriging.Rcheck/00_pkg_src/rlibkriging/src/libK/src/lib/Kriging.cpp:1146:33: error: call to unavailable member function 'value': introduced in macOS 10.14
      theta0 = parameters.theta.value().t();
               ~~~~~~~~~~~~~~~~~^~~~~
/Library/Developer/CommandLineTools/usr/include/c++/v1/optional:933:33: note: candidate function has been explicitly made unavailable
    constexpr value_type const& value() const&
                                ^
/Library/Developer/CommandLineTools/usr/include/c++/v1/optional:942:27: note: candidate function not viable: 'this' argument has type 'const std::optional<arma::mat>' (aka 'const optional<Mat<double> >'), but method is not marked const
    constexpr value_type& value() &
                          ^
/Library/Developer/CommandLineTools/usr/include/c++/v1/optional:951:28: note: candidate function not viable: 'this' argument has type 'const std::optional<arma::mat>' (aka 'const optional<Mat<double> >'), but method is not marked const
    constexpr value_type&& value() &&
                           ^
/Library/Developer/CommandLineTools/usr/include/c++/v1/optional:960:34: note: candidate function not viable: no known conversion from 'const optional<...>' to 'const optional<...>' for object argument
    constexpr value_type const&& value() const&&
                                 ^
/Volumes/Builds/packages/high-sierra-x86_64/results/4.2/rlibkriging.Rcheck/00_pkg_src/rlibkriging/src/libK/src/lib/Kriging.cpp:1166:30: error: call to unavailable member function 'value': introduced in macOS 10.14
      beta = parameters.beta.value();
             ~~~~~~~~~~~~~~~~^~~~~
/Library/Developer/CommandLineTools/usr/include/c++/v1/optional:933:33: note: candidate function has been explicitly made unavailable
    constexpr value_type const& value() const&
                                ^
/Library/Developer/CommandLineTools/usr/include/c++/v1/optional:942:27: note: candidate function not viable: 'this' argument has type 'const std::optional<arma::colvec>' (aka 'const optional<Col<double> >'), but method is not marked const
    constexpr value_type& value() &
                          ^
/Library/Developer/CommandLineTools/usr/include/c++/v1/optional:951:28: note: candidate function not viable: 'this' argument has type 'const std::optional<arma::colvec>' (aka 'const optional<Col<double> >'), but method is not marked const
    constexpr value_type&& value() &&
                           ^
/Library/Developer/CommandLineTools/usr/include/c++/v1/optional:960:34: note: candidate function not viable: no known conversion from 'const optional<...>' to 'const optional<...>' for object argument
    constexpr value_type const&& value() const&&
                                 ^
/Volumes/Builds/packages/high-sierra-x86_64/results/4.2/rlibkriging.Rcheck/00_pkg_src/rlibkriging/src/libK/src/lib/Kriging.cpp:1175:34: error: call to unavailable member function 'value': introduced in macOS 10.14
      sigma2 = parameters.sigma2.value();  // otherwise sigma2 will be re-calculated using given theta
               ~~~~~~~~~~~~~~~~~~^~~~~
/Library/Developer/CommandLineTools/usr/include/c++/v1/optional:933:33: note: candidate function has been explicitly made unavailable
    constexpr value_type const& value() const&
                                ^
/Library/Developer/CommandLineTools/usr/include/c++/v1/optional:942:27: note: candidate function not viable: 'this' argument has type 'const std::optional<double>', but method is not marked const
    constexpr value_type& value() &
                          ^
/Library/Developer/CommandLineTools/usr/include/c++/v1/optional:951:28: note: candidate function not viable: 'this' argument has type 'const std::optional<double>', but method is not marked const
    constexpr value_type&& value() &&
                           ^
/Library/Developer/CommandLineTools/usr/include/c++/v1/optional:960:34: note: candidate function not viable: no known conversion from 'const optional<...>' to 'const optional<...>' for object argument
    constexpr value_type const&& value() const&&
                                 ^
/Volumes/Builds/packages/high-sierra-x86_64/results/4.2/rlibkriging.Rcheck/00_pkg_src/rlibkriging/src/libK/src/lib/Kriging.cpp:1266:45: error: call to unavailable member function 'value': introduced in macOS 10.14
        theta0 = arma::mat(parameters.theta.value());
                           ~~~~~~~~~~~~~~~~~^~~~~
/Library/Developer/CommandLineTools/usr/include/c++/v1/optional:933:33: note: candidate function has been explicitly made unavailable
    constexpr value_type const& value() const&
                                ^
/Library/Developer/CommandLineTools/usr/include/c++/v1/optional:942:27: note: candidate function not viable: 'this' argument has type 'const std::optional<arma::mat>' (aka 'const optional<Mat<double> >'), but method is not marked const
    constexpr value_type& value() &
                          ^
/Library/Developer/CommandLineTools/usr/include/c++/v1/optional:951:28: note: candidate function not viable: 'this' argument has type 'const std::optional<arma::mat>' (aka 'const optional<Mat<double> >'), but method is not marked const
    constexpr value_type&& value() &&
                           ^
/Library/Developer/CommandLineTools/usr/include/c++/v1/optional:960:34: note: candidate function not viable: no known conversion from 'const optional<...>' to 'const optional<...>' for object argument
    constexpr value_type const&& value() const&&
                                 ^
/Volumes/Builds/packages/high-sierra-x86_64/results/4.2/rlibkriging.Rcheck/00_pkg_src/rlibkriging/src/libK/src/lib/Kriging.cpp:1306:34: error: call to unavailable member function 'value': introduced in macOS 10.14
          beta = parameters.beta.value();
                 ~~~~~~~~~~~~~~~~^~~~~
/Library/Developer/CommandLineTools/usr/include/c++/v1/optional:933:33: note: candidate function has been explicitly made unavailable
    constexpr value_type const& value() const&
                                ^
/Library/Developer/CommandLineTools/usr/include/c++/v1/optional:942:27: note: candidate function not viable: 'this' argument has type 'const std::optional<arma::colvec>' (aka 'const optional<Col<double> >'), but method is not marked const
    constexpr value_type& value() &
                          ^
/Library/Developer/CommandLineTools/usr/include/c++/v1/optional:951:28: note: candidate function not viable: 'this' argument has type 'const std::optional<arma::colvec>' (aka 'const optional<Col<double> >'), but method is not marked const
    constexpr value_type&& value() &&
                           ^
/Library/Developer/CommandLineTools/usr/include/c++/v1/optional:960:34: note: candidate function not viable: no known conversion from 'const optional<...>' to 'const optional<...>' for object argument
    constexpr value_type const&& value() const&&
                                 ^
/Volumes/Builds/packages/high-sierra-x86_64/results/4.2/rlibkriging.Rcheck/00_pkg_src/rlibkriging/src/libK/src/lib/Kriging.cpp:1312:38: error: call to unavailable member function 'value': introduced in macOS 10.14
          sigma2 = parameters.sigma2.value();
                   ~~~~~~~~~~~~~~~~~~^~~~~
/Library/Developer/CommandLineTools/usr/include/c++/v1/optional:933:33: note: candidate function has been explicitly made unavailable
    constexpr value_type const& value() const&
                                ^
/Library/Developer/CommandLineTools/usr/include/c++/v1/optional:942:27: note: candidate function not viable: 'this' argument has type 'const std::optional<double>', but method is not marked const
    constexpr value_type& value() &
                          ^
/Library/Developer/CommandLineTools/usr/include/c++/v1/optional:951:28: note: candidate function not viable: 'this' argument has type 'const std::optional<double>', but method is not marked const
    constexpr value_type&& value() &&
                           ^
/Library/Developer/CommandLineTools/usr/include/c++/v1/optional:960:34: note: candidate function not viable: no known conversion from 'const optional<...>' to 'const optional<...>' for object argument
    constexpr value_type const&& value() const&&
                                 ^
/Volumes/Builds/packages/high-sierra-x86_64/results/4.2/rlibkriging.Rcheck/00_pkg_src/rlibkriging/src/libK/src/lib/Kriging.cpp:1412:45: error: call to unavailable member function 'value': introduced in macOS 10.14
        theta0 = arma::mat(parameters.theta.value());
                           ~~~~~~~~~~~~~~~~~^~~~~
/Library/Developer/CommandLineTools/usr/include/c++/v1/optional:933:33: note: candidate function has been explicitly made unavailable
    constexpr value_type const& value() const&
                                ^
/Library/Developer/CommandLineTools/usr/include/c++/v1/optional:942:27: note: candidate function not viable: 'this' argument has type 'const std::optional<arma::mat>' (aka 'const optional<Mat<double> >'), but method is not marked const
    constexpr value_type& value() &
                          ^
/Library/Developer/CommandLineTools/usr/include/c++/v1/optional:951:28: note: candidate function not viable: 'this' argument has type 'const std::optional<arma::mat>' (aka 'const optional<Mat<double> >'), but method is not marked const
    constexpr value_type&& value() &&
                           ^
/Library/Developer/CommandLineTools/usr/include/c++/v1/optional:960:34: note: candidate function not viable: no known conversion from 'const optional<...>' to 'const optional<...>' for object argument
    constexpr value_type const&& value() const&&
                                 ^
/Volumes/Builds/packages/high-sierra-x86_64/results/4.2/rlibkriging.Rcheck/00_pkg_src/rlibkriging/src/libK/src/lib/Kriging.cpp:1453:34: error: call to unavailable member function 'value': introduced in macOS 10.14
          beta = parameters.beta.value();
                 ~~~~~~~~~~~~~~~~^~~~~
/Library/Developer/CommandLineTools/usr/include/c++/v1/optional:933:33: note: candidate function has been explicitly made unavailable
    constexpr value_type const& value() const&
                                ^
/Library/Developer/CommandLineTools/usr/include/c++/v1/optional:942:27: note: candidate function not viable: 'this' argument has type 'const std::optional<arma::colvec>' (aka 'const optional<Col<double> >'), but method is not marked const
    constexpr value_type& value() &
                          ^
/Library/Developer/CommandLineTools/usr/include/c++/v1/optional:951:28: note: candidate function not viable: 'this' argument has type 'const std::optional<arma::colvec>' (aka 'const optional<Col<double> >'), but method is not marked const
    constexpr value_type&& value() &&
                           ^
/Library/Developer/CommandLineTools/usr/include/c++/v1/optional:960:34: note: candidate function not viable: no known conversion from 'const optional<...>' to 'const optional<...>' for object argument
    constexpr value_type const&& value() const&&
                                 ^
/Volumes/Builds/packages/high-sierra-x86_64/results/4.2/rlibkriging.Rcheck/00_pkg_src/rlibkriging/src/libK/src/lib/Kriging.cpp:1459:38: error: call to unavailable member function 'value': introduced in macOS 10.14
          sigma2 = parameters.sigma2.value();
                   ~~~~~~~~~~~~~~~~~~^~~~~
/Library/Developer/CommandLineTools/usr/include/c++/v1/optional:933:33: note: candidate function has been explicitly made unavailable
    constexpr value_type const& value() const&
                                ^
/Library/Developer/CommandLineTools/usr/include/c++/v1/optional:942:27: note: candidate function not viable: 'this' argument has type 'const std::optional<double>', but method is not marked const
    constexpr value_type& value() &
                          ^
/Library/Developer/CommandLineTools/usr/include/c++/v1/optional:951:28: note: candidate function not viable: 'this' argument has type 'const std::optional<double>', but method is not marked const
    constexpr value_type&& value() &&
                           ^
/Library/Developer/CommandLineTools/usr/include/c++/v1/optional:960:34: note: candidate function not viable: no known conversion from 'const optional<...>' to 'const optional<...>' for object argument
    constexpr value_type const&& value() const&&
                                 ^
2 warnings and 12 errors generated.
make[3]: *** [src/lib/CMakeFiles/Kriging.dir/Kriging.cpp.o] Error 1
make[2]: *** [src/lib/CMakeFiles/Kriging.dir/all] Error 2
make[1]: *** [CMakeFiles/install.lib.dir/rule] Error 2
make: *** [install.lib] Error 2
ERROR: configuration failed for package ‘rlibkriging’
* removing ‘/Volumes/Builds/packages/high-sierra-x86_64/results/4.2/rlibkriging.Rcheck/rlibkriging’