Skip to content

Error in if (is.nan(p0) || p0 < a2 || p0 > (1 - a2)) {: missing value where TRUE/FALSE needed #48

Open

Description

@GreatEmerald

Equivalent of bfast2/strucchangeRcpp#18 in bfast01, with a trivial reproducer:

library(bfast)
bfast01(data = Nile)
#> Error in if (is.nan(p0) || p0 < a2 || p0 > (1 - a2)) {: missing value where TRUE/FALSE needed

Created on 2020-03-27 by the reprex package (v0.3.0)

Blame:

if(is.nan(p0) || p0 < a2 || p0 > (1-a2)) {

But really should just depend on strucchange to not duplicate code.

Activity

  1. added
    bug
    on Mar 27, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions