Skip to content

Commit

Permalink
fix!: .data argument renamed to data
Browse files Browse the repository at this point in the history
This helps separate from special .data argument of tidyverse functions

Solves issue #118
  • Loading branch information
selkamand committed Jul 13, 2024
1 parent 2c30611 commit 715eb01
Show file tree
Hide file tree
Showing 10 changed files with 110 additions and 111 deletions.
170 changes: 85 additions & 85 deletions R/oncoplot.R

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion inst/testdata/cleanup_simulated_data.R
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ df_clinical_valid <- read.csv(system.file(package = "ggoncoplot", "testdata/simu
df_pathway_valid <- read.csv(system.file(package = "ggoncoplot", "testdata/simulated_mutations.pathways.valid.tsv"), sep = "\t", header = TRUE, check.names = FALSE)

ggoncoplot(
.data = df_mutations_valid, col_genes = "Genes", col_samples = "Samples", col_mutation_type = "VariantType",
data = df_mutations_valid, col_genes = "Genes", col_samples = "Samples", col_mutation_type = "VariantType",
metadata = df_clinical_valid, pathway = df_pathway_valid,
plotsize_metadata_rel_height = 40, interactive_svg_height = 10
)
6 changes: 3 additions & 3 deletions man/get_nonmutated_tiles.Rd

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

13 changes: 6 additions & 7 deletions man/ggoncoplot.Rd

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

8 changes: 4 additions & 4 deletions man/ggoncoplot_gene_barplot.Rd

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

4 changes: 2 additions & 2 deletions man/ggoncoplot_plot.Rd

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

6 changes: 3 additions & 3 deletions man/ggoncoplot_prep_df.Rd

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

4 changes: 2 additions & 2 deletions man/identify_topn_genes.Rd

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

4 changes: 2 additions & 2 deletions man/unify_samples.Rd

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

4 changes: 2 additions & 2 deletions tests/testthat/_snaps/ggoncoplot_simulated_data.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
ggoncoplot(df_mutations_na_samples, col_genes = "Genes", col_samples = "Samples")
Condition
Error in `ggoncoplot()`:
! '.data[[col_samples]]' must have no missing values! Found 1
! 'data[[col_samples]]' must have no missing values! Found 1

---

Expand All @@ -20,7 +20,7 @@
ggoncoplot(df_mutations_na_genes, col_genes = "Genes", col_samples = "Samples")
Condition
Error in `ggoncoplot()`:
! '.data[[col_genes]]' must have no missing values! Found 1
! 'data[[col_genes]]' must have no missing values! Found 1

---

Expand Down

0 comments on commit 715eb01

Please sign in to comment.