Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Restructuring headers and updating makevars in R-package #4

Open
wants to merge 5 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
language: R
cache: packages
before_install:
- cp -r inst/include R-package/include
- cd R-package

warnings_are_errors: false
8 changes: 7 additions & 1 deletion R-package/src/Makevars
Original file line number Diff line number Diff line change
Expand Up @@ -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
17 changes: 15 additions & 2 deletions R-package/src/Makevars.win
Original file line number Diff line number Diff line change
Expand Up @@ -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

#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
2 changes: 1 addition & 1 deletion R-package/src/gbtorch.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
*/

#include "gbtorch.hpp"



//' @export ENSEMBLE
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.