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

update to version 0.2.3 #104

Merged
merged 47 commits into from
Sep 15, 2023
Merged
Changes from 1 commit
Commits
Show all changes
47 commits
Select commit Hold shift + click to select a range
ee0d94b
Replace `{gdata}` import with `{scales}`
Moohan Feb 1, 2023
26c5b82
Add and improve the tests
Moohan Feb 1, 2023
f96e610
Update documentation
Moohan Feb 1, 2023
6df269a
Increment version number to 0.2.2.9000
Moohan May 2, 2023
71f8e75
Update Roxygen verison
Moohan May 2, 2023
9bacd86
Style with {styler}
Moohan May 2, 2023
872857b
Make `extract_fin_year` more performant
Moohan Jun 13, 2023
199cb72
Update the documentation
Moohan Jun 13, 2023
11cd78b
Update NEWS.md
Moohan Jun 13, 2023
baee694
Fix the tests covering `age_from_chi`
Moohan Jun 14, 2023
87c9f70
Style code
Moohan Jun 14, 2023
aa60665
Tidy up some tests
Moohan Jun 14, 2023
9147ec9
Add a check for the postcode vector being a character vector
Moohan Jun 14, 2023
55092d9
Use the `negate` feature of `str_detect`
Moohan Jun 14, 2023
3f14818
Add a `quiet` parameter
Moohan Jun 14, 2023
34d4588
Document the new `quiet` parameter
Moohan May 2, 2023
5f41ef5
Add tests for the new `quiet` parameter
Moohan May 2, 2023
c1274aa
Minor reformatting of the documentation
Moohan May 2, 2023
1a6bec7
Style code
Moohan Jun 14, 2023
11a866b
Merge pull request #97 from Public-Health-Scotland/tests/fix_age_from…
Tina815 Jun 19, 2023
bda6e20
Update extract_fin_year.R
Tina815 Jun 20, 2023
2a08405
Update documentation
Tina815 Jun 20, 2023
4495b71
Merge pull request #96 from Public-Health-Scotland/speedup/extract_fi…
Tina815 Jun 20, 2023
2e561e9
Merge pull request #98 from Public-Health-Scotland/remove_gdata_dep
Tina815 Jul 11, 2023
0b5cee1
Update installation instructions in the README
Moohan Jul 27, 2023
504bfeb
Render `README.md` after changes to the `.Rmd` version
Moohan Jul 27, 2023
1b1f02d
Merge pull request #94 from Public-Health-Scotland/90-format_postcode…
Tina815 Aug 28, 2023
fe8d4b7
Update README.Rmd
Tina815 Sep 4, 2023
604d8fe
Render `README.md` after changes to the `.Rmd` version
Tina815 Sep 4, 2023
1f536a6
Merge pull request #101 from Public-Health-Scotland/render_readme
Tina815 Sep 4, 2023
acbc5ec
Merge pull request #99 from Public-Health-Scotland/readme_installation
Tina815 Sep 4, 2023
624fcef
Fix a typo in the `format_postcode` documentation
Moohan Sep 4, 2023
7fef661
Deprecate the renamed functions
Moohan Sep 4, 2023
b31c305
Style code
Moohan Sep 4, 2023
58646ee
Update Tina as maintainer in DESCRIPTION
Moohan Sep 5, 2023
4204055
Update some links
Moohan Sep 5, 2023
c07e2be
Style code
Moohan Sep 5, 2023
6fa64d2
Update NEWS.md
Moohan Sep 5, 2023
d535035
Render `README.md` after changes to the `.Rmd` version
Moohan Sep 5, 2023
4bf8e8e
Merge pull request #102 from Public-Health-Scotland/deprecate_renamed
Tina815 Sep 8, 2023
9868864
update to version 0.2.3
Tina815 Sep 11, 2023
dc7b787
Update R/file_size.R
Tina815 Sep 11, 2023
e448911
Remove the requirement for {here}
Moohan Sep 11, 2023
3c9460d
Split the tests into Windows / UNIX
Moohan Sep 11, 2023
6bf3701
Add UNIX (non-Windows) test snaps
Moohan Sep 11, 2023
9c36397
Add tests for `format_postcode` errors
Moohan Sep 11, 2023
fd51540
Merge pull request #105 from Public-Health-Scotland/tests/fix_file_size
Tina815 Sep 12, 2023
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Render README.md after changes to the .Rmd version
Moohan committed Sep 5, 2023
commit d53503590c29e622d30ec7e6d6b72cfdbe6027f8
50 changes: 25 additions & 25 deletions README.md
Original file line number Diff line number Diff line change
@@ -13,20 +13,20 @@ Status](https://github.com/Public-Health-Scotland/phsmethods/workflows/R-CMD-che
in [Public Health Scotland
(PHS)](https://www.publichealthscotland.scot/):

- `create_age_groups()` categorises ages into groups
- `chi_check()` assesses the validity of a CHI number
- `chi_pad()` adds a leading zero to nine-digit CHI numbers
- `sex_from_chi()` extracts the sex of a person from a CHI number
- `file_size()` returns the names and sizes of files in a directory
- `extract_fin_year()` assigns a date to a financial year in the
format `YYYY/YY`
- `match_area()` converts geography codes into area names
- `format_postcode()` formats improperly recorded postcodes
- `qtr()`, `qtr_end()`, `qtr_next()` and `qtr_prev()` assign a date to
a quarter
- `age_calculate()` calculates age between two dates
- `dob_from_chi()` extracts Date of Birth (DoB) from the CHI number
- `age_from_chi()` extracts age from the CHI number
- `create_age_groups()` categorises ages into groups
- `chi_check()` assesses the validity of a CHI number
- `chi_pad()` adds a leading zero to nine-digit CHI numbers
- `sex_from_chi()` extracts the sex of a person from a CHI number
- `file_size()` returns the names and sizes of files in a directory
- `extract_fin_year()` assigns a date to a financial year in the format
`YYYY/YY`
- `match_area()` converts geography codes into area names
- `format_postcode()` formats improperly recorded postcodes
- `qtr()`, `qtr_end()`, `qtr_next()` and `qtr_prev()` assign a date to a
quarter
- `age_calculate()` calculates age between two dates
- `dob_from_chi()` extracts Date of Birth (DoB) from the CHI number
- `age_from_chi()` extracts age from the CHI number

`phsmethods` can be used on both the [PHS
server](https://pwb.publichealthscotland.org/) and desktop versions of
@@ -147,17 +147,17 @@ guide](https://style.tidyverse.org/) and the [rOpenSci package
development guide](https://devguide.ropensci.org/). The most pertinent
points to take from these are:

- All function names should be in lower case, with words separated by
an underscore
- Put a space after a comma, never before
- Put a space before and after infix operators such as `<-`, `==` and
`+`
- Limit code to 80 characters per line
- Function documentation should be generated using
[`roxygen2`](https://github.com/r-lib/roxygen2)
- All functions should be tested using
[`testthat`](https://github.com/r-lib/testthat)
- The package should always pass `devtools::check()`
- All function names should be in lower case, with words separated by an
underscore
- Put a space after a comma, never before
- Put a space before and after infix operators such as `<-`, `==` and
`+`
- Limit code to 80 characters per line
- Function documentation should be generated using
[`roxygen2`](https://github.com/r-lib/roxygen2)
- All functions should be tested using
[`testthat`](https://github.com/r-lib/testthat)
- The package should always pass `devtools::check()`

It’s not necessary to have experience with GitHub or of building an R
package to contribute to `phsmethods`. If you wish to contribute code