Skip to content

CRAN submission issues #486

@Robinlovelace

Description

@Robinlovelace
Flavor: r-devel-linux-x86_64-debian-gcc
Check: R code for possible problems, Result: NOTE
   File 'stplanr/R/zzz.R':
     .onLoad calls:
       packageStartupMessage(paste0("Loading stplanr v0.9.0.\n", "Note:
the next planned version, v1.0.0, will not support sp objects.\n",
"See the issue #332 and https://github.com/ropensci/stplanr/pull/481.",
    "Any feedback on GitHub: welcome. Thanks (Robin Lovelace, April
2022)!"))

   See section 'Good practice' in '?.onAttach'.

   Found if() conditions comparing class() to string:
   File 'stplanr/R/google-functions.R': if (class(from) ==
"SpatialPoints" | class(from) == "SpatialPointsDataFrame") ...
   File 'stplanr/R/google-functions.R': if (class(to) == "SpatialPoints"
| class(to) == "SpatialPointsDataFrame") ...
   File 'stplanr/R/oneway.R': if (class(x) == "factor") ...
   File 'stplanr/R/oneway.R': if (class(y) == "factor") ...
   File 'stplanr/R/oneway.R': if (class(x) == "factor") ...
   File 'stplanr/R/oneway.R': if (class(y) == "factor") ...
   File 'stplanr/R/route-transport-api.R': if (class(from) ==
"SpatialPoints" | class(from) == "SpatialPointsDataFrame") ...
   File 'stplanr/R/route-transport-api.R': if (class(to) ==
"SpatialPoints" | class(to) == "SpatialPointsDataFrame") ...
   File 'stplanr/R/route_cyclestreets.R': if (class(from) ==
"SpatialPoints" | class(from) == "SpatialPointsDataFrame") ...
   File 'stplanr/R/route_cyclestreets.R': if (class(to) ==
"SpatialPoints" | class(to) == "SpatialPointsDataFrame") ...
   Use inherits() (or maybe is()) instead.

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