GithubHelp home page GithubHelp logo

xtensor-stack / xtensor.r Goto Github PK

View Code? Open in Web Editor NEW
17.0 6.0 6.0 256 KB

R package for xtensor-r

Home Page: http://quantstack.net/xtensor

License: Other

C++ 45.76% R 30.04% Makefile 3.87% Shell 17.44% C 2.89%

xtensor.r's Introduction

Xtensor.R

Travis Appveyor CRAN status Documentation Join the Gitter Chat

Xtensor.R is an R package wrapping the xtensor-r bindings to the xtensor C++ multi-dimensional array library.

Installation

From conda-forge

Xtensor.R is available on conda-forge, it can be installed with conda, mamba, and rhumba.

mamba install r-xtensor -c conda-forge

From CRAN

Xtensor.R is available on CRAN (The Comprehensive R Archive Network).

install.packages("xtensor")

From the GitHub repository

Xtensor.R can be installed from GitHub directly using devtools

devtools::install_github("xtensor-stack/Xtensor.R", ref="package")

Packaging Xtensor.R

This section may be of interest to people working on packaging Xtensor.R for Linux distributions or other general-purpose packaging systems.

The Xtensor R package depends on the xtensor-r C++ header-only library.

  • When installing the CRAN package the headers of xtensor-r and its dependencies are vendored in the R package.
  • However, the conda-forge package does not vendor its dependencies.

The vendoring can be prevented by passing the --novendor option to the configure script, which can be passed to the R CMD INSTALL command in the following way:

R CMD INSTALL --build --configure-args='--novendor'

Documentation

To get started with using Xtensor.R, check out the documentation at

http://xtensor-r.readthedocs.io/

Dependencies

xtensor-r depends on the xtensor and Rcpp libraries

Xtensor.R xtensor-r xtensor Rcpp
master ^0.14.2 ^0.24.4 ^1.0
0.14.1 ^0.14.2 ^0.24.4 ^1.0
0.14.0 ^0.14.0 ^0.24.0 ^1.0
0.13.2 ^0.13.0 ^0.23.0 ^1.0
0.13.1 ^0.13.0 ^0.23.0 ^1.0
0.13.0 ^0.13.0 ^0.23.0 ^1.0
0.12.1 ^0.12.1 ^0.21.4 ^1.0
0.12.0 ^0.12.0 ^0.21.2 ^1.0

License

We use a shared copyright model that enables all contributors to maintain the copyright on their contributions.

This software is licensed under the BSD-3-Clause license. See the LICENSE file for details.

xtensor.r's People

Contributors

davisvaughan avatar dickoa avatar eddelbuettel avatar jefferis avatar johanmabille avatar sylvaincorlay avatar wolfv avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

xtensor.r's Issues

CRAN package installation failure

I've tried to install both the dev and CRAN versions of xtensor on a cloud based Linux machine we have that runs RStudio. It has gcc 4.9.2 so I thought all would be well, but I get this message when trying to install. Any ideas? Googling doesn't get me much besides this:

https://stackoverflow.com/questions/11302981/c11-declaring-non-static-data-members-as-auto

g++  -I"/opt/R/3.6.0/lib64/R/include" -DNDEBUG  -I"/home/davis/R/x86_64-pc-linux-gnu-library/3.6/Rcpp/include" -I/usr/local/include -I../inst/include --std=c++14 -fpic  -g -O2  -c RcppExports.cpp -o RcppExports.o
In file included from ../inst/include/xtensor/xaccumulator.hpp:17:0,
                 from ../inst/include/xtensor/xmath.hpp:25,
                 from ../inst/include/xtensor/xcontainer.hpp:23,
                 from ../inst/include/xtensor-r/rcontainer.hpp:17,
                 from ../inst/include/xtensor.h:1,
                 from RcppExports.cpp:4:
../inst/include/xtensor/xexpression.hpp:76:53: error: non-static data member declared ‘auto’
         friend auto make_xshared<D>(xexpression<D>&&);
                                                     ^

xtensor pragma use

I've noticed this note in the past. Did CRAN bless this as being alright? Not sure if there is anything you can do about it anyways since I'm guessing you need it in core xtensor, but just wanted to ask.

Version: 0.9.0-0 
Check: pragmas in C/C++ headers and code 
Result: NOTE 
    File which contains pragma(s) suppressing diagnostics:
     ‘inst/include/xtensor/xstorage.hpp’ 

Pure R unit tests and include directories

The pure R unit tests fail to locate xtensor-r include directories.

The success in the original xtensor-r comes from the fact that xtensor-r is installed in the general prefix.

new release to CRAN

Hi there,

Would it be possible to release a new version to CRAN build with the latest versions of the xtensor stack please ? (i.e. xtensor=0.24.6 and xtensor-r=0.14.2)

Thanks.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.