Skip to content

Commit c727639

Browse files
authored
Merge pull request #283 from alan-turing-institute/fix_vd_extract_order
fix vd extract order bug
2 parents 6459958 + cb948ea commit c727639

File tree

3 files changed

+6
-2
lines changed

3 files changed

+6
-2
lines changed

DESCRIPTION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Package: distr6
22
Title: The Complete R6 Probability Distributions Interface
3-
Version: 1.6.12
3+
Version: 1.6.13
44
Authors@R:
55
c(person(given = "Raphael",
66
family = "Sonabend",

NEWS.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
# distr6 1.6.13
2+
3+
* Fix reordering bug when extracting vector distributions
4+
15
# distr6 1.6.12
26

37
* Fix minor bug causing decorators not to be carried forward when using `rep`

R/Wrapper_VectorDistribution.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1153,7 +1153,7 @@ or `distlist` should be used.")
11531153
return(dist)
11541154
} else {
11551155
id <- as.character(unlist(vecdist$modelTable[i, 2]))
1156-
pars <- vecdist$parameters()$values
1156+
pars <- private(vecdist$parameters())$.value
11571157
pars <- pars[grepl(paste0("^", id, "__", collapse = "|"), names(pars))]
11581158

11591159
return(VectorDistribution$new(

0 commit comments

Comments
 (0)