From 446356d46d0906b694ea9897232489f19c4ee748 Mon Sep 17 00:00:00 2001 From: acoppock Date: Wed, 22 Aug 2018 11:59:08 -0600 Subject: [PATCH] global variables --- R/DesignLibrary.R | 9 ++++++++- R/block_cluster_two_arm_designer.R | 1 - man/DesignLibrary.Rd | 10 ++++++++++ 3 files changed, 18 insertions(+), 2 deletions(-) create mode 100644 man/DesignLibrary.Rd diff --git a/R/DesignLibrary.R b/R/DesignLibrary.R index 2c3c359a..2302112b 100644 --- a/R/DesignLibrary.R +++ b/R/DesignLibrary.R @@ -4,4 +4,11 @@ #' #' @docType package #' -#' @name DesignLibrary \ No newline at end of file +#' @name DesignLibrary +#' +#' + + +utils::globalVariables(c("N", "u_0", "Y_Z_1", "Y_Z_0", "blocks", "clusters")) + + diff --git a/R/block_cluster_two_arm_designer.R b/R/block_cluster_two_arm_designer.R index a0f5f056..a021865c 100644 --- a/R/block_cluster_two_arm_designer.R +++ b/R/block_cluster_two_arm_designer.R @@ -53,7 +53,6 @@ block_cluster_two_arm_designer <- function(N_blocks = 1, ate = 0, treatment_mean = control_mean + ate ){ - N <- u_0 <- Y_Z_1 <- Y_Z_0 <- blocks <- clusters <- NULL if(any(N_blocks < 1, N_clusters_in_block < 1, N_i_in_cluster < 1) || any(!rlang::is_integerish(N_blocks), !rlang::is_integerish(N_clusters_in_block), diff --git a/man/DesignLibrary.Rd b/man/DesignLibrary.Rd new file mode 100644 index 00000000..7cb04474 --- /dev/null +++ b/man/DesignLibrary.Rd @@ -0,0 +1,10 @@ +% Generated by roxygen2: do not edit by hand +% Please edit documentation in R/DesignLibrary.R +\docType{package} +\name{DesignLibrary} +\alias{DesignLibrary} +\alias{DesignLibrary-package} +\title{DesignLibrary: A package for creating designs} +\description{ +DesignLibrary: A package for creating designs +}