-
Notifications
You must be signed in to change notification settings - Fork 130
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
195 changed files
with
3,495 additions
and
17,213 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,77 @@ | ||
# Workflow derived from https://github.com/r-lib/actions/tree/v2/examples | ||
# Need help debugging build failures? Start at https://github.com/r-lib/actions#where-to-find-help | ||
on: | ||
push: | ||
paths: ["**.[rR]", "**.[qrR]md", "**.[rR]markdown", "**.[rR]nw", "**.[rR]profile"] | ||
|
||
name: Style | ||
|
||
permissions: read-all | ||
|
||
jobs: | ||
style: | ||
runs-on: ubuntu-latest | ||
permissions: | ||
contents: write | ||
env: | ||
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }} | ||
steps: | ||
- name: Checkout repo | ||
uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 0 | ||
|
||
- name: Setup R | ||
uses: r-lib/actions/setup-r@v2 | ||
with: | ||
use-public-rspm: true | ||
|
||
- name: Install dependencies | ||
uses: r-lib/actions/setup-r-dependencies@v2 | ||
with: | ||
extra-packages: any::styler, any::roxygen2 | ||
needs: styler | ||
|
||
- name: Enable styler cache | ||
run: styler::cache_activate() | ||
shell: Rscript {0} | ||
|
||
- name: Determine cache location | ||
id: styler-location | ||
run: | | ||
cat( | ||
"location=", | ||
styler::cache_info(format = "tabular")$location, | ||
"\n", | ||
file = Sys.getenv("GITHUB_OUTPUT"), | ||
append = TRUE, | ||
sep = "" | ||
) | ||
shell: Rscript {0} | ||
|
||
- name: Cache styler | ||
uses: actions/cache@v4 | ||
with: | ||
path: ${{ steps.styler-location.outputs.location }} | ||
key: ${{ runner.os }}-styler-${{ github.sha }} | ||
restore-keys: | | ||
${{ runner.os }}-styler- | ||
${{ runner.os }}- | ||
- name: Style | ||
run: styler::style_pkg() | ||
shell: Rscript {0} | ||
|
||
- name: Commit and push changes | ||
run: | | ||
if FILES_TO_COMMIT=($(git diff-index --name-only ${{ github.sha }} \ | ||
| egrep --ignore-case '\.(R|[qR]md|Rmarkdown|Rnw|Rprofile)$')) | ||
then | ||
git config --local user.name "$GITHUB_ACTOR" | ||
git config --local user.email "[email protected]" | ||
git commit ${FILES_TO_COMMIT[*]} -m "Style code (GHA)" | ||
git pull --ff-only | ||
git push origin | ||
else | ||
echo "No changes to commit." | ||
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,27 @@ | ||
Package: janitor | ||
Title: Simple Tools for Examining and Cleaning Dirty Data | ||
Version: 2.2.1 | ||
Authors@R: c(person("Sam", "Firke", email = "[email protected]", role = c("aut", "cre")), | ||
person("Bill", "Denney", email = "[email protected]", role = "ctb"), | ||
person("Chris", "Haid", email = "[email protected]", role = "ctb"), | ||
person("Ryan", "Knight", email = "[email protected]", role = "ctb"), | ||
person("Malte", "Grosser", email = "[email protected]", role = "ctb"), | ||
person("Jonathan", "Zadra", email = "[email protected]", role = "ctb")) | ||
Description: The main janitor functions can: perfectly format data.frame column | ||
names; provide quick counts of variable combinations (i.e., frequency | ||
tables and crosstabs); and explore duplicate records. Other janitor functions | ||
nicely format the tabulation results. These tabulate-and-report functions | ||
approximate popular features of SPSS and Microsoft Excel. This package | ||
follows the principles of the "tidyverse" and works well with the pipe function | ||
%>%. janitor was built with beginning-to-intermediate R users in mind and is | ||
optimized for user-friendliness. | ||
URL: https://github.com/sfirke/janitor, | ||
https://sfirke.github.io/janitor/ | ||
Authors@R: c( | ||
person("Sam", "Firke", , "[email protected]", role = c("aut", "cre")), | ||
person("Bill", "Denney", , "[email protected]", role = "ctb"), | ||
person("Chris", "Haid", , "[email protected]", role = "ctb"), | ||
person("Ryan", "Knight", , "[email protected]", role = "ctb"), | ||
person("Malte", "Grosser", , "[email protected]", role = "ctb"), | ||
person("Jonathan", "Zadra", , "[email protected]", role = "ctb"), | ||
person("Olivier", "Roy", role = "ctb"), | ||
person("Josep", family = "Pueyo-Ros", email = "[email protected]", role = "ctb") | ||
) | ||
Description: The main janitor functions can: perfectly format data.frame | ||
column names; provide quick counts of variable combinations (i.e., | ||
frequency tables and crosstabs); and explore duplicate records. Other | ||
janitor functions nicely format the tabulation results. These | ||
tabulate-and-report functions approximate popular features of SPSS and | ||
Microsoft Excel. This package follows the principles of the | ||
"tidyverse" and works well with the pipe function %>%. janitor was | ||
built with beginning-to-intermediate R users in mind and is optimized | ||
for user-friendliness. | ||
License: MIT + file LICENSE | ||
URL: https://github.com/sfirke/janitor, https://sfirke.github.io/janitor/ | ||
BugReports: https://github.com/sfirke/janitor/issues | ||
Depends: | ||
R (>= 3.1.2) | ||
|
@@ -28,14 +33,11 @@ Imports: | |
magrittr, | ||
purrr, | ||
rlang, | ||
snakecase (>= 0.9.2), | ||
stringi, | ||
stringr, | ||
snakecase (>= 0.9.2), | ||
tidyselect (>= 1.0.0), | ||
tidyr (>= 0.7.0) | ||
License: MIT + file LICENSE | ||
LazyData: true | ||
RoxygenNote: 7.2.3 | ||
tidyr (>= 1.0.0), | ||
tidyselect (>= 1.0.0) | ||
Suggests: | ||
dbplyr, | ||
knitr, | ||
|
@@ -45,6 +47,10 @@ Suggests: | |
testthat (>= 3.0.0), | ||
tibble, | ||
tidygraph | ||
VignetteBuilder: knitr | ||
Encoding: UTF-8 | ||
VignetteBuilder: | ||
knitr | ||
Config/testthat/edition: 3 | ||
Encoding: UTF-8 | ||
LazyData: true | ||
Roxygen: list(markdown = TRUE) | ||
RoxygenNote: 7.3.2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.