-
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.
add website, update citation workflow
- Loading branch information
1 parent
213c648
commit 4363c18
Showing
86 changed files
with
3,382 additions
and
1,048 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
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,43 @@ | ||
name: Update Citation Files | ||
|
||
on: | ||
push: | ||
paths: | ||
- "DESCRIPTION" | ||
workflow_dispatch: | ||
|
||
jobs: | ||
update-citation: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Check out repository | ||
uses: actions/checkout@v4 | ||
|
||
- name: Set up R | ||
uses: r-lib/actions/setup-r@v2 | ||
|
||
- name: Install dependencies | ||
run: | | ||
Rscript -e 'install.packages(c("usethis", "cffr", "desc"))' | ||
- name: Update inst/CITATION | ||
run: | | ||
Rscript -e ' | ||
library(desc); | ||
d <- desc::desc_get(); | ||
citation_text <- sprintf("citHeader(\"To cite this package, use:\")\n\nbibentry(\n bibtype = \"Manual\",\n title = \"%s\",\n author = %s,\n year = \"%s\",\n note = \"R package version %s\",\n url = \"%s\"\n)", | ||
d["Title"], d["Authors@R"], format(Sys.Date(), "%Y"), d["Version"], d["URL"]); | ||
writeLines(citation_text, "inst/CITATION")' | ||
- name: Update CITATION.cff | ||
run: | | ||
Rscript -e 'cffr::cff_write()' | ||
- name: Commit and Push if Changed | ||
run: | | ||
git config --global user.name "github-actions" | ||
git config --global user.email "[email protected]" | ||
git add inst/CITATION CITATION.cff | ||
git commit -m "Auto-update citation files" || echo "No changes to commit" | ||
git push |
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,12 +1,12 @@ | ||
Package: ptetools | ||
Title: Panel Treatment Effects Tools | ||
Version: 0.0.1 | ||
Version: 1.0.0 | ||
Authors@R: | ||
person(given = "Brantly", | ||
family = "Callaway", | ||
role = c("aut", "cre"), | ||
email = "[email protected]") | ||
URL: https://github.com/bcallaway11/pte | ||
URL: https://github.com/bcallaway11/ptetools | ||
Description: This is fairly generic code for estimating treatment effects with panel data. This is useful code in my own work and will perhaps be useful to others. It builds heavily on the \code{did} package. In particular, it breaks into separate steps organizing the data, looping over groups and time periods, computing group-time average treatment effects, and aggregating group-time average treatment effects. Often, one is able to implement a new identification/estimation procedure by simply replacing the step on estimating group-time average treatment effects. See several different examples of this approach in the README. | ||
License: GPL-3 | ||
Encoding: UTF-8 | ||
|
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
Oops, something went wrong.