-
Notifications
You must be signed in to change notification settings - Fork 14
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
update to version 0.2.3 #104
Conversation
[`{scales}` 1.0.0](https://scales.r-lib.org/news/index.html#scales-100) is needed as that's when `number_bytes` was introduced. I also renamed the internal function variables to make it easier to read.
These are now more specific than before.
Some of these tests had failed because when you don't supply a `ref_date` it will calculate the age today (using `Sys.Date()`), this meant that the 'people' are now older than when we first wrote the tests, so `age_from_chi` no longer returned the expected age. I wrote a small helper function to work out what the 'expected age' should be now, given the date we first set the tests.
`capture_warnings` has been superseded by `expect_warning` so I've swapped to using that.
This is faster and more readable than `!`
I have also made a few other tweaks to the code to make it a bit faster, and have added some new tests to account for the new parameter.
…_chi_tests Fix the tests covering `age_from_chi`
…n_year A large speed up to `extract_fin_year`
Remove the dependency on {gdata}
…-quiet-parameter #90 Add a `quiet` parameter to `format_postcode`
Automated re-knit of the README
Update installation instructions in the README
They will now throw an informative error, instead of the current behaviour where they will throw a warning but also return the expected result. The tests have also been updated such that they now expect these functions to error.
These links were valid but were redirecting - they have now been replaced.
Deprecate the renamed functions.
Co-authored-by: James McMahon <james.mcmahon@phs.scot>
Codecov Report
@@ Coverage Diff @@
## master #104 +/- ##
==========================================
- Coverage 99.25% 97.30% -1.95%
==========================================
Files 13 13
Lines 400 408 +8
==========================================
Hits 397 397
- Misses 3 11 +8
|
This is required because Windows will see .txt files as bigger due to the end of line characters.
Fix the file size test
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me (and all checks passed)!
Since I wrote a lot of the code in this PR it would be good to have someone else have a look over it (maybe ask in the Teams channel?) but probably fine if not possible.
No description provided.