Skip to content

Commit

Permalink
Fixes for release
Browse files Browse the repository at this point in the history
  • Loading branch information
gdemin committed Dec 11, 2018
1 parent 219d947 commit 6ec5696
Show file tree
Hide file tree
Showing 7 changed files with 18 additions and 18 deletions.
4 changes: 2 additions & 2 deletions DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
Package: expss
Type: Package
Title: Tables with Labels and Some Useful Functions from Spreadsheets and 'SPSS' Statistics
Version: 0.8.9
Date: 2018-12-11
Version: 0.8.10
Date: 2018-12-12
Maintainer: Gregory Demin <[email protected]>
Authors@R: person("Gregory", "Demin", email = "[email protected]",
role = c("aut", "cre"))
Expand Down
12 changes: 6 additions & 6 deletions NAMESPACE
Original file line number Diff line number Diff line change
Expand Up @@ -691,12 +691,12 @@ export(write_labels)
export(write_labels_spss)
export(xl_write)
if(getRversion() >= "3.6.0") {
S3method(knitr::knit_print, "etable")
S3method(knitr::knit_print, "with_caption")
S3method(repr::repr_html, "etable")
S3method(repr::repr_html, "with_caption")
S3method(repr::repr_text, "etable")
S3method(repr::repr_text, "with_caption")
S3method(knitr::knit_print, etable)
S3method(knitr::knit_print, with_caption)
S3method(repr::repr_html, etable)
S3method(repr::repr_html, with_caption)
S3method(repr::repr_text, etable)
S3method(repr::repr_text, with_caption)
} else {
export(knit_print.etable)
export(knit_print.with_caption)
Expand Down
2 changes: 1 addition & 1 deletion NEWS
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
0.8.9 (11.12.2018)
0.8.10 (12.12.2018)
================
* 'nest' - more consistent behaviour for 'a %nest% list(x, y, z)`
* 'split_off' now respects data.table and etable classes
Expand Down
12 changes: 6 additions & 6 deletions R/html_table.R
Original file line number Diff line number Diff line change
Expand Up @@ -310,12 +310,12 @@ matrix_to_cgroup = function(header){
}

#' @rawNamespace if(getRversion() >= "3.6.0") {
#' S3method(knitr::knit_print, "etable")
#' S3method(knitr::knit_print, "with_caption")
#' S3method(repr::repr_html, "etable")
#' S3method(repr::repr_html, "with_caption")
#' S3method(repr::repr_text, "etable")
#' S3method(repr::repr_text, "with_caption")
#' S3method(knitr::knit_print, etable)
#' S3method(knitr::knit_print, with_caption)
#' S3method(repr::repr_html, etable)
#' S3method(repr::repr_html, with_caption)
#' S3method(repr::repr_text, etable)
#' S3method(repr::repr_text, with_caption)
#' } else {
#' export(knit_print.etable)
#' export(knit_print.with_caption)
Expand Down
2 changes: 1 addition & 1 deletion R/if_val.R
Original file line number Diff line number Diff line change
Expand Up @@ -435,7 +435,7 @@ into_internal = function(values, variables_names, envir){
enclos = baseenv())
variables_names = flat_list(variables_names)
# strange condition because of missing(...) doesn't work
if(length(variables_names)==1 && is.character(variables_names[[1]]) && variables_names[[1]]==""){
if(length(variables_names)==1 && identical(variables_names[[1]], "")){
stopif(!is.list(values), "Unboxing can be applied only to list/data.frame.")
variables_names = names(values)
stopif(is.null(variables_names), "There are no names in 'x'.")
Expand Down
2 changes: 1 addition & 1 deletion R/significance_pvalue.R
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ compare_means = function(mean1, mean2, sd1, sd2, base1, base2, common_base = 0,
# ftp://public.dhe.ibm.com/software/analytics/spss/documentation/statistics/20.0/en/client/Manuals/IBM_SPSS_Statistics_Algorithms.pdf
# IBM SPSS Statistics Algorithms v20, p. 267
if_na(common_base) = 0
if(common_base>0 || var_equal){
if(any(common_base>0) || var_equal){
pooled_sd = sqrt((sd1*sd1*(base1 - 1) + sd2*sd2*(base2 - 1))/(base1 + base2 - 2))
t_statistic = (mean1 - mean2)/
pooled_sd/sqrt(1/base1 + 1/base2 - 2*common_base/base1/base2)
Expand Down
2 changes: 1 addition & 1 deletion tests/testthat/test_xl_write.R
Original file line number Diff line number Diff line change
Expand Up @@ -247,7 +247,7 @@ if(require(openxlsx, quietly = TRUE, warn.conflicts = FALSE)){
res = xl_write(res_list, wb, sh, row = 1, col = 1, gap = 2, rownames = TRUE)
# saveWorkbook(wb, "tables.xlsx", overwrite = TRUE)

context("custom format")
# context("custom format")
mtcars = apply_labels(mtcars,
mpg = "Miles/(US) gallon",
hp = "Gross horsepower"
Expand Down

0 comments on commit 6ec5696

Please sign in to comment.