Skip to content

Commit

Permalink
programmatically set package version in readme
Browse files Browse the repository at this point in the history
  • Loading branch information
tsostarics committed Sep 17, 2024
1 parent c41ddc9 commit a71dd88
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
4 changes: 2 additions & 2 deletions README.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ devtools::install_github("tsostarics/contrastable", build_vignettes = TRUE)
To cite contrastable in publications, please use

Sostarics, T. (2024). contrastable: Contrast Coding Utilities in R.
R package version 0.3.3.
R package version `r packageVersion("contrastable")`.

A BibTeX entry for LaTeX users is

Expand All @@ -54,7 +54,7 @@ A BibTeX entry for LaTeX users is
author = {Thomas Sostarics},
title = {{contrastable}: Contrast Coding Utilities in {R}},
year = {2024},
note = {R package version 0.3.3},
note = {R package version `r packageVersion("contrastable")`},
url = {https://github.com/tsostarics/contrastable},
doi = {10.5281/zenodo.11869427},
}
Expand Down
5 changes: 2 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,15 +33,15 @@ devtools::install_github("tsostarics/contrastable", build_vignettes = TRUE)
To cite contrastable in publications, please use

Sostarics, T. (2024). contrastable: Contrast Coding Utilities in R. R
package version 0.3.3.
package version 0.3.4.

A BibTeX entry for LaTeX users is

@Manual{,
author = {Thomas Sostarics},
title = {{contrastable}: Contrast Coding Utilities in {R}},
year = {2024},
note = {R package version 0.3.3},
note = {R package version 0.3.4},
url = {https://github.com/tsostarics/contrastable},
doi = {10.5281/zenodo.11869427},
}
Expand Down Expand Up @@ -113,7 +113,6 @@ glimpse_contrasts(my_data,
add_namespace = TRUE,
show_all_factors = TRUE) |>
knitr::kable()
#> Expect contr.treatment or contr.poly for unset factors: gear
```

| factor | n | level_names | scheme | reference | intercept |
Expand Down

0 comments on commit a71dd88

Please sign in to comment.