Skip to content

Commit 71c8d4f

Browse files
committed
Merge branch 'develop' of github.com:microsoft/interpret into develop
2 parents ef80855 + 5c2504c commit 71c8d4f

File tree

2 files changed

+18
-6
lines changed

2 files changed

+18
-6
lines changed

R/src/Makevars

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,11 @@
1-
#TODO COPY THIS FROM Makevars.interpret
2-
# THIS FILE IS ONLY USED WHEN using devtools::install_github('microsoft/interpret',subdir='R')
1+
# Makevars and Makevars.interpret need to be identical files, except the COREDIR variable which indicates where to get the core C++ files
2+
# Makevars needs to be named that exactly because it will get loaded from devtools::install_github and devtools will want it to be that name. When being installed from devtools, we can refer to .cpp and .h files wherever they are in the repo, so we use the COREDIR to point to them
3+
# Makevars.interpret is the CRAN version of Makevars. When the interpret_*.tar.gz is created the Makevars.interpret file gets copied as Makevars into the R building directory
4+
5+
COREDIR=../../core
6+
7+
CXX_STD = CXX11
8+
PKG_CPPFLAGS= -I$(COREDIR) -I$(COREDIR)/inc -DEBMCORE_R
9+
PKG_CXXFLAGS=$(CXX_VISIBILITY)
10+
11+
OBJECTS = interpret_R.o $(COREDIR)/DataSetByFeature.o $(COREDIR)/DataSetByFeatureCombination.o $(COREDIR)/InteractionDetection.o $(COREDIR)/Logging.o $(COREDIR)/SamplingWithReplacement.o $(COREDIR)/Training.o

R/src/Makevars.interpret

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,11 @@
1-
ROOTDIR=../../
1+
# Makevars and Makevars.interpret need to be identical files, except the COREDIR variable which indicates where to get the core C++ files
2+
# Makevars needs to be named that exactly because it will get loaded from devtools::install_github and devtools will want it to be that name. When being installed from devtools, we can refer to .cpp and .h files wherever they are in the repo, so we use the COREDIR to point to them
3+
# Makevars.interpret is the CRAN version of Makevars. When the interpret_*.tar.gz is created the Makevars.interpret file gets copied as Makevars into the R building directory
24

3-
CXX_STD = CXX11
5+
COREDIR=./core
46

5-
PKG_CPPFLAGS= -Icore -Icore/inc -DEBMCORE_R
7+
CXX_STD = CXX11
8+
PKG_CPPFLAGS= -I$(COREDIR) -I$(COREDIR)/inc -DEBMCORE_R
69
PKG_CXXFLAGS=$(CXX_VISIBILITY)
710

8-
OBJECTS = interpret_R.o core/DataSetByFeature.o core/DataSetByFeatureCombination.o core/InteractionDetection.o core/Logging.o core/SamplingWithReplacement.o core/Training.o
11+
OBJECTS = interpret_R.o $(COREDIR)/DataSetByFeature.o $(COREDIR)/DataSetByFeatureCombination.o $(COREDIR)/InteractionDetection.o $(COREDIR)/Logging.o $(COREDIR)/SamplingWithReplacement.o $(COREDIR)/Training.o

0 commit comments

Comments
 (0)