aftables
R package: generate best-practice stats spreadsheets for publication
Science Score: 26.0%
This score indicates how likely this project is to be science-related based on various indicators:
-
○CITATION.cff file
-
✓codemeta.json file
Found codemeta.json file -
✓.zenodo.json file
Found .zenodo.json file -
○DOI references
-
○Academic publication links
-
○Academic email domains
-
○Institutional organization owner
-
○JOSS paper metadata
-
○Scientific vocabulary similarity
Low similarity (19.4%) to scientific vocabulary
Keywords
accessibility
openxlsx
reproducible-analytical-pipeline
rstats
rstats-package
spreadsheet
uk-gov-data-science
Last synced: 6 months ago
·
JSON representation
Repository
R package: generate best-practice stats spreadsheets for publication
Basic Info
- Host: GitHub
- Owner: best-practice-and-impact
- License: other
- Language: R
- Default Branch: main
- Homepage: https://best-practice-and-impact.github.io/aftables/
- Size: 4.95 MB
Statistics
- Stars: 50
- Watchers: 2
- Forks: 4
- Open Issues: 24
- Releases: 8
Topics
accessibility
openxlsx
reproducible-analytical-pipeline
rstats
rstats-package
spreadsheet
uk-gov-data-science
Created over 4 years ago
· Last pushed 6 months ago
Metadata Files
Readme
Changelog
Contributing
License
Code of conduct
README.Rmd
---
output: github_document
---
```{r setup, include = FALSE}
knitr::opts_chunk$set(
collapse = TRUE,
comment = "#",
fig.path = "man/figures/README-",
out.width = "100%"
)
```
# {aftables}
[](https://CRAN.R-project.org/package=aftables)
[](https://github.com/best-practice-and-impact/aftables/actions/workflows/R-CMD-check.yaml)
## Purpose
An R package to help automatically create reproducible spreadsheets that adhere to the guidance on [releasing statistics in spreadsheets](https://analysisfunction.civilservice.gov.uk/policy-store/releasing-statistics-in-spreadsheets/) from the UK government's [Analysis Function](https://analysisfunction.civilservice.gov.uk/), with a focus on accessibility.
Visit [the {aftables} website](https://best-practice-and-impact.github.io/aftables/) for documentation.
## Accessibility
This package is not yet capable of creating perfectly accessible spreadsheets but will help with the bulk of the work needed. Users of this packages should refer back to [the main spreadsheet guidance](https://analysisfunction.civilservice.gov.uk/policy-store/releasing-statistics-in-spreadsheets/) or [the spreadsheet accessibility checklist](https://analysisfunction.civilservice.gov.uk/policy-store/making-spreadsheets-accessible-a-brief-checklist-of-the-basics/) after using it to make sure nothing has been missed. Please email [analysis.function@ons.gov.uk](mailto:analysis.function@ons.gov.uk) if you use the package so they can monitor use and the outputs produced.
## Contribute
The package is under (opinionated) active development. Please see [the NEWS file](https://best-practice-and-impact.github.io/aftables/news/index.html) for the latest changes.
To contribute, please add [an issue](https://github.com/best-practice-and-impact/aftables/issues) or [a pull request](https://github.com/best-practice-and-impact/aftables/pulls) after reading [the code of conduct](https://github.com/best-practice-and-impact/aftables/blob/main/.github/CODE_OF_CONDUCT.md) and [contributing](https://github.com/best-practice-and-impact/aftables/blob/main/.github/CONTRIBUTING.md) guidance.
## Installation
### Install from CRAN
Install the latest release version of aftables directly from CRAN:
``` {r install from CRAN, eval=FALSE}
install.packages("aftables")
```
### Install from GitHub
Install the package [from GitHub](https://github.com/best-practice-and-impact/aftables) using [{remotes}](https://remotes.r-lib.org/).
```{r install, eval=FALSE}
install.packages("remotes") # if not already installed
remotes::install_github(
repo = "best-practice-and-impact/aftables", # GitHub user/repository
dependencies = TRUE, # install required/suggested packages
build_vignettes = TRUE # generate vignette documentation
)
```
## How to install a11ytables
The original name of the aftables package was a11ytables. The package was renamed to make it consistent the [afcharts package](https://github.com/best-practice-and-impact/afcharts). Some function names were updated when the package was renamed. If you need to install a11ytables for a legacy project, the following code can be used.
```{r install a11ytables, eval=FALSE}
install.packages("remotes") # if not already installed
remotes::install_github(
repo = "best-practice-and-impact/aftables", # GitHub user/repository
ref = "v0.3.2", # this installs the final version of a11ytables. Change if you need an earlier version.
dependencies = TRUE, # install required/suggested packages
build_vignettes = TRUE # generate vignette documentation
)
library(a11ytables) # attach package
```
## Use
To create a spreadsheet:
1. Use `create_aftable()`
1. Pass the output to `generate_workbook()`
1. Pass the output to `openxlsx::saveWorkbook()`
Run `?function_name` or visit [the package website](https://best-practice-and-impact.github.io/aftables/reference/index.html) for function documentation. For long-form documentation, [visit the package website](https://best-practice-and-impact.github.io/aftables/) or run `browseVignettes("aftables")` to read the:
* [introductory vignette](https://best-practice-and-impact.github.io/aftables/articles/aftables.html) to get started
* [accessibility checklist vignette](https://best-practice-and-impact.github.io/aftables/articles/checklist.html) to see how the package complies with best-practice guidance
* [terminology vignette](https://best-practice-and-impact.github.io/aftables/articles/terminology) to understand the nomenclature of spreadsheet terms as used in this package
* [package structure vignette](https://best-practice-and-impact.github.io/aftables/articles/structure) to see how the package works under the hood
This package also includes [an RStudio Addin](https://rstudio.github.io/rstudioaddins/) that inserts pre-filled demo skeletons of the {aftables} workflow.
## Related projects
The ONS's Analysis Standards and Pipelines team has released [a Python package called 'gptables'](https://github.com/best-practice-and-impact/gptables). {aftables} is an independent effort that offers a native R solution that is very similar to gptables in its outputs, though there are some differences in implementation.
{aftables} can help you fulfill a [Reproducible Analytical Pipeline](https://analysisfunction.civilservice.gov.uk/support/reproducible-analytical-pipelines/) by automating the generation of compliant spreadsheets for publication.
## Code of Conduct
Please note that the {aftables} project is released with a [Contributor Code of Conduct](https://best-practice-and-impact.github.io/aftables/CODE_OF_CONDUCT.html).
## Copyright and Licensing
© Crown Copyright, 2023.
This work is [Crown Copyright](https://www.nationalarchives.gov.uk/information-management/re-using-public-sector-information/uk-government-licensing-framework/crown-copyright/). The source code for the software is released under the MIT licence as per the the [UK Government Licensing Framework](https://www.nationalarchives.gov.uk/information-management/re-using-public-sector-information/uk-government-licensing-framework/open-government-licence/open-software-licences/) and the [GDS Way licensing guidance](https://gds-way.digital.cabinet-office.gov.uk/manuals/licensing.html). The documentation for the software is released under the [Open Government Licence](https://www.nationalarchives.gov.uk/doc/open-government-licence/version/3/).
Owner
- Name: Analysis Function
- Login: best-practice-and-impact
- Kind: organization
- Email: analysis.function@ons.gov.uk
- Location: United Kingdom
- Website: https://analysisfunction.civilservice.gov.uk/
- Repositories: 12
- Profile: https://github.com/best-practice-and-impact
The Analysis Function, UK Government
GitHub Events
Total
- Create event: 2
- Issues event: 11
- Release event: 1
- Watch event: 8
- Delete event: 2
- Member event: 1
- Issue comment event: 14
- Push event: 37
- Pull request review comment event: 1
- Pull request review event: 5
- Pull request event: 4
- Fork event: 1
Last Year
- Create event: 2
- Issues event: 11
- Release event: 1
- Watch event: 8
- Delete event: 2
- Member event: 1
- Issue comment event: 14
- Push event: 37
- Pull request review comment event: 1
- Pull request review event: 5
- Pull request event: 4
- Fork event: 1
Issues and Pull Requests
Last synced: 6 months ago
All Time
- Total issues: 7
- Total pull requests: 3
- Average time to close issues: 10 months
- Average time to close pull requests: 24 days
- Total issue authors: 5
- Total pull request authors: 3
- Average comments per issue: 1.29
- Average comments per pull request: 0.0
- Merged pull requests: 2
- Bot issues: 0
- Bot pull requests: 0
Past Year
- Issues: 6
- Pull requests: 3
- Average time to close issues: 26 days
- Average time to close pull requests: 24 days
- Issue authors: 5
- Pull request authors: 3
- Average comments per issue: 0.5
- Average comments per pull request: 0.0
- Merged pull requests: 2
- Bot issues: 0
- Bot pull requests: 0
Top Authors
Issue Authors
- Olivia-Box-Power (2)
- matt-dray (2)
- balthasars (1)
- pbbgss (1)
- alice-hannah (1)
Pull Request Authors
- zac-gleisner (1)
- Olivia-Box-Power (1)
- matt-dray (1)
Top Labels
Issue Labels
enhancement (1)
could (1)
documentation (1)
should (1)
Pull Request Labels
documentation (1)
should (1)
Packages
- Total packages: 1
-
Total downloads:
- cran 288 last-month
- Total dependent packages: 0
- Total dependent repositories: 0
- Total versions: 2
- Total maintainers: 1
cran.r-project.org: aftables
Create Spreadsheet Publications Following Best Practice
- Homepage: https://best-practice-and-impact.github.io/aftables/
- Documentation: http://cran.r-project.org/web/packages/aftables/aftables.pdf
- License: MIT + file LICENSE
-
Latest release: 1.0.2
published about 1 year ago
Rankings
Dependent packages count: 27.2%
Dependent repos count: 33.5%
Average: 49.2%
Downloads: 87.0%
Maintainers (1)
Last synced:
6 months ago
Dependencies
.github/workflows/R-CMD-check.yaml
actions
- actions/checkout v3 composite
- r-lib/actions/check-r-package v2 composite
- r-lib/actions/setup-pandoc v2 composite
- r-lib/actions/setup-r v2 composite
- r-lib/actions/setup-r-dependencies v2 composite
.github/workflows/pkgdown.yaml
actions
- JamesIves/github-pages-deploy-action v4.4.1 composite
- actions/checkout v3 composite
- r-lib/actions/setup-pandoc v2 composite
- r-lib/actions/setup-r v2 composite
- r-lib/actions/setup-r-dependencies v2 composite
.github/workflows/test-coverage.yaml
actions
- actions/checkout v3 composite
- actions/upload-artifact v3 composite
- r-lib/actions/setup-r v2 composite
- r-lib/actions/setup-r-dependencies v2 composite
DESCRIPTION
cran
- R >= 2.10 depends
- openxlsx * imports
- pillar * imports
- covr * suggests
- knitr * suggests
- rmarkdown * suggests
- rstudioapi * suggests
- testthat >= 3.0.0 suggests
- tibble * suggests