Skip to content
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
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ Imports: Rcpp (>= 0.11.2), Matrix, methods, survival
LinkingTo: Rcpp, RcppEigen
Depends: R (>= 3.1)
Suggests: testthat
RoxygenNote: 7.2.2
RoxygenNote: 7.3.2
Encoding: UTF-8
NeedsCompilation: yes
URL: https://github.com/bips-hb/blockForest, https://bips-hb.github.io/blockForest/
Expand Down
3 changes: 2 additions & 1 deletion src/Makevars
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
PKG_CPPFLAGS = -DR_BUILD

CXX_STD = CXX20
PKG_CXXFLAGS = -std=c++20
8 changes: 4 additions & 4 deletions src/utility.h
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,10 @@
#ifndef UTILITY_H_
#define UTILITY_H_

#ifdef R_BUILD
#include <Rcpp.h>
#endif

#include <vector>
#include <iostream>
#include <fstream>
Expand All @@ -28,10 +32,6 @@
#include <unordered_set>
#include <unordered_map>

#ifdef R_BUILD
#include <Rinternals.h>
#endif

#include "globals.h"
#include "Data.h"

Expand Down
Loading