Skip to content

Commit

Permalink
Preparing gateR 0.1.1 for submission
Browse files Browse the repository at this point in the history
gateR 0.1.0 did not pass the incoming CRAN checks automatically

Flavor: r-devel-windows-ix86+x86_64
Check: Overall checktime, Result: NOTE
  Overall checktime 16 min > 10 min

Flavor: r-devel-linux-x86_64-debian-gcc
Check: CRAN incoming feasibility, Result: NOTE
  Maintainer: 'Ian D. Buller <[email protected]>'

  New submission

  Possibly mis-spelled words in DESCRIPTION:
    Bithell (38:63, 40:24)
    Cytometry (3:57)
    al (37:57)
    et (37:54)
    immunologically (32:19)
------

The mis-spelled words can be safely ignored. However, reduced the checktime by streamlining the examples and testthat

Changed example in gating() by changing from \donttest{} to if (interactive()) {}

Streamlined the number of "[it] works" tests in testthat for gating(), lotrrs(), and rrs()

Updated cran-comments.md for CRAN resubmission

Added CRAN-RELEASE to .Rbuildignore
  • Loading branch information
Ian Buller, PhD, MA committed Oct 29, 2020
1 parent 3dd10f8 commit daf194c
Show file tree
Hide file tree
Showing 11 changed files with 97 additions and 85 deletions.
1 change: 1 addition & 0 deletions .Rbuildignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,4 @@
^cran-comments\.md$
^vignette\.Rmd$
^dev$
^CRAN-RELEASE$
4 changes: 2 additions & 2 deletions DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
Package: gateR
Type: Package
Title: Statistical Gating Application for Flow and Mass Cytometry Analysis via Spatial Kernel Density Estimation
Version: 0.1.0
Date: 2020-10-28
Version: 0.1.1
Date: 2020-10-29
Authors@R:
c(person(given = "Ian D.",
family = "Buller",
Expand Down
4 changes: 2 additions & 2 deletions R/gating.R
Original file line number Diff line number Diff line change
Expand Up @@ -55,15 +55,15 @@
#' @export
#'
#' @examples
#' \donttest{
#' if (interactive()) {
#' # Use 'extdata' from the {flowWorkspaceData} package
#' flowDataPath <- system.file("extdata", package = "flowWorkspaceData")
#' fcsFiles <- list.files(pattern = "CytoTrol", flowDataPath, full = TRUE)
#' ncfs <- ncdfFlow::read.ncdfFlowSet(fcsFiles)
#' fr1 <- ncfs[[1]]
#' fr2 <- ncfs[[2]]
#'
#' ## Comparison of two samples (single condition) "g1"
#' # Comparison of two samples (single condition) "g1"
#' ## Two gates (four markers) "CD4", "CD38", "CD8", and "CD3"
#' ## Log10 Transformation for both markers
#' ## Remove cells with NA and Inf values
Expand Down
2 changes: 1 addition & 1 deletion R/lotrrs.R
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@
#' fr1 <- ncfs[[1]]
#' fr2 <- ncfs[[2]]
#'
#' ## Comparison of two samples at two time points (two conditions) "g1" and "g2"
#' # Comparison of two samples at two time points (two conditions) "g1" and "g2"
#' ## (Create a random binary variable for "g2")
#' ## One gate (two markers) "CD4", "CD38"
#' ## Log10 Transformation for both markers
Expand Down
2 changes: 1 addition & 1 deletion R/rrs.R
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@
#' fr1 <- ncfs[[1]]
#' fr2 <- ncfs[[2]]
#'
#' ## Comparison of two samples (single condition) "g1"
#' # Comparison of two samples (single condition) "g1"
#' ## One gate (two markers) "CD4", "CD38"
#' ## Log10 Transformation for both markers
#' ## Remove cells with NA and Inf values
Expand Down
14 changes: 13 additions & 1 deletion cran-comments.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
## This is a new release
## This is the first resubmission

* Actions taken regarding feedback from CRAN teams' auto-check service
* Reduced overall checktime by changing example in gating() by changing from \donttest{} to if (interactive()) {}
* Reduced overall checktime by streamlining the number of "[it] works" tests in testthat for gating(), lotrrs(), and rrs()
* Note about "Possibly mis-spelled words in DESCRIPTION" can be safely ignored

## Test environments
* local OS X install, R 3.6.3
Expand All @@ -16,8 +21,15 @@ There was 1 NOTE:
* Cytometry (3:57)
* al (37:57)
* et (37:54)
* immunologically (32:19)

## R CMD check results
0 errors | 0 warnings | 0 notes

* Duration
* local OS X install, R 3.6.3: 99 seconds
* win-builder, devel: 584 seconds (under 10 minutes)
* win-builder, oldrelease: 530 seconds
* win-builder, release: 620 seconds

## Submitted by Maintainer
2 changes: 1 addition & 1 deletion dev/build.R
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ use_test()
test()

# NAMESPACE
document()
devtools::document()
install()

# Check
Expand Down
2 changes: 1 addition & 1 deletion man/gating.Rd

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

110 changes: 55 additions & 55 deletions tests/testthat/test-gating.R
Original file line number Diff line number Diff line change
Expand Up @@ -80,13 +80,13 @@ test_that("gating throws error with invalid arguments", {
p_correct = "none")
)

expect_error(
gating(dat = fubar,
vars = c("log10_CD4", "log10_CD38",
"log10_CD8", "log10_CD3"),
n_condition = 2,
p_correct = "none")
)
# expect_error(
# gating(dat = fubar,
# vars = c("log10_CD4", "log10_CD38",
# "log10_CD8", "log10_CD3"),
# n_condition = 2,
# p_correct = "none")
# )

# Non-binary third feature
expect_error(
Expand Down Expand Up @@ -167,53 +167,53 @@ test_that("gating works", {
p_correct = "none")
)

expect_named(
gating(dat = obs_dat,
vars = c("log10_CD4", "log10_CD38",
"log10_CD8", "log10_CD3"),
n_condition = 2,
p_correct = "none")
)

# expect_named(
# gating(dat = obs_dat,
# vars = c("log10_CD4", "log10_CD38"),
# n_condition = 1,
# alpha = 0.1,
# p_correct = "none")
# )
#
# expect_named(
# gating(dat = obs_dat,
# vars = c("log10_CD4", "log10_CD38"),
# n_condition = 1,
# alpha = 0.01,
# p_correct = "none")
# )
#
# expect_named(
# gating(dat = obs_dat,
# vars = c("log10_CD4", "log10_CD38"),
# n_condition = 1,
# numerator = FALSE,
# p_correct = "none")
# )
# #
# expect_named(
# gating(dat = obs_dat,
# vars = c("log10_CD4", "log10_CD38"),
# n_condition = 2,
# doplot = TRUE,
# rcols = c("green", "yellow", "purple"),
# p_correct = "none")
# )
#
# expect_named(
# gating(dat = obs_dat,
# vars = c("log10_CD4", "log10_CD38"),
# n_condition = 1,
# resolution = 40,
# p_correct = "correlated")
# )
# expect_named(
# gating(dat = obs_dat,
# vars = c("log10_CD4", "log10_CD38",
# "log10_CD8", "log10_CD3"),
# n_condition = 2,
# p_correct = "none")
# )
#
# expect_named(
# gating(dat = obs_dat,
# vars = c("log10_CD4", "log10_CD38"),
# n_condition = 1,
# alpha = 0.1,
# p_correct = "none")
# )
#
# expect_named(
# gating(dat = obs_dat,
# vars = c("log10_CD4", "log10_CD38"),
# n_condition = 1,
# alpha = 0.01,
# p_correct = "none")
# )
#
# expect_named(
# gating(dat = obs_dat,
# vars = c("log10_CD4", "log10_CD38"),
# n_condition = 1,
# numerator = FALSE,
# p_correct = "none")
# )
#
# expect_named(
# gating(dat = obs_dat,
# vars = c("log10_CD4", "log10_CD38"),
# n_condition = 2,
# doplot = TRUE,
# rcols = c("green", "yellow", "purple"),
# p_correct = "none")
# )
#
# expect_named(
# gating(dat = obs_dat,
# vars = c("log10_CD4", "log10_CD38"),
# n_condition = 1,
# resolution = 40,
# p_correct = "correlated")
# )
}
)
21 changes: 10 additions & 11 deletions tests/testthat/test-lotrrs.R
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,6 @@ test_that("lotrrs throws error with invalid arguments", {
p_correct = "none")
)


# Incorrectly specified alpha
expect_error(
lotrrs(dat = obs_dat,
Expand All @@ -89,22 +88,22 @@ test_that("lotrrs throws error with invalid arguments", {

test_that("lotrrs works", {

expect_named(
lotrrs(dat = obs_dat,
p_correct = "none")
)
# expect_named(
# lotrrs(dat = obs_dat,
# p_correct = "none")
# )

expect_named(
lotrrs(dat = obs_dat,
p_correct = "uncorrelated")
)

expect_named(
lotrrs(dat = obs_dat,
resolution = 40,
p_correct = "correlated")
)

# expect_named(
# lotrrs(dat = obs_dat,
# resolution = 40,
# p_correct = "correlated")
# )
#
# expect_named(
# lotrrs(dat = obs_dat,
# alpha = 0.1,
Expand Down
20 changes: 10 additions & 10 deletions tests/testthat/test-rrs.R
Original file line number Diff line number Diff line change
Expand Up @@ -80,22 +80,22 @@ test_that("rrs throws error with invalid arguments", {

test_that("rrs works", {

expect_named(
rrs(dat = obs_dat,
p_correct = "none")
)
# expect_named(
# rrs(dat = obs_dat,
# p_correct = "none")
# )

expect_named(
rrs(dat = obs_dat,
p_correct = "uncorrelated")
)

expect_named(
rrs(dat = obs_dat,
resolution = 40,
p_correct = "correlated")
)

# expect_named(
# rrs(dat = obs_dat,
# resolution = 40,
# p_correct = "correlated")
# )
#
# expect_named(
# rrs(dat = obs_dat,
# alpha = 0.1,
Expand Down

0 comments on commit daf194c

Please sign in to comment.