Skip to content

Commit 8fd7800

Browse files
committed
Use new rstantools structure
1 parent 097bb9a commit 8fd7800

File tree

12 files changed

+16
-167
lines changed

12 files changed

+16
-167
lines changed

.Rbuildignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
^\.Rproj\.user$
66
^.*\.so$
77
^.*\.o$
8-
^src/stanmarg\.hpp$
8+
^src$
99
^\.github$
1010
^_pkgdown\.yml$
1111
^docs$

R/stanmodels.R

Lines changed: 0 additions & 37 deletions
This file was deleted.

configure

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
# Generated by rstantools. Do not edit by hand.
2+
3+
#! /bin/sh
4+
"${R_HOME}/bin/Rscript" -e "rstantools::rstan_config()"

configure.win

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
#! /bin/sh
2+
3+
# Generate Makevars.win file with rstan flags
4+
"${R_HOME}/bin${R_ARCH_BIN}/Rscript.exe" -e "rstantools:::.add_standir(pkgdir = \".\", \"src\", msg = FALSE, warn = FALSE)"
5+
"${R_HOME}/bin${R_ARCH_BIN}/Rscript.exe" -e "rstantools:::.add_Makevars(pkgdir = \".\", win = TRUE)"
6+
7+
# Add configuration needed for big object files
8+
echo "PKG_CXXFLAGS += -Wa,-mbig-obj" >> ./src/Makevars.win
9+
10+
# Compile Stan models using rstantools
11+
"${R_HOME}/bin${R_ARCH_BIN}/Rscript.exe" -e "rstantools::rstan_config()"
File renamed without changes.
File renamed without changes.
File renamed without changes.

src/Makevars

Lines changed: 0 additions & 27 deletions
This file was deleted.

src/Makevars.win

Lines changed: 0 additions & 31 deletions
This file was deleted.

src/blavaan-win.def

Lines changed: 0 additions & 3 deletions
This file was deleted.

src/init.cpp

Lines changed: 0 additions & 20 deletions
This file was deleted.

tools/make_cc.R

Lines changed: 0 additions & 48 deletions
This file was deleted.

0 commit comments

Comments
 (0)