Skip to content

Commit 116fd00

Browse files
committed
fixes #37
1 parent eef71d5 commit 116fd00

File tree

10 files changed

+46
-8
lines changed

10 files changed

+46
-8
lines changed

DESCRIPTION

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ Imports:
2424
glue,
2525
LCMCR,
2626
logger,
27+
magrittr,
2728
purrr,
2829
Rdpack,
2930
readr,

NAMESPACE

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
# Generated by roxygen2: do not edit by hand
22

3+
export("%>%")
34
export(combine_estimates)
45
export(combine_replicates)
56
export(confirm_files)
@@ -18,4 +19,5 @@ importFrom(Rdpack,reprompt)
1819
importFrom(dplyr,"%>%")
1920
importFrom(dplyr,filter)
2021
importFrom(dplyr,if_else)
22+
importFrom(magrittr,"%>%")
2123
importFrom(tibble,tibble)

R/estimate_mse.R

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ get_valid_sources <- function(stratum_data_prepped, min_n = 1) {
8484
#' \insertRef{manriquevallier2016}{verdata}
8585
#'
8686
#' @examples
87-
#' \dontrun{
87+
#' \donttest{
8888
#' set.seed(19481210)
8989
#' library(dplyr)
9090
#'
@@ -163,7 +163,7 @@ run_lcmcr <- function(stratum_data_prepped, stratum_name, min_n = 1,
163163
#' @importFrom dplyr "%>%"
164164
#'
165165
#' @examples
166-
#' \dontrun{
166+
#' \donttest{
167167
#' in_A <- sample(c(0, 1), size = 100, replace = TRUE, prob = c(0.45, 0.65))
168168
#' in_B <- sample(c(0, 1), size = 100, replace = TRUE, prob = c(0.5, 0.5))
169169
#' in_C <- sample(c(0, 1), size = 100, replace = TRUE, prob = c(0.75, 0.25))
@@ -245,7 +245,7 @@ estimates_exist <- function(stratum_data_prepped, estimates_dir) {
245245
#' @importFrom dplyr "%>%"
246246
#'
247247
#' @examples
248-
#' \dontrun{
248+
#' \donttest{
249249
#' in_A <- sample(c(0, 1), size = 100, replace = TRUE, prob = c(0.45, 0.65))
250250
#' in_B <- sample(c(0, 1), size = 100, replace = TRUE, prob = c(0.5, 0.5))
251251
#' in_C <- sample(c(0, 1), size = 100, replace = TRUE, prob = c(0.75, 0.25))
@@ -341,7 +341,7 @@ lookup_estimates <- function(stratum_data_prepped, estimates_dir) {
341341
#' @importFrom dplyr "%>%"
342342
#'
343343
#' @examples
344-
#' \dontrun{
344+
#' \donttest{
345345
#' set.seed(19481210)
346346
#' in_A <- sample(c(0, 1), size = 100, replace = TRUE, prob = c(0.45, 0.65))
347347
#' in_B <- sample(c(0, 1), size = 100, replace = TRUE, prob = c(0.5, 0.5))

R/utils-pipe.R

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
#' Pipe operator
2+
#'
3+
#' See \code{magrittr::\link[magrittr:pipe]{\%>\%}} for details.
4+
#'
5+
#' @name %>%
6+
#' @rdname pipe
7+
#' @keywords internal
8+
#' @export
9+
#' @importFrom magrittr %>%
10+
#' @usage lhs \%>\% rhs
11+
#' @param lhs A value or the magrittr placeholder.
12+
#' @param rhs A function call using the magrittr semantics.
13+
#' @return The result of calling `rhs(lhs)`.
14+
NULL

inst/WORDLIST

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -350,3 +350,4 @@ BibTex
350350
citar
351351
Entrada
352352
et
353+
magrittr

man/estimates_exist.Rd

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

man/lookup_estimates.Rd

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

man/mse.Rd

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

man/pipe.Rd

Lines changed: 20 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

man/run_lcmcr.Rd

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)