Skip to content

Error with plotDurationUncertainty() function #8

Description

@michaelstrupler

If I use the function "plotDurationUncertainty()" for another gas than the standard (which is CO2), I get the follwoing error (below), which I don't understand, because the "by" argument in the sequence is positive and between min and max. Please find a MWE attached.

MWE_plotDurationUncertainty.R.zip


Error in `map()`:
ℹ In index: 3.
Caused by error in `seq.default()`:
! wrong sign in 'by' argument
Run `rlang::last_trace()` to see where the error occurred.
> rlang::last_trace()
<error/purrr_error_indexed>
Error in `map()`:
ℹ In index: 3.
Caused by error in `seq.default()`:
! wrong sign in 'by' argument
---
Backtrace:
     ▆
  1. └─RespChamberProc::plotDurationUncertainty(...)
  2.   ├─base::suppressWarnings(...)
  3.   │ └─base::withCallingHandlers(...)
  4.   ├─dplyr::bind_rows(...)
  5.   │ └─rlang::list2(...)
  6.   └─purrr::map_df(...)
  7.     └─purrr::map(.x, .f, ...)
  8.       └─purrr:::map_("list", .x, .f, ..., .progress = .progress)
  9.         ├─purrr:::with_indexed_errors(...)
 10.         │ └─base::withCallingHandlers(...)
 11.         ├─purrr:::call_with_cleanup(...)
 12.         └─RespChamberProc (local) .f(.x[[i]], ...)
 13.           └─RespChamberProc::calcClosedChamberFlux(...)
 14.             └─RespChamberProc::sigmaBootLeverage(...)
 15.               ├─base::seq(max(15, length(conc) - 40), length(conc), 1)
 16.               └─base::seq.default(max(15, length(conc) - 40), length(conc), 1)
 17.                 └─base::stop("wrong sign in 'by' argument")
Run rlang::last_trace(drop = FALSE) to see 4 hidden frames.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions