diff --git a/.github/CODE_OF_CONDUCT.md b/.github/CODE_OF_CONDUCT.md new file mode 100644 index 0000000..3ac34c8 --- /dev/null +++ b/.github/CODE_OF_CONDUCT.md @@ -0,0 +1,126 @@ +# Contributor Covenant Code of Conduct + +## Our Pledge + +We as members, contributors, and leaders pledge to make participation in our +community a harassment-free experience for everyone, regardless of age, body +size, visible or invisible disability, ethnicity, sex characteristics, gender +identity and expression, level of experience, education, socio-economic status, +nationality, personal appearance, race, caste, color, religion, or sexual +identity and orientation. + +We pledge to act and interact in ways that contribute to an open, welcoming, +diverse, inclusive, and healthy community. + +## Our Standards + +Examples of behavior that contributes to a positive environment for our +community include: + +* Demonstrating empathy and kindness toward other people +* Being respectful of differing opinions, viewpoints, and experiences +* Giving and gracefully accepting constructive feedback +* Accepting responsibility and apologizing to those affected by our mistakes, + and learning from the experience +* Focusing on what is best not just for us as individuals, but for the overall + community + +Examples of unacceptable behavior include: + +* The use of sexualized language or imagery, and sexual attention or advances of + any kind +* Trolling, insulting or derogatory comments, and personal or political attacks +* Public or private harassment +* Publishing others' private information, such as a physical or email address, + without their explicit permission +* Other conduct which could reasonably be considered inappropriate in a + professional setting + +## Enforcement Responsibilities + +Community leaders are responsible for clarifying and enforcing our standards of +acceptable behavior and will take appropriate and fair corrective action in +response to any behavior that they deem inappropriate, threatening, offensive, +or harmful. + +Community leaders have the right and responsibility to remove, edit, or reject +comments, commits, code, wiki edits, issues, and other contributions that are +not aligned to this Code of Conduct, and will communicate reasons for moderation +decisions when appropriate. + +## Scope + +This Code of Conduct applies within all community spaces, and also applies when +an individual is officially representing the community in public spaces. +Examples of representing our community include using an official e-mail address, +posting via an official social media account, or acting as an appointed +representative at an online or offline event. + +## Enforcement + +Instances of abusive, harassing, or otherwise unacceptable behavior may be +reported to the community leaders responsible for enforcement at codeofconduct@posit.co. +All complaints will be reviewed and investigated promptly and fairly. + +All community leaders are obligated to respect the privacy and security of the +reporter of any incident. + +## Enforcement Guidelines + +Community leaders will follow these Community Impact Guidelines in determining +the consequences for any action they deem in violation of this Code of Conduct: + +### 1. Correction + +**Community Impact**: Use of inappropriate language or other behavior deemed +unprofessional or unwelcome in the community. + +**Consequence**: A private, written warning from community leaders, providing +clarity around the nature of the violation and an explanation of why the +behavior was inappropriate. A public apology may be requested. + +### 2. Warning + +**Community Impact**: A violation through a single incident or series of +actions. + +**Consequence**: A warning with consequences for continued behavior. No +interaction with the people involved, including unsolicited interaction with +those enforcing the Code of Conduct, for a specified period of time. This +includes avoiding interactions in community spaces as well as external channels +like social media. Violating these terms may lead to a temporary or permanent +ban. + +### 3. Temporary Ban + +**Community Impact**: A serious violation of community standards, including +sustained inappropriate behavior. + +**Consequence**: A temporary ban from any sort of interaction or public +communication with the community for a specified period of time. No public or +private interaction with the people involved, including unsolicited interaction +with those enforcing the Code of Conduct, is allowed during this period. +Violating these terms may lead to a permanent ban. + +### 4. Permanent Ban + +**Community Impact**: Demonstrating a pattern of violation of community +standards, including sustained inappropriate behavior, harassment of an +individual, or aggression toward or disparagement of classes of individuals. + +**Consequence**: A permanent ban from any sort of public interaction within the +community. + +## Attribution + +This Code of Conduct is adapted from the [Contributor Covenant][homepage], +version 2.1, available at +. + +Community Impact Guidelines were inspired by +[Mozilla's code of conduct enforcement ladder][https://github.com/mozilla/inclusion]. + +For answers to common questions about this code of conduct, see the FAQ at +. Translations are available at . + +[homepage]: https://www.contributor-covenant.org diff --git a/.github/workflows/pkgdown.yaml b/.github/workflows/pkgdown.yaml index 087f0b0..ed7650c 100644 --- a/.github/workflows/pkgdown.yaml +++ b/.github/workflows/pkgdown.yaml @@ -19,6 +19,8 @@ jobs: group: pkgdown-${{ github.event_name != 'pull_request' || github.run_id }} env: GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }} + permissions: + contents: write steps: - uses: actions/checkout@v3 diff --git a/.github/workflows/test-coverage.yaml b/.github/workflows/test-coverage.yaml index 2c5bb50..27d4528 100644 --- a/.github/workflows/test-coverage.yaml +++ b/.github/workflows/test-coverage.yaml @@ -31,7 +31,7 @@ jobs: covr::codecov( quiet = FALSE, clean = FALSE, - install_path = file.path(Sys.getenv("RUNNER_TEMP"), "package") + install_path = file.path(normalizePath(Sys.getenv("RUNNER_TEMP"), winslash = "/"), "package") ) shell: Rscript {0} diff --git a/DESCRIPTION b/DESCRIPTION index 06defbc..85ecb25 100644 --- a/DESCRIPTION +++ b/DESCRIPTION @@ -12,7 +12,7 @@ URL: https://multidplyr.tidyverse.org, https://github.com/tidyverse/multidplyr BugReports: https://github.com/tidyverse/multidplyr/issues Depends: - R (>= 3.4.0) + R (>= 3.6) Imports: callr (>= 3.5.1), cli, diff --git a/LICENSE b/LICENSE index 4964200..690174b 100644 --- a/LICENSE +++ b/LICENSE @@ -1,2 +1,2 @@ -YEAR: 2021 +YEAR: 2023 COPYRIGHT HOLDER: multidplyr authors diff --git a/LICENSE.md b/LICENSE.md index 54b6aa6..bab4e1b 100644 --- a/LICENSE.md +++ b/LICENSE.md @@ -1,6 +1,6 @@ # MIT License -Copyright (c) 2021 multidplyr authors +Copyright (c) 2023 multidplyr authors Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal diff --git a/README.Rmd b/README.Rmd index 3bd1d01..717adc7 100644 --- a/README.Rmd +++ b/README.Rmd @@ -41,8 +41,8 @@ install.packages("multidplyr") And the development version from [GitHub](https://github.com/) with: ``` r -# install.packages("devtools") -devtools::install_github("tidyverse/multidplyr") +# install.packages("pak") +pak::pak("tidyverse/multidplyr") ``` ## Usage diff --git a/README.md b/README.md index bac7484..635d934 100644 --- a/README.md +++ b/README.md @@ -27,7 +27,7 @@ the Vertica Analytics team. Due to the overhead associated with communicating between the nodes, you won’t see much performance improvement with simple operations on less -than \~10 million observations, and you may want to instead try +than ~10 million observations, and you may want to instead try [dtplyr](https://dtplyr.tidyverse.org/), which uses [data.table](https://R-datatable.com/). multidplyr’s strength is found parallelising calls to slower and more complex functions. @@ -48,8 +48,8 @@ install.packages("multidplyr") And the development version from [GitHub](https://github.com/) with: ``` r -# install.packages("devtools") -devtools::install_github("tidyverse/multidplyr") +# install.packages("pak") +pak::pak("tidyverse/multidplyr") ``` ## Usage @@ -102,17 +102,19 @@ flight_dest #> Groups: dest #> Shards: 4 [81,594--86,548 rows] #> -#> year month day dep_ti… sched_… dep_de… arr_ti… sched_… arr_de… carrier -#> -#> 1 2013 1 1 544 545 -1 1004 1022 -18 B6 -#> 2 2013 1 1 558 600 -2 923 937 -14 UA -#> 3 2013 1 1 559 600 -1 854 902 -8 UA -#> 4 2013 1 1 602 610 -8 812 820 -8 DL -#> 5 2013 1 1 602 605 -3 821 805 16 MQ -#> 6 2013 1 1 611 600 11 945 931 14 UA -#> # … with 336,770 more rows, and 9 more variables: flight , tailnum , -#> # origin , dest , air_time , distance , hour , -#> # minute , time_hour +#> # A data frame: 336,776 × 19 +#> year month day dep_time sched_dep_time dep_delay arr_time sched_arr_time +#> +#> 1 2013 1 1 544 545 -1 1004 1022 +#> 2 2013 1 1 558 600 -2 923 937 +#> 3 2013 1 1 559 600 -1 854 902 +#> 4 2013 1 1 602 610 -8 812 820 +#> 5 2013 1 1 602 605 -3 821 805 +#> 6 2013 1 1 611 600 11 945 931 +#> # ℹ 336,770 more rows +#> # ℹ 11 more variables: arr_delay , carrier , flight , +#> # tailnum , origin , dest , air_time , distance , +#> # hour , minute , time_hour ``` Now you can work with it like a regular data frame, but the computations @@ -136,7 +138,7 @@ flight_dest %>% #> 8 DEN 15.2 7266 #> 9 DSM 26.2 569 #> 10 DTW 11.8 9384 -#> # … with 95 more rows +#> # ℹ 95 more rows ``` Note that there is some overhead associated with copying data from the diff --git a/tests/testthat/_snaps/partydf.md b/tests/testthat/_snaps/partydf.md index 1e9a85c..66bc4bc 100644 --- a/tests/testthat/_snaps/partydf.md +++ b/tests/testthat/_snaps/partydf.md @@ -15,7 +15,7 @@ 4 4 5 5 6 6 - # ... with 14 more rows + # i 14 more rows --- @@ -35,5 +35,5 @@ 4 4 5 5 6 6 - # ... with 14 more rows + # i 14 more rows