Skip to content

Commit f719143

Browse files
authored
Tidy upkeep 2024 (#46)
* Use README.Rmd * usethis::use_pkgdown_github_pages() * Use tidy style * URL check * usethis::use_package_doc() * Add Codecov badge * usethis::use_lifecycle() * Logo and favicons * usethis::use_tidy_coc() * Add alt text to images * Add rlang types check * Switch to Quarto chunk style * Finishing touches Closes #44.
1 parent 2a5577a commit f719143

31 files changed

+1339
-99
lines changed

.Rbuildignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,3 +7,4 @@
77
^\.github$
88
^doc$
99
^Meta$
10+
^README\.Rmd$

.github/CODE_OF_CONDUCT.md

Lines changed: 126 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,126 @@
1+
# Contributor Covenant Code of Conduct
2+
3+
## Our Pledge
4+
5+
We as members, contributors, and leaders pledge to make participation in our
6+
community a harassment-free experience for everyone, regardless of age, body
7+
size, visible or invisible disability, ethnicity, sex characteristics, gender
8+
identity and expression, level of experience, education, socio-economic status,
9+
nationality, personal appearance, race, caste, color, religion, or sexual
10+
identity and orientation.
11+
12+
We pledge to act and interact in ways that contribute to an open, welcoming,
13+
diverse, inclusive, and healthy community.
14+
15+
## Our Standards
16+
17+
Examples of behavior that contributes to a positive environment for our
18+
community include:
19+
20+
* Demonstrating empathy and kindness toward other people
21+
* Being respectful of differing opinions, viewpoints, and experiences
22+
* Giving and gracefully accepting constructive feedback
23+
* Accepting responsibility and apologizing to those affected by our mistakes,
24+
and learning from the experience
25+
* Focusing on what is best not just for us as individuals, but for the overall
26+
community
27+
28+
Examples of unacceptable behavior include:
29+
30+
* The use of sexualized language or imagery, and sexual attention or advances of
31+
any kind
32+
* Trolling, insulting or derogatory comments, and personal or political attacks
33+
* Public or private harassment
34+
* Publishing others' private information, such as a physical or email address,
35+
without their explicit permission
36+
* Other conduct which could reasonably be considered inappropriate in a
37+
professional setting
38+
39+
## Enforcement Responsibilities
40+
41+
Community leaders are responsible for clarifying and enforcing our standards of
42+
acceptable behavior and will take appropriate and fair corrective action in
43+
response to any behavior that they deem inappropriate, threatening, offensive,
44+
or harmful.
45+
46+
Community leaders have the right and responsibility to remove, edit, or reject
47+
comments, commits, code, wiki edits, issues, and other contributions that are
48+
not aligned to this Code of Conduct, and will communicate reasons for moderation
49+
decisions when appropriate.
50+
51+
## Scope
52+
53+
This Code of Conduct applies within all community spaces, and also applies when
54+
an individual is officially representing the community in public spaces.
55+
Examples of representing our community include using an official e-mail address,
56+
posting via an official social media account, or acting as an appointed
57+
representative at an online or offline event.
58+
59+
## Enforcement
60+
61+
Instances of abusive, harassing, or otherwise unacceptable behavior may be
62+
reported to the community leaders responsible for enforcement at [email protected].
63+
All complaints will be reviewed and investigated promptly and fairly.
64+
65+
All community leaders are obligated to respect the privacy and security of the
66+
reporter of any incident.
67+
68+
## Enforcement Guidelines
69+
70+
Community leaders will follow these Community Impact Guidelines in determining
71+
the consequences for any action they deem in violation of this Code of Conduct:
72+
73+
### 1. Correction
74+
75+
**Community Impact**: Use of inappropriate language or other behavior deemed
76+
unprofessional or unwelcome in the community.
77+
78+
**Consequence**: A private, written warning from community leaders, providing
79+
clarity around the nature of the violation and an explanation of why the
80+
behavior was inappropriate. A public apology may be requested.
81+
82+
### 2. Warning
83+
84+
**Community Impact**: A violation through a single incident or series of
85+
actions.
86+
87+
**Consequence**: A warning with consequences for continued behavior. No
88+
interaction with the people involved, including unsolicited interaction with
89+
those enforcing the Code of Conduct, for a specified period of time. This
90+
includes avoiding interactions in community spaces as well as external channels
91+
like social media. Violating these terms may lead to a temporary or permanent
92+
ban.
93+
94+
### 3. Temporary Ban
95+
96+
**Community Impact**: A serious violation of community standards, including
97+
sustained inappropriate behavior.
98+
99+
**Consequence**: A temporary ban from any sort of interaction or public
100+
communication with the community for a specified period of time. No public or
101+
private interaction with the people involved, including unsolicited interaction
102+
with those enforcing the Code of Conduct, is allowed during this period.
103+
Violating these terms may lead to a permanent ban.
104+
105+
### 4. Permanent Ban
106+
107+
**Community Impact**: Demonstrating a pattern of violation of community
108+
standards, including sustained inappropriate behavior, harassment of an
109+
individual, or aggression toward or disparagement of classes of individuals.
110+
111+
**Consequence**: A permanent ban from any sort of public interaction within the
112+
community.
113+
114+
## Attribution
115+
116+
This Code of Conduct is adapted from the [Contributor Covenant][homepage],
117+
version 2.1, available at
118+
<https://www.contributor-covenant.org/version/2/1/code_of_conduct.html>.
119+
120+
Community Impact Guidelines were inspired by
121+
[Mozilla's code of conduct enforcement ladder][https://github.com/mozilla/inclusion].
122+
123+
For answers to common questions about this code of conduct, see the FAQ at
124+
<https://www.contributor-covenant.org/faq>. Translations are available at <https://www.contributor-covenant.org/translations>.
125+
126+
[homepage]: https://www.contributor-covenant.org

.github/workflows/pkgdown.yaml

Lines changed: 22 additions & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -1,70 +1,50 @@
1-
# Workflow derived from https://github.com/r-wasm/actions/tree/v1/examples
1+
# Workflow derived from https://github.com/r-lib/actions/tree/v2/examples
22
# Need help debugging build failures? Start at https://github.com/r-lib/actions#where-to-find-help
3-
43
on:
54
push:
6-
branches: [main, pkg]
5+
branches: [main, master]
76
pull_request:
7+
branches: [main, master]
88
release:
99
types: [published]
1010
workflow_dispatch:
1111

12-
name: R Wasm & pkgdown deploy
12+
name: pkgdown.yaml
13+
14+
permissions: read-all
1315

1416
jobs:
15-
build-site:
17+
pkgdown:
1618
runs-on: ubuntu-latest
19+
# Only restrict concurrency for non-PR jobs
20+
concurrency:
21+
group: pkgdown-${{ github.event_name != 'pull_request' || github.run_id }}
1722
env:
1823
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
19-
24+
permissions:
25+
contents: write
2026
steps:
21-
- name: Checkout repository
22-
uses: actions/checkout@v4
27+
- uses: actions/checkout@v4
2328

24-
# Usual steps for generating a pkgdown website
2529
- uses: r-lib/actions/setup-pandoc@v2
30+
2631
- uses: r-lib/actions/setup-r@v2
2732
with:
2833
use-public-rspm: true
34+
2935
- uses: r-lib/actions/setup-r-dependencies@v2
3036
with:
3137
extra-packages: any::pkgdown, local::.
3238
needs: website
33-
# Change the build directory to `_site`
39+
3440
- name: Build site
41+
run: pkgdown::build_site_github_pages(new_process = FALSE, install = FALSE)
3542
shell: Rscript {0}
36-
run: |
37-
pkgdown::build_site_github_pages(
38-
new_process = FALSE,
39-
install = FALSE,
40-
dest_dir = "_site"
41-
)
4243

43-
# Build the local R package and structure the CRAN repository
44-
- name: Build Wasm R packages
45-
uses: r-wasm/actions/build-rwasm@v1
46-
with:
47-
packages: "."
48-
repo-path: "_site"
49-
50-
# Upload an artifact that will work with GitHub Pages
51-
- name: Upload Pages artifact
44+
- name: Deploy to GitHub pages 🚀
5245
if: github.event_name != 'pull_request'
53-
uses: actions/upload-pages-artifact@v3
46+
uses: JamesIves/github-pages-[email protected]
5447
with:
55-
path: "_site"
56-
57-
deploy:
58-
if: github.event_name != 'pull_request'
59-
needs: [build-site]
60-
permissions:
61-
pages: write # to deploy to Pages
62-
id-token: write # to verify the deployment originates from an appropriate source
63-
environment:
64-
name: github-pages
65-
url: ${{ steps.deployment.outputs.page_url }}
66-
runs-on: ubuntu-latest
67-
steps:
68-
- name: Deploy to GitHub Pages
69-
id: deployment
70-
uses: actions/deploy-pages@v4
48+
clean: false
49+
branch: gh-pages
50+
folder: docs

DESCRIPTION

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,13 +13,17 @@ Description: Utility functions to help build R packages compiled for
1313
web hosting of data files and R packages.
1414
License: MIT + file LICENSE
1515
URL: https://r-wasm.github.io/rwasm/, https://github.com/r-wasm/rwasm
16+
BugReports: https://github.com/r-wasm/rwasm/issues
17+
Depends:
18+
R (>= 4.0)
1619
Imports:
1720
dplyr,
1821
fs,
1922
jsonlite,
23+
lifecycle,
2024
pak,
2125
pkgdepends,
22-
rlang,
26+
rlang (>= 1.1.0),
2327
utils,
2428
withr,
2529
zip
@@ -29,9 +33,9 @@ Suggests:
2933
VignetteBuilder:
3034
knitr
3135
Config/Needs/website: tidyverse/tidytemplate
36+
Config/usethis/last-upkeep: 2024-10-23
3237
Encoding: UTF-8
3338
Roxygen: list(markdown = TRUE)
3439
RoxygenNote: 7.3.2
3540
SystemRequirements: webR development installation
3641
(https://webr.r-wasm.org/)
37-
BugReports: https://github.com/r-wasm/rwasm/issues

LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
YEAR: 2023
1+
YEAR: 2024
22
COPYRIGHT HOLDER: rwasm authors

LICENSE.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# MIT License
22

3-
Copyright (c) 2023 rwasm authors
3+
Copyright (c) 2024 rwasm authors
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal

NAMESPACE

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,5 +17,6 @@ importFrom(dplyr,mutate)
1717
importFrom(dplyr,rename)
1818
importFrom(dplyr,rows_update)
1919
importFrom(dplyr,select)
20+
importFrom(lifecycle,deprecated)
2021
importFrom(pkgdepends,new_pkg_download_proposal)
2122
importFrom(rlang,.data)

0 commit comments

Comments
 (0)