Skip to content

Commit 44e602b

Browse files
authored
LINPRED refactor (#34)
* Initial commit of refactor * Cleanup imports * Start fixing tests * More test fixes * Handle factor random slopes * Re-fix spaces in factor levels bug * Clean up rest of old tests * Rework more tests and fix bugs * Finish LINPRED tests * Update LM tests * Update vignette * Don't need nimble dev
1 parent a65d77a commit 44e602b

File tree

16 files changed

+3204
-2841
lines changed

16 files changed

+3204
-2841
lines changed

DESCRIPTION

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Package: nimbleMacros
2-
Version: 0.0.11
3-
Date: 2024-11-04
2+
Version: 0.0.12
3+
Date: 2025-01-14
44
Title: Macros for 'nimble' Code
55
Authors@R: person("Ken", "Kellner", email="contact@kenkellner.com",
66
role=c("cre","aut"))
@@ -13,8 +13,6 @@ Suggests:
1313
knitr,
1414
markdown,
1515
testthat
16-
Remotes:
17-
nimble=github::nimble-dev/nimble/packages/nimble@devel
1816
Description: A plug-in to the 'nimble' R package that provides various macros usable in NIMBLE's dialect of BUGS.
1917
License: GPL-3
2018
NeedsCompilation: no

NAMESPACE

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,3 @@ export(setPriors)
99
export(uppertri_mult_diag)
1010
importFrom(nimble,nimMatrix)
1111
importFrom(nimble,nimbleOptions)
12-
importFrom(stats,as.formula)
13-
importFrom(stats,model.matrix)
14-
importFrom(stats,terms)

R/FORLOOP.R

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -182,6 +182,7 @@ checkDuplicateBracketComponents <- function(code){
182182
if(!hasBracket(code)) stop("Code should have bracket")
183183
code <- getBracket(code)
184184
out <- lapply(3:length(code), function(x) code[[x]])
185+
out <- out[sapply(out, anyIndexRange)]
185186
dups <- duplicated(out)
186187
if(any(dups)){
187188
stop("Not sure how to expand duplicated index ",

0 commit comments

Comments
 (0)