Skip to content

fix partial match warnings #125

@achubaty

Description

@achubaty
── Failure: test12 Require.offlineMode ──────────────────────────────────────────────────────────────────────────────────
`warns` does not match "could not be installed".
Actual values:
* partial match of 'installed' to 'installedSha'
* partial match of 'installed' to 'installedVersionOK'
* partial match of 'installed' to 'installedVersionOK'
* partial match of 'installed' to 'installedVersionOK'
* partial match of 'installed' to 'installedVersionOK'
* \\033\[36mPredictiveEcology/fpCompare could not be installed; no internet\\033\[39m
Backtrace:1. └─testthat::expect_match(warns, .txtCouldNotBeInstalled)
 2.   └─testthat:::expect_match_(...)

── Warning: test12 Require.offlineMode ──────────────────────────────────────────────────────────────────────────────────
partial match of 'installed' to 'installedSha'
Backtrace:1. └─Require::Install(fpc)
 2.   └─Require::Require(...) at Require/R/Require2.R:2911:3
 3.     └─Require::pkgDep(...) at Require/R/Require2.R:337:9
 4.       └─Require:::getPkgDeps(...) at Require/R/pkgDep3.R:151:7
 5.         └─Require:::getDeps(...) at Require/R/pkgDep3.R:252:9
 6.           └─Require:::getDepsGH(...) at Require/R/pkgDep3.R:384:9
 7.             └─Require:::installedVersionOKPrecise(pkgDT, libPaths = libPaths) at Require/R/pkgDep3.R:559:3
 8.               ├─base::isTRUE(any(pkgDT$installed %in% TRUE)) at Require/R/pkgDep.R:1269:3
 9.               └─pkgDT$installed %in% TRUE at Require/R/pkgDep.R:1269:3

── Warning: test12 Require.offlineMode ──────────────────────────────────────────────────────────────────────────────────
partial match of 'installed' to 'installedSha'
Backtrace:1. └─Require::Install(fpc)
 2.   └─Require::Require(...) at Require/R/Require2.R:2911:3
 3.     └─Require::pkgDep(...) at Require/R/Require2.R:337:9
 4.       └─Require:::getPkgDeps(...) at Require/R/pkgDep3.R:151:7
 5.         └─Require:::getDeps(...) at Require/R/pkgDep3.R:252:9
 6.           └─Require:::getDepsGH(...) at Require/R/pkgDep3.R:384:9
 7.             └─Require:::installedVersionOKPrecise(pkgDT, libPaths = libPaths) at Require/R/pkgDep3.R:559:3
 8.               ├─base::isTRUE(any(pkgDT$installed %in% TRUE)) at Require/R/pkgDep.R:1269:3
 9.               └─pkgDT$installed %in% TRUE at Require/R/pkgDep.R:1269:3

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions