-
Notifications
You must be signed in to change notification settings - Fork 0
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
0 parents
commit 2261b2f
Showing
102 changed files
with
4,103 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
^pacta\.data\.preparation\.Rproj$ | ||
^\.Rproj\.user$ | ||
^data-raw$ | ||
^LICENSE\.md$ | ||
^\.DS_Store$ | ||
^\.github$ | ||
^README\.Rmd$ | ||
^doc$ | ||
^Meta$ | ||
^_pkgdown\.yml$ |
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 @@ | ||
*.html |
Validating CODEOWNERS rules …
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,5 @@ | ||
# These owners will be the default owners for everything in | ||
# the repo. Unless a later match takes precedence, | ||
# @cjyetman will be requested for review when someone opens | ||
# a pull request. | ||
* @cjyetman |
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,6 @@ | ||
version: 2 | ||
updates: | ||
- package-ecosystem: "github-actions" | ||
directory: "/" | ||
schedule: | ||
interval: "weekly" |
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,52 @@ | ||
# 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: | ||
branches: [main, master] | ||
pull_request: | ||
branches: [main, master] | ||
schedule: | ||
- cron: '0 5 * * 1' | ||
|
||
name: R-CMD-check | ||
|
||
jobs: | ||
R-CMD-check: | ||
runs-on: ${{ matrix.config.os }} | ||
timeout-minutes: 25 | ||
name: ${{ matrix.config.os }} (${{ matrix.config.r }}) | ||
|
||
strategy: | ||
fail-fast: false | ||
matrix: | ||
config: | ||
- {os: macOS-latest, r: 'release'} | ||
- {os: windows-latest, r: 'release'} | ||
- {os: ubuntu-latest, r: 'devel', http-user-agent: 'release'} | ||
- {os: ubuntu-latest, r: 'release'} | ||
- {os: ubuntu-latest, r: 'oldrel-1'} | ||
|
||
env: | ||
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }} | ||
R_KEEP_PKG_SOURCE: yes | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- uses: r-lib/actions/setup-pandoc@v2 | ||
|
||
- uses: r-lib/actions/setup-r@v2 | ||
with: | ||
r-version: ${{ matrix.config.r }} | ||
http-user-agent: ${{ matrix.config.http-user-agent }} | ||
use-public-rspm: true | ||
|
||
- uses: r-lib/actions/setup-r-dependencies@v2 | ||
with: | ||
extra-packages: any::rcmdcheck | ||
needs: check | ||
|
||
- uses: r-lib/actions/check-r-package@v2 | ||
with: | ||
upload-snapshots: true | ||
error-on: '"note"' |
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,26 @@ | ||
--- | ||
# This example file will enable actions that trigger on created or modified GitHub issues. | ||
# | ||
# Note the @main in `uses:` on the last line. This will call the latest version of the workflow from the `main` branch in the RMI-PACTA/actions repo. | ||
# You can also specify a tag from that repo, or a commit SHA to pin action versions. | ||
on: | ||
issues: | ||
types: | ||
[opened, edited, deleted, closed, reopened, labeled, unlabeled, assigned] | ||
issue_comment: | ||
types: [created, edited, deleted] | ||
|
||
name: GH issues | ||
|
||
permissions: | ||
issues: write | ||
pull-requests: write | ||
|
||
jobs: | ||
issues: | ||
name: Run issues workflows | ||
uses: RMI-PACTA/actions/.github/workflows/issues.yml@main | ||
with: | ||
ado_area_path: "2DegreesInvesting\\Repositories that cjyetman maintains" | ||
secrets: | ||
ADO_TOKEN: ${{ secrets.ADO_PERSONAL_ACCESS_TOKEN }} |
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,30 @@ | ||
name: Adds all new issues and PRs to the Transition Monitor project | ||
|
||
on: | ||
issues: | ||
types: | ||
- opened | ||
- transferred | ||
pull_request: | ||
branches: [main] | ||
types: | ||
- opened | ||
|
||
jobs: | ||
add-to-tm-project: | ||
name: Add issue/PR to Transition Monitor project | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/add-to-project@v1.0.1 | ||
with: | ||
project-url: https://github.com/orgs/RMI-PACTA/projects/8 | ||
github-token: ${{ secrets.PAT_ADD_ISSUES_TO_PROJECT }} | ||
|
||
add-to-maintainer-project: | ||
name: Add issue/PR to @cjyetman's maintainer project | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/add-to-project@v1.0.1 | ||
with: | ||
project-url: https://github.com/orgs/RMI-PACTA/projects/13 | ||
github-token: ${{ secrets.PAT_ADD_ISSUES_TO_PROJECT }} |
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,46 @@ | ||
# 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: | ||
branches: [main] | ||
pull_request: | ||
branches: [main] | ||
release: | ||
types: [published] | ||
workflow_dispatch: | ||
|
||
name: pkgdown | ||
|
||
jobs: | ||
pkgdown: | ||
runs-on: ubuntu-latest | ||
# Only restrict concurrency for non-PR jobs | ||
concurrency: | ||
group: pkgdown-${{ github.event_name != 'pull_request' || github.run_id }} | ||
env: | ||
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }} | ||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- uses: r-lib/actions/setup-pandoc@v2 | ||
|
||
- uses: r-lib/actions/setup-r@v2 | ||
with: | ||
use-public-rspm: true | ||
|
||
- uses: r-lib/actions/setup-r-dependencies@v2 | ||
with: | ||
extra-packages: any::pkgdown, local::. | ||
needs: website | ||
|
||
- name: Build site | ||
run: pkgdown::build_site_github_pages(new_process = FALSE, install = FALSE) | ||
shell: Rscript {0} | ||
|
||
- name: Deploy to GitHub pages 🚀 | ||
if: github.event_name != 'pull_request' | ||
uses: JamesIves/github-pages-deploy-action@v4.5.0 | ||
with: | ||
clean: false | ||
branch: gh-pages | ||
folder: docs |
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,23 @@ | ||
name: check file encodings in PR | ||
on: [pull_request] | ||
jobs: | ||
file-encoding: | ||
name: file encoding check | ||
runs-on: ubuntu-latest | ||
timeout-minutes: 5 | ||
|
||
steps: | ||
- name: run the checkout action | ||
uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 0 | ||
- name: list all changed files | ||
run: | | ||
files=$(git diff --name-only origin/$GITHUB_BASE_REF...${{ github.sha }}) | ||
IFS=$'\n'; files=($files); unset IFS; # split the string into an array | ||
file --mime "${files[@]}" | ||
- name: list all changed files with the wrong encoding | ||
run: | | ||
files=$(git diff --name-only origin/$GITHUB_BASE_REF...${{ github.sha }}) | ||
IFS=$'\n'; files=($files); unset IFS; # split the string into an array | ||
! file --mime "${files[@]}" | grep -v "charset=utf-8\|charset=us-ascii\|charset=binary\| (No such file or directory)$" |
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,64 @@ | ||
### R ### | ||
# History files | ||
.Rhistory | ||
.Rapp.history | ||
|
||
# Session Data files | ||
.RData | ||
.RDataTmp | ||
|
||
# User-specific files | ||
.Ruserdata | ||
|
||
# Example code in package build process | ||
*-Ex.R | ||
|
||
# Output files from R CMD build | ||
/*.tar.gz | ||
|
||
# Output files from R CMD check | ||
/*.Rcheck/ | ||
|
||
# RStudio files | ||
.Rproj.user/ | ||
|
||
# produced vignettes | ||
vignettes/*.html | ||
vignettes/*.pdf | ||
|
||
# OAuth2 token, see https://github.com/hadley/httr/releases/tag/v0.3 | ||
.httr-oauth | ||
|
||
# knitr and R markdown default cache directories | ||
*_cache/ | ||
/cache/ | ||
|
||
# Temporary files created by R markdown | ||
*.utf8.md | ||
*.knit.md | ||
|
||
# R Environment Variables | ||
.Renviron | ||
|
||
# pkgdown site | ||
docs/ | ||
|
||
# translation temp files | ||
po/*~ | ||
|
||
# RStudio Connect folder | ||
rsconnect/ | ||
|
||
### R.Bookdown Stack ### | ||
# R package: bookdown caching files | ||
/*_files/ | ||
|
||
# End of https://www.toptal.com/developers/gitignore/api/r | ||
|
||
# macOS | ||
.DS_Store | ||
|
||
# stuff added automatically for vignette knitting | ||
inst/doc | ||
/doc/ | ||
/Meta/ |
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,65 @@ | ||
Package: pacta.data.preparation | ||
Title: Prepare Data for PACTA for Investors | ||
Version: 0.1.0.9003 | ||
Authors@R: | ||
c(person(given = "CJ", | ||
family = "Yetman", | ||
role = c("aut", "cre", "ctr"), | ||
email = "cj@cjyetman.com", | ||
comment = c(ORCID = "0000-0001-5099-9500")), | ||
person(given = "Jackson", | ||
family = "Hoffart", | ||
email = "jackson.hoffart@gmail.com", | ||
role = c("aut", "ctr"), | ||
comment = c(ORCID = "0000-0002-8600-5042")), | ||
person(given = "Jacob", | ||
family = "Kastl", | ||
role = c("aut", "ctr"), | ||
email = "jacob.kastl@gmail.com"), | ||
person(given = "Alex", | ||
family = "Axthelm", | ||
role = c("aut", "ctr"), | ||
email = "aaxthelm@rmi.org", | ||
comment = c(ORCID = "0000-0001-8579-8565")), | ||
person(given = "RMI", | ||
role = c("cph", "fnd"), | ||
email = "PACTA4investors@rmi.org")) | ||
Description: This package provides tools to prepare input datasets to be run in | ||
the PACTA_analysis tool. | ||
License: MIT + file LICENSE | ||
Encoding: UTF-8 | ||
Language: en-US | ||
Roxygen: list(markdown = TRUE) | ||
RoxygenNote: 7.3.1 | ||
Imports: | ||
cli (>= 3.5.0), | ||
countrycode, | ||
data.table, | ||
devtools, | ||
dplyr (>= 1.1.0), | ||
dtplyr, | ||
jsonlite, | ||
lubridate, | ||
rlang, | ||
stats, | ||
stringr, | ||
tidyr, | ||
tidyselect (>= 1.2.0), | ||
withr | ||
Depends: | ||
R (>= 3.4.0) | ||
LazyData: true | ||
Suggests: | ||
here, | ||
knitr, | ||
pkgdown, | ||
readr, | ||
readxl, | ||
rmarkdown, | ||
rstudioapi, | ||
testthat (>= 3.0.0) | ||
Config/testthat/edition: 3 | ||
Config/Needs/website: rmi-pacta/pacta.pkgdown.rmitemplate | ||
URL: https://github.com/RMI-PACTA/pacta.data.preparation | ||
BugReports: https://github.com/RMI-PACTA/pacta.data.preparation/issues | ||
VignetteBuilder: knitr |
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,2 @@ | ||
YEAR: 2022 | ||
COPYRIGHT HOLDER: pacta.data.preparation authors |
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,21 @@ | ||
# MIT License | ||
|
||
Copyright (c) 2022 pacta.data.preparation 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 | ||
in the Software without restriction, including without limitation the rights | ||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | ||
copies of the Software, and to permit persons to whom the Software is | ||
furnished to do so, subject to the following conditions: | ||
|
||
The above copyright notice and this permission notice shall be included in all | ||
copies or substantial portions of the Software. | ||
|
||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | ||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | ||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | ||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE | ||
SOFTWARE. |
Oops, something went wrong.