Closed wangzhao0217 closed 4 months ago
This error needs to be fixed:
Error: ! Error running targets::tar_make() Error messages: targets::tar_meta(fields = error, complete_only = TRUE) Debugging guide: https://books.ropensci.org/targets/debugging.html How to ask for help: https://books.ropensci.org/targets/help.html Last error: object 'all_city_coherent_networks_75' not found
Hi Robin, pls pull, this is not the latest
OK my bad. Will try with latest version.
Also don't have this file:
data-raw/combined_network_tile.geojson
I think
for (city in names(all_city_coherent_networks)) {
Should be replaced with
for (city in parameters$coherent_area) {
This would also work:
for (city in names(coherent_network)) {
Note @wangzhao0217 the name of the target is the only thing that targets can 'see', not the name of objects within each object.
Looking good @wangzhao0217 only issue now is this:
✖ error target coherent_network
▶ end pipeline [3.081 hours]
Warning message:
15 targets produced warnings. Run targets::tar_meta(fields = warnings, complete_only = TRUE) for the messages.
Error:
! Error running targets::tar_make()
Error messages: targets::tar_meta(fields = error, complete_only = TRUE)
Debugging guide: https://books.ropensci.org/targets/debugging.html
How to ask for help: https://books.ropensci.org/targets/help.html
Last error: Cannot open "inputdata/sg_intermediatezone_bdry_2011.gpkg"; The file doesn't seem to exist.
Maybe add the data as a release in inputdata if not already in there (I couldn't find it).
Looking good @wangzhao0217 only issue now is this:
✖ error target coherent_network ▶ end pipeline [3.081 hours] Warning message: 15 targets produced warnings. Run targets::tar_meta(fields = warnings, complete_only = TRUE) for the messages. Error: ! Error running targets::tar_make() Error messages: targets::tar_meta(fields = error, complete_only = TRUE) Debugging guide: https://books.ropensci.org/targets/debugging.html How to ask for help: https://books.ropensci.org/targets/help.html Last error: Cannot open "inputdata/sg_intermediatezone_bdry_2011.gpkg"; The file doesn't seem to exist.
Maybe add the data as a release in inputdata if not already in there (I couldn't find it).
Hi Robin, here is the release of all inputdata for CN: https://github.com/nptscot/npt/releases/tag/Coherent-inputdata
Hi Robin There are 3 files required for coherent network: sg_intermediatezone_bdry_2011 = sf::st_read("inputdata/sg_intermediatezone_bdry_2011.gpkg") las_scotland_2023 = sf::st_read("inputdata/las_scotland_2023.geojson") can be downloaded from https://github.com/nptscot/npt/releases/tag/boundaries-2024
MasterMap = sf::st_read("inputdata/MasterMap_Scotland.geojson") I have shared this file with you on Team
Looking good @wangzhao0217 only issue now is this:
✖ error target coherent_network ▶ end pipeline [3.081 hours] Warning message: 15 targets produced warnings. Run targets::tar_meta(fields = warnings, complete_only = TRUE) for the messages. Error: ! Error running targets::tar_make() Error messages: targets::tar_meta(fields = error, complete_only = TRUE) Debugging guide: https://books.ropensci.org/targets/debugging.html How to ask for help: https://books.ropensci.org/targets/help.html Last error: Cannot open "inputdata/sg_intermediatezone_bdry_2011.gpkg"; The file doesn't seem to exist.
Maybe add the data as a release in inputdata if not already in there (I couldn't find it).
Hi Robin There are 3 files required for coherent network: sg_intermediatezone_bdry_2011 = sf::st_read("inputdata/sg_intermediatezone_bdry_2011.gpkg") las_scotland_2023 = sf::st_read("inputdata/las_scotland_2023.geojson") can be downloaded from https://github.com/nptscot/npt/releases/tag/boundaries-2024
MasterMap = sf::st_read("inputdata/MasterMap_Scotland.geojson") I have shared this file with you on Team
Now hitting this error after running tar_make()
:
▶ start target rs_commute_balanced
✖ error target coherent_network
▶ end pipeline [17.876 seconds]
Error:
! Error running targets::tar_make()
Error messages: targets::tar_meta(fields = error, complete_only = TRUE)
Debugging guide: https://books.ropensci.org/targets/debugging.html
How to ask for help: https://books.ropensci.org/targets/help.html
Last error: the condition has length > 1
OK just did
git pull
now trying again.