Skip to content

failure if pkgPath is not valid #1026

@sgsokol

Description

@sgsokol

For some obscure reason, a variable pkgPath is returned as character(0) in my unit tests run on R-devel (win10) under CMD check (in interactive session they run OK, as well as on R-3.6.1). Anyway, if this line:

pkgPath <- find.package(package, NULL, quiet=TRUE)

returns character(0) the .linkingToIncludes() ends up with an error "argument is of length zero" in the line if (file.exists(pkgHeaderPath)) {. It would be great to add a test for length(pkgPath) and if it is zero, to stop with a meaningfull error message "package 'pkg' is not found" or alike.

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