Skip to content

Commit

Permalink
Merge pull request #60 from IndrajeetPatil/dev_070
Browse files Browse the repository at this point in the history
cran resubmission 0.7
  • Loading branch information
IndrajeetPatil authored Jan 19, 2021
2 parents d6a731d + f222a45 commit 030ca24
Show file tree
Hide file tree
Showing 34 changed files with 231 additions and 246 deletions.
2 changes: 1 addition & 1 deletion API
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

## Exported functions

bf_expr_template(top.text, estimate.df, prior.type = NULL, estimate.type = NULL, centrality = "median", conf.level = 0.95, conf.method = "HDI", k = 2L, ...)
bf_expr_template(top.text, stats.df, prior.type = NULL, estimate.type = NULL, centrality = "median", conf.level = 0.95, conf.method = "HDI", k = 2L, ...)
bf_extractor(bf.object, conf.level = 0.95, centrality = "median", conf.method = "hdi", k = 2L, top.text = NULL, output = "dataframe", ...)
expr_contingency_tab(data, x, y = NULL, paired = FALSE, type = "parametric", counts = NULL, ratio = NULL, k = 2L, conf.level = 0.95, sampling.plan = "indepMulti", fixed.margin = "rows", prior.concentration = 1, top.text = NULL, output = "expression", ...)
expr_corr_test(data, x, y, type = "parametric", k = 2L, conf.level = 0.95, beta = 0.1, bf.prior = 0.707, top.text = NULL, output = "expression", ...)
Expand Down
4 changes: 2 additions & 2 deletions CRAN-RELEASE
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
This package was submitted to CRAN on 2021-01-18.
Once it is accepted, delete this file and tag the release (commit 9e212f9).
This package was submitted to CRAN on 2021-01-19.
Once it is accepted, delete this file and tag the release (commit d6a731d).
95 changes: 0 additions & 95 deletions R/bf_expr_template.R

This file was deleted.

4 changes: 2 additions & 2 deletions R/contingency_tabs.R
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#' @title Expression and dataframe for contingency table analysis
#' @name expr_contingency_tab
#' @title Making expression for contingency table analysis
#'
#' @return Expression or a dataframe for contingency analysis (Pearson's
#' @return Expression or a dataframe for contingency table analysis (Pearson's
#' chi-square test for independence for between-subjects design or McNemar's
#' test for within-subjects design) or goodness of fit test for a single
#' categorical variable.
Expand Down
2 changes: 1 addition & 1 deletion R/corr_test.R
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#' @title Making expression for correlation analysis
#' @title Expression and dataframe for correlation analysis
#' @name expr_corr_test
#'
#' @return Expression containing results from correlation test with confidence
Expand Down
1 change: 0 additions & 1 deletion R/global_vars.R
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ utils::globalVariables(
"effsize",
"effectsize",
"estimate",
"int_df",
"rowid",
"statistic",
"std.error",
Expand Down
5 changes: 1 addition & 4 deletions R/helpers_bf_tests.R
Original file line number Diff line number Diff line change
Expand Up @@ -90,9 +90,6 @@ bf_extractor <- function(bf.object,

# combine everything
df %<>% dplyr::bind_cols(., df_r2)

# for expression
c(centrality, conf.method) %<-% c("median", "hdi")
}

# ------------------------ contingency tabs ------------------------------
Expand All @@ -106,7 +103,7 @@ bf_extractor <- function(bf.object,
bf_expr_01 <-
bf_expr_template(
top.text = top.text,
estimate.df = df,
stats.df = df,
centrality = centrality,
conf.level = conf.level,
conf.method = conf.method,
Expand Down
Loading

6 comments on commit 030ca24

@lintr-bot
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

R/oneway_anova.R:140:1: style: functions should have cyclomatic complexity of less than 15, this has 19.

expr_oneway_anova <- function(data,
^

@lintr-bot
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

R/oneway_anova.R:140:1: style: functions should have cyclomatic complexity of less than 15, this has 19.

expr_oneway_anova <- function(data,
^

@lintr-bot
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

R/oneway_anova.R:140:1: style: functions should have cyclomatic complexity of less than 15, this has 19.

expr_oneway_anova <- function(data,
^

@lintr-bot
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

R/oneway_anova.R:140:1: style: functions should have cyclomatic complexity of less than 15, this has 19.

expr_oneway_anova <- function(data,
^

@lintr-bot
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

R/oneway_anova.R:140:1: style: functions should have cyclomatic complexity of less than 15, this has 19.

expr_oneway_anova <- function(data,
^

@lintr-bot
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

R/oneway_anova.R:140:1: style: functions should have cyclomatic complexity of less than 15, this has 19.

expr_oneway_anova <- function(data,
^

Please sign in to comment.