Closed temospena closed 2 years ago
Looks like a quick fix file location issue, will test on my new Windows laptop and report back...
I can reproduce this isse:
od_jittered = jitter(od, zones, subpoints = road_network)
Error: Cannot open "C:\Users\ROBINA~1\AppData\Local\Temp\Rtmp6TXMlr/od_jittered.geojson"; The file doesn't seem to exist.
Update: it seems the odjitter CLI is not working on windows, not a file path issue.
Good news, it's fixed for me 🎉
Heads-up @temospena it was fixed after double checking the installation on PowerShell, I guess there's some issue with the installation, basically R cannot 'see' the odjitter command for some reason. I plan to add a check to see if it has access to that...
Can you try this Rosa?:
system("odjitter --help")
odjitter 0.1.0
Dustin Carlino <dabreegster@gmail.com
Disaggregate origin/destination data from zones to points
Pls try reinstalling the R package, you should get a meaningfull message now...
Thanks!
Reinstalled the R package with remotes::install_github("dabreegster/odjitter", subdir = "r")
[not in documentation]
You're right, another message shows up!
library(od)
library(odjitter)
#>
#> Attaching package: 'odjitter'
#> The following object is masked from 'package:base':
#>
#> jitter
od_all_jittered = odjitter::jitter(
od = od_data_df,
zones = od_data_zones_min,
subpoints = sf::st_sample(od_data_zones_min, 200)
)
#> Error in system("odjitter --help", intern = TRUE): 'odjitter' not found
Created on 2022-03-26 by the reprex package (v2.0.1)
Although the package is installed and available.
remotes::install_github("dabreegster/odjitter", subdir = "r")
[not in documentation]
nevermind, just found it under the r folder! sorry 😅
Does it work now?
No.
In windows I'm facing the same issue.
Error in system("odjitter --help", intern = TRUE) : 'odjitter' not found
In ubuntu it works fine.
That sounds like an issue with the odjitter
CLI tool not being installed on PowerShell...
Right! Sorry, it was not clear to me that cargo / odjitter needed to be installed first (never used PowerShell before).
library(od)
library(odjitter)
#>
#> Attaching package: 'odjitter'
#> The following object is masked from 'package:base':
#>
#> jitter
od_all_jittered = odjitter::jitter(
od = od_data_df,
zones = od_data_zones_min,
subpoints = sf::st_sample(od_data_zones_min, 200)
)
Scraped 6 zones from C:\Users\UTILIZ~1\AppData\Local\Temp\RtmpATZ0OL/zones.geojson
Scraped 200 subpoints from C:\Users\UTILIZ~1\AppData\Local\Temp\RtmpATZ0OL/subpoints.geojson
Scraped 200 subpoints from C:\Users\UTILIZ~1\AppData\Local\Temp\RtmpATZ0OL/subpoints.geojson
Disaggregating OD data
Wrote C:\Users\UTILIZ~1\AppData\Local\Temp\RtmpATZ0OL/od_jittered.geojson
Created on 2022-04-07 by the reprex package (v2.0.1)
Working fine now!
🎉
Hi,
In Win 10, there is apparently an error of reading/writing the temporary od_jittered.geojson file.
Created on 2022-03-25 by the reprex package (v2.0.1)
The error is persistent between runs/data input.
Error: Cannot open "C:\Users\UTILIZ~1\AppData\Local\Temp\RtmpC08uIU/od_jittered.geojson"; The file doesn't seem to exist.