Giter VIP home page Giter VIP logo

rtumopp's Introduction

R interface to tumopp

R build status Codecov CRAN Status Badge

This is an R interface to tumopp, a tumor growth simulator in C++.

Requirements

  • Unix-like OS (macOS, Linux, etc.)
  • C++14 compiler (clang++ >= Apple LLVM 8.1, g++ >= 5.3)
  • CMake (>= 3.13.0)

Installation

install.packages("devtools")
devtools::install_github("r-lib/remotes")  # until #719 is released
devtools::install_github("heavywatal/rtumopp")

R packages are updated at random times. Please try to check updates once in a while and use the latest versions.

update.packages()
devtools::install_github("heavywatal/rigraphlite")
devtools::install_github("heavywatal/rtumopp")

Basic usage

See "Get started" page.

Available parameters are listed in the API document of C++ tumopp.

rtumopp's People

Contributors

heavywatal avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

Forkers

anpefi

rtumopp's Issues

error: ‘make_unique’ is not a member of ‘std’

Hi,

I had this error trying to install the package. It seems that the flag passed to gcc is -std=c++11 instead of -std=c++14

> devtools::install_github('heavywatal/tumorr')
Downloading GitHub repo heavywatal/tumorr@master
from URL https://api.github.com/repos/heavywatal/tumorr/zipball/master
Installing tumorr
'/usr/lib/R/bin/R' --no-site-file --no-environ --no-save --no-restore --quiet CMD INSTALL  \
  '/tmp/Rtmp0YGvnS/devtools704772739a69/heavywatal-tumorr-ee55c12'  \
  --library='/home/andres/R/x86_64-pc-linux-gnu-library/3.3' --install-tests 

* installing *source* package ‘tumorr’ ...
** libs
g++ -std=c++11 -I/usr/share/R/include -DNDEBUG -I/home/andres/local/include  -I"/home/andres/R/x86_64-pc-linux-gnu-library/3.3/Rcpp/include"   -fpic  -g -O2 -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -g -c RcppExports.cpp -o RcppExports.o
g++ -std=c++11 -I/usr/share/R/include -DNDEBUG -I/home/andres/local/include  -I"/home/andres/R/x86_64-pc-linux-gnu-library/3.3/Rcpp/include"   -fpic  -g -O2 -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -g -c run.cpp -o run.o
In file included from /home/andres/local/include/tumopp/simulation.hpp:16:0,
                 from run.cpp:3:
/home/andres/local/include/tumopp/tissue.hpp: In member function ‘void tumopp::Tissue::set_coord()’:
/home/andres/local/include/tumopp/tissue.hpp:85:37: error: ‘make_unique’ is not a member of ‘std’
     void set_coord() {coord_func_ = std::make_unique<FuncObj>(DIMENSIONS_);}
                                     ^
/home/andres/local/include/tumopp/tissue.hpp:85:61: error: expected primary-expression before ‘>’ token
     void set_coord() {coord_func_ = std::make_unique<FuncObj>(DIMENSIONS_);}
                                                             ^
/usr/lib/R/etc/Makeconf:141: recipe for target 'run.o' failed
make: *** [run.o] Error 1
ERROR: compilation failed for package ‘tumorr’
* removing ‘/home/andres/R/x86_64-pc-linux-gnu-library/3.3/tumorr’
Error: Command failed (1)

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.