这是indexloc提供的服务,不要输入任何密码
Skip to content

Error for condition length > 1 with R 4.2 #651

@see24

Description

@see24

I am getting an error for qtm with a logical raster brick with R 4.2 (or a warning on earlier versions).

library(tmap)
library(raster)

b <- brick(system.file("external/rlogo.grd", package="raster"))
b_log <- b > 200

qtm(b_log)

I actually have a fix so I will open a PR as well.

PS: Is it good practice to open an issue even if I have a pull request that will fix it or in future should I just do the pull request?

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