-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Labels
Description
I'm trying make forsysr+patchmax to run on a Docker Image, but I'm getting an error when executing forsys::run function.
The error message is:
ERROR ...: Error in `dplyr::select()`:
! `select()` doesn't handle lists.
After some debugging and investigation, I noticed that inside build function, when stand data is appended, the function vertex_attr might be returning a list, which is not a valid input for dplyr::select. Therefore, causing this error.
Line 127 in 19b57f0
| aux_data <- vertex_attr(private$..net) %>% |
I'm not much experienced with R, but I think the vertex_attr return must be transformed into a data frame, like in constructor
Line 87 in 19b57f0
| a <- vertex_attr(private$..net) %>% data.frame() |
# append stand data
aux_data <- vertex_attr(private$..net) %>% data.frame() %>%
dplyr::select(node = name,
private$..param_objective_field,
original_area = ..area)