diff --git a/.travis.yml b/.travis.yml index 801780f..3e2ce47 100644 --- a/.travis.yml +++ b/.travis.yml @@ -3,6 +3,7 @@ language: R cache: packages before_install: + - cp -r inst/include R-package/include - cd R-package warnings_are_errors: false diff --git a/R-package/src/Makevars b/R-package/src/Makevars index 7ecc00f..2bc0aa3 100644 --- a/R-package/src/Makevars +++ b/R-package/src/Makevars @@ -6,5 +6,11 @@ ## enable compilation with C++11 (or even C++14) where available #CXX_STD = CXX11 -PKG_CPPFLAGS = -I../inst/include +# old, works locally +PKG_CPPFLAGS = -I../inst/include -I../include + +#PKGROOT=../../ + +#PKG_CPPFLAGS= -I$(PKGROOT)/inst/include## -I../../inst/include + PKG_CXXFLAGS = -std=c++11 \ No newline at end of file diff --git a/R-package/src/Makevars.win b/R-package/src/Makevars.win index e83b0f8..c8a6b22 100644 --- a/R-package/src/Makevars.win +++ b/R-package/src/Makevars.win @@ -5,5 +5,18 @@ ## With R 3.1.0 or later, you can uncomment the following line to tell R to ## enable compilation with C++11 (or even C++14) where available #CXX_STD = CXX11 -PKG_CPPFLAGS = -I../inst/include -PKG_CXXFLAGS = -std=c++11 \ No newline at end of file + +#PKGROOT=./ + +#.PHONY: all gbtlib +#all: $(SHLIB) +#$(SHLIB): gbtlib +#gbtlib: +# cp -r ../../inst/include . + +#PKG_CPPFLAGS = -I$(PKGROOT)/inst/include +PKG_CPPFLAGS = -I../../inst/include -I../inst/include -I../include + +PKG_CXXFLAGS = -std=c++11 + +#$(OBJECTS) : gbtlib \ No newline at end of file diff --git a/R-package/src/gbtorch.cpp b/R-package/src/gbtorch.cpp index 88c85d5..7b1d31b 100644 --- a/R-package/src/gbtorch.cpp +++ b/R-package/src/gbtorch.cpp @@ -6,7 +6,7 @@ */ #include "gbtorch.hpp" - + //' @export ENSEMBLE diff --git a/R-package/inst/include/ensemble.hpp b/inst/include/ensemble.hpp similarity index 100% rename from R-package/inst/include/ensemble.hpp rename to inst/include/ensemble.hpp diff --git a/R-package/inst/include/external_rcpp.hpp b/inst/include/external_rcpp.hpp similarity index 100% rename from R-package/inst/include/external_rcpp.hpp rename to inst/include/external_rcpp.hpp diff --git a/R-package/inst/include/gbtorch.hpp b/inst/include/gbtorch.hpp similarity index 100% rename from R-package/inst/include/gbtorch.hpp rename to inst/include/gbtorch.hpp diff --git a/R-package/inst/include/gtbic.hpp b/inst/include/gtbic.hpp similarity index 100% rename from R-package/inst/include/gtbic.hpp rename to inst/include/gtbic.hpp diff --git a/R-package/inst/include/loss_functions.hpp b/inst/include/loss_functions.hpp similarity index 100% rename from R-package/inst/include/loss_functions.hpp rename to inst/include/loss_functions.hpp diff --git a/R-package/inst/include/node.hpp b/inst/include/node.hpp similarity index 100% rename from R-package/inst/include/node.hpp rename to inst/include/node.hpp diff --git a/R-package/inst/include/order_gamma.hpp b/inst/include/order_gamma.hpp similarity index 100% rename from R-package/inst/include/order_gamma.hpp rename to inst/include/order_gamma.hpp diff --git a/R-package/inst/include/parameters.hpp b/inst/include/parameters.hpp similarity index 100% rename from R-package/inst/include/parameters.hpp rename to inst/include/parameters.hpp diff --git a/R-package/inst/include/sorting.hpp b/inst/include/sorting.hpp similarity index 100% rename from R-package/inst/include/sorting.hpp rename to inst/include/sorting.hpp diff --git a/R-package/inst/include/tree.hpp b/inst/include/tree.hpp similarity index 100% rename from R-package/inst/include/tree.hpp rename to inst/include/tree.hpp