Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New travel_time_matrix() outputs #209

Merged
merged 26 commits into from
Oct 22, 2021
Merged

New travel_time_matrix() outputs #209

merged 26 commits into from
Oct 22, 2021

Conversation

mvpsaraiva
Copy link
Collaborator

This pull request contains the new enhanced travel_time_matrix() function, discussed in issue #194.

mvpsaraiva and others added 26 commits October 20, 2021 11:17
Although this probably wouldn't cause much problems to the majority of
the users, hardcoding the path to point to .libPaths()[1] could lead to
issues if r5r is not in this library.
I, for instance, wanted to test the package without installing it, only
loading via devtools, so the correct r5r's jar wasn't in that library,
but inside the dev's inst/jar directory.
Using system.file() fixes this issue.
download_r5():
- changed example
- changed option setting to follow download.file() recommendation
- simplified code and adjusted formatting
- started using check_connection() properly

internal paths:
- started using system.file() instead of .libPaths()[1]
now metadata is retrieved directly from the package repo, not downloaded
from ipea's server. this lower the chances of dealing with frustrating
timeouts and reduces r5r's internet dependency considerably. the package
now only requires internet to download R5's most recent jar, and will
skip this step if the jar has been already cached.
Added utility function to save data to CSV.
@mvpsaraiva mvpsaraiva merged commit 5743d27 into master Oct 22, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants