U-Shift / SiteSelection

Script for a site selection - Streets4All Project
https://u-shift.github.io/SiteSelection/
Other
1 stars 0 forks source link

Why object is not loaded #8

Closed temospena closed 1 month ago

temospena commented 3 months ago

https://github.com/U-Shift/SiteSelection/blob/fd13d1f6e854efb9f9f3a10554fa6d93726d46e6/R/functions.R#L380

If I delete that line (assuming that the objetc is loaded in the function), it throws the following error:

Last error message:
    no applicable method for 'filter' applied to an object of class "NULL"
Last error traceback:
    find_candidates(grid, centrality_grid, density_grid, CITY, population_mi...
    dplyr::filter(landuse_entropy, entropy >= 0.35)
    .handleSimpleError(function (condition)  {     state$error <- build_mess...
    h(simpleError(msg, call))
temospena commented 1 month ago

it is eventually working. Another targets mistery :crystal_ball: