Skip to content

Commit

Permalink
Removed examples
Browse files Browse the repository at this point in the history
  • Loading branch information
alexsanjoseph committed Mar 12, 2022
1 parent 5aa800a commit 0a46e92
Show file tree
Hide file tree
Showing 5 changed files with 1 addition and 35 deletions.
8 changes: 0 additions & 8 deletions R/fnsComparison.R
Original file line number Diff line number Diff line change
Expand Up @@ -31,14 +31,6 @@ utils::globalVariables(c("is_changed", "newold_type"))
#' @importFrom rlang .data
#' @importFrom tibble rownames_to_column
#' @export
#' @examples
#' old_df = data.frame(var1 = c("A", "B", "C"),
#' val1 = c(1, 2, 3))
#' new_df = data.frame(var1 = c("A", "B", "C"),
#' val1 = c(1, 2, 4))
#' ctable = compare_df(new_df, old_df, c("var1"))
#' print(ctable$comparison_df)
#' \dontrun{ctable$html_output}
compare_df <- function(df_new, df_old, group_col, exclude = NULL, tolerance = 0, tolerance_type = 'ratio',
stop_on_error = TRUE, keep_unchanged_rows = FALSE, keep_unchanged_cols = TRUE,
change_markers = c("+", "-", "="),
Expand Down
8 changes: 0 additions & 8 deletions R/fnsOutputs.R
Original file line number Diff line number Diff line change
Expand Up @@ -162,14 +162,6 @@ create_wide_output <- function(comparison_output, suffix = c("_new", "_old")){
#'
#' @param comparison_output output from the comparisonDF compare function
#' @export
#' @examples
#' old_df = data.frame(var1 = c("A", "B", "C"),
#' val1 = c(1, 2, 3))
#' new_df = data.frame(var1 = c("A", "B", "C"),
#' val1 = c(1, 2, 4))
#' ctable = compare_df(new_df, old_df, c("var1"))
#' # Not Run::
#' # view_html(ctable)
view_html <- function(comparison_output){
temp_dir = tempdir()
temp_file <- paste0(temp_dir, "/temp.html")
Expand Down
2 changes: 1 addition & 1 deletion cran-comments.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ This is a resubmission of new version. In this version I have:

* Changed deprecated `_gather` to `pivot_longer` (thanks to `olivroy`!)
* Fixed a bug where `compare_df` would mutate the global data to data.table

* Removed all examples from the code because CRAN server can't handle it

## Test environments

Expand Down
9 changes: 0 additions & 9 deletions man/compare_df.Rd

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

9 changes: 0 additions & 9 deletions man/view_html.Rd

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

0 comments on commit 0a46e92

Please sign in to comment.