Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .Rbuildignore
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,4 @@
^_pkgdown\.yml$
^docs$
^pkgdown$
^cran-comments\.md$
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,4 @@
.RData
.Ruserdata
docs
cran-comments.md
3 changes: 1 addition & 2 deletions DESCRIPTION
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,8 @@ Package: causalpie
Title: Causal Pies for Sufficient Causes
Version: 0.1.0
Authors@R:
person("Malcolm", "Barrett", , "malcolmbarrett@gmail.com", role = c("aut", "cre"),
person("Malcolm", "Barrett", , "malcolmbarrett@gmail.com", role = c("aut", "cre", "cph"),
comment = c(ORCID = "0000-0003-0299-5825"))
Maintainer: Malcolm Barrett <malcolmbarrett@gmail.com>
Description: Causal pies are a way of visualizing the sufficient causes
framework. Sufficient causes are what must occur before some event
happens. The components of what causes the event may be in any or all
Expand Down
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
YEAR: 2018
YEAR: 2026
COPYRIGHT HOLDER: Malcolm Barrett
2 changes: 1 addition & 1 deletion LICENSE.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# MIT License

Copyright (c) 2018 Malcolm Barrett
Copyright (c) 2026 Malcolm Barrett

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
9 changes: 9 additions & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# causalpie 0.1.0

* Initial CRAN release.
* Added `causify()` and `sc()` for creating sufficient-component cause models.
* Added `causal_pie()` and `causal_pie_necessary()` for visualizing causal pies.
* Added `components()`, `necessary_causes()`, and `sufficient_causes()` for
querying cause data.
* Added `theme_causal_pie()` and `theme_causal_pie_grid()` for minimalist
plot themes.
1 change: 1 addition & 0 deletions R/causalpie.R
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@ causal_pie_necessary <- function(causes, text_col = "black") {
#' @inheritParams ggplot2::theme_minimal
#' @param ... additional arguments passed to `theme()`
#'
#' @return A [ggplot2::theme] object
#' @export
#'
#' @examples
Expand Down
10 changes: 8 additions & 2 deletions README.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,17 @@ knitr::opts_chunk$set(

## Installation

You can install causalpie from CRAN with:

``` r
install.packages("causalpie")
```

You can install the development version of `causalpie` from GitHub with:

``` r
# install.packages("devtools")
devtools::install_github("malcolmbarrett/causalpie")
# install.packages("pak")
pak::pak("r-causal/causalpie")
```

## Sufficient causes and causal pies
Expand Down
10 changes: 8 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,17 @@ in `ggplot2`.

## Installation

You can install causalpie from CRAN with:

``` r
install.packages("causalpie")
```

You can install the development version of `causalpie` from GitHub with:

``` r
# install.packages("devtools")
devtools::install_github("malcolmbarrett/causalpie")
# install.packages("pak")
pak::pak("r-causal/causalpie")
```

## Sufficient causes and causal pies
Expand Down
3 changes: 3 additions & 0 deletions man/themes.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading