ropensci / nlrx

nlrx NetLogo R
https://docs.ropensci.org/nlrx
GNU General Public License v3.0
77 stars 12 forks source link

Turtle shapes that contain a space (e.g., "circle 2") ruin the simulation results tibble #96

Open aosavi opened 5 months ago

aosavi commented 5 months ago

I request the shape of a turtle in the metrics.turtles object, e.g.,

metrics.turtles <- list("turtles" = c("who", "shape"))

One of the shapes is "circle 2", but when creating the results tibble with nlrx::run_nl_all(nl), these are considered two separate character strings, "circle" and "2". This ruins the results tibble.

I assume this will also give problems for other turtle or link metrics that contain spaces.

nldoc commented 1 month ago

Hi @aosavi, thanks for the bug report. Unfortunately, I barely have time to develop the package aside from critical failures and general maintenance. I hope to find a slot for fixing smaller bugs in the next weeks. For now, you could just create a duplicate of the shape in NetLogo and rename it to a string without spaces.