Skip to content

Commit

Permalink
bring back default configure files (#979)
Browse files Browse the repository at this point in the history
  • Loading branch information
sbfnk authored Feb 4, 2025
1 parent 73d8d20 commit 5c31822
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 14 deletions.
8 changes: 1 addition & 7 deletions configure
Original file line number Diff line number Diff line change
@@ -1,10 +1,4 @@
# Generated by rstantools. Do not edit by hand.

#! /bin/sh
#"${R_HOME}/bin/Rscript" -e "rstantools::rstan_config()"

"${R_HOME}/bin/Rscript" -e "rstantools::rstan_config()" \
-e 'mv <- readLines("src/Makevars")' \
-e 'con <- file("src/Makevars", "wb")' \
-e 'writeLines(c(sub("^CXX_STD = CXX14$", "CXX_STD = CXX17", mv), "PKG_CPPFLAGS += -D_HAS_AUTO_PTR_ETC=0"), con=con, useBytes=TRUE)' \
-e 'close(con)'
"${R_HOME}/bin/Rscript" -e "rstantools::rstan_config()"
8 changes: 1 addition & 7 deletions configure.win
Original file line number Diff line number Diff line change
@@ -1,10 +1,4 @@
# Generated by rstantools. Do not edit by hand.

#! /bin/sh
#"${R_HOME}/bin${R_ARCH_BIN}/Rscript.exe" -e "rstantools::rstan_config()"

"${R_HOME}/bin${R_ARCH_BIN}/Rscript.exe" -e "rstantools::rstan_config()" \
-e 'mv_win <- readLines("src/Makevars.win")' \
-e 'con_win <- file("src/Makevars.win", "wb")' \
-e 'writeLines(c(sub("^CXX_STD = CXX14$", "CXX_STD = CXX17", mv_win), "PKG_CPPFLAGS += -D_HAS_AUTO_PTR_ETC=0"), con=con_win, useBytes=TRUE)' \
-e 'close(con_win)'
"${R_HOME}/bin${R_ARCH_BIN}/Rscript.exe" -e "rstantools::rstan_config()"

0 comments on commit 5c31822

Please sign in to comment.