Skip to content

setweight() infelicity #231

@RobinHankin

Description

@RobinHankin
library("hyper2")
#> Loading required package: cubature
dirichlet(powers=c(x=3,y=2,z=4)) |> setweight('y',1.888)
#> log( (x=1)^3 * (x=1, y=1.888, z=1)^-9 * (y=1.888)^2 * (z=1)^4)
dirichlet(powers=c(x=3,y=2,z=4)) |> setweight(y=1.888)
#> Error in setweight(dirichlet(powers = c(x = 3, y = 2, z = 4)), y = 1.888): unused argument (y = 1.888)

Above, the first call to setweight() works fine. I would expect the second call to return the same value, but it fails.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions