xtensor-r is a header-only C++ library. We maintain the conda package for xtensor-r and its dependencies.
Besides the xtendor-r headers, all these methods place the cmake project configuration file in the right location so that third-party projects can use cmake’s find_package to locate xtensor-r headers.
Using the conda package¶
A package for xtensor-r is available on the conda package manager.
conda install -c conda-forge xtensor-r
From source with cmake¶
You can also install
xtensor-r from source with cmake. On Unix platforms, from the source directory:
mkdir build cd build cmake -DCMAKE_INSTALL_PREFIX=/path/to/prefix .. make install
On Windows platforms, from the source directory:
mkdir build cd build cmake -G "NMake Makefiles" -DCMAKE_INSTALL_PREFIX=/path/to/prefix .. nmake nmake install
Using the R package¶
We also provide a R package for xtensor, which has been packaged for both conda and CRAN (Comprehensive R Archive Network). The repository for the R package is https://github.com/QuantStack/Xtensor.R.
To install the conda package:
conda install r-xtensor -c conda-forge
To install the R package from CRAN