Skip to content

Conversation

@wdillon-usda
Copy link

Point to the FAA data source that is a single zip file and have 'year' be NULL but retain for compatibility across other functions. Adjust the process_planes_master function to not delete the temporary folder holding this file so it can be accessed by the process_planes_ref function.

Point to the FAA data source that is a single zip file and have 'year' be NULL but retain for compatibility across other functions. Adjust the process_planes_master function to not delete the temporary folder holding this file so it can be accessed by the process_planes_ref function.
Copy link
Owner

@simonpcouch simonpcouch left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the PR! A few comments.

R/utils.R Outdated

# delete the temporary folder
unlink(x = planes_lcl, recursive = TRUE)
# unlink(x = planes_lcl, recursive = TRUE) # commented out so it can be used in process_planes_ref
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Instead of commenting out lines, could you remove lines that are no longer used and then a leave a self-review on the PR explaining your change if you feel it's not self-explanatory?

R/utils.R Outdated

# put together the url to query the planes data at
# Note: year parameter is accepted for backward compatibility but not used
# as FAA now provides a single consolidated dataset instead of yearly files
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The get_planes_data function is not exported, so you can just remove the year parameter altogether. :)

Removed unused year parameter and commented-out code for clarity.
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.

2 participants