Skip to content

Commit

Permalink
CXX_STD = CXX11 declaration
Browse files Browse the repository at this point in the history
  • Loading branch information
OVVO-Financial authored Feb 24, 2023
1 parent 397ca61 commit a2dbae5
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 4 deletions.
3 changes: 2 additions & 1 deletion src/Makevars
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
CXX_STD = CXX11
CXX_STD = CXX11

PKG_LIBS += $(shell ${R_HOME}/bin/Rscript -e "RcppParallel::RcppParallelLibs()")
1 change: 1 addition & 0 deletions src/Makevars.win
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
CXX_STD = CXX11

PKG_CXXFLAGS += -DRCPP_PARALLEL_USE_TBB=1

PKG_LIBS += $(shell "${R_HOME}/bin${R_ARCH_BIN}/Rscript.exe" \
Expand Down
Binary file modified src/NNS.dll
Binary file not shown.
5 changes: 2 additions & 3 deletions src/partial_moments_rcpp.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -461,13 +461,12 @@ using namespace Rcpp;
//' @param origin The starting point for the bins. Any number smaller than origin will be disregarded
//' @param missinglast Boolean. Should the missing observations be added as a separate element at the end of the returned count vector.
//' @return An list with elements counts (the frequencies), origin (the origin), width (the width), missing (the number of missings), and last_bin_is_missing (boolean) telling whether the missinglast is true or not.
//' @author Hadley Wickham (from SO: https://stackoverflow.com/questions/13661065/superimpose-histogram-fits-in-one-plot-ggplot) and Claus Ekstrøm from \code{MESS} package.
//' @examples
//'
//' \dontrun{
//' set.seed(1)
//' x <- sample(10, 20, replace = TRUE)
//' NNS_bin(x, 15)
//'
//' }
//' @export
// [[Rcpp::export]]
List NNS_bin(NumericVector x, double width, double origin = 0, bool missinglast=false) {
Expand Down

0 comments on commit a2dbae5

Please sign in to comment.