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

local_path argument development #23

Merged
merged 87 commits into from
Oct 19, 2024
Merged

local_path argument development #23

merged 87 commits into from
Oct 19, 2024

Conversation

feinleib
Copy link
Owner

local_path is the main improvement here. Other changes here:

  • Export read_html_table()
  • Errors with {cli}
  • Column type improvements

Just needed to quote a column name in the `mutate()`.
In `get_hvw_data()` and the `local_file` helper functions.
Still needs testing.
Issue: converting between different file formats using `read_from_local_path`/`write_from_local_path`
Error handling, plus allow arbitrary-length file endings
And test/document changes
And remove it from documentation
Also:
* only use `dplyr::any_of()` for the column names that actually vary by chamber.
* `dplyr::matches()` regexes for the bill progress columns
* Add `read_from_local_path` argument to `fix_les_coltypes()`
* Use `haven::as_factor()` when reading from DTA files
in `build_voteview_file_path()`, `build_hvw_url()`, `build_les_url()`, `match_congress()`, and `get_les()`.
Also, rename `full_path` to `url`, like in HVW.
to enable returning raw bytes where they're needed
@feinleib feinleib self-assigned this Oct 19, 2024
@feinleib feinleib merged commit 2086ed0 into main Oct 19, 2024
6 checks passed
@feinleib feinleib deleted the local-arg-dev branch October 19, 2024 23:22
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.

1 participant