From 6892c70496bb2860756600a36af082cfe13d3545 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?I=C3=B1aki=20=C3=9Acar?= Date: Sun, 31 Jan 2021 12:28:16 +0100 Subject: [PATCH] fix indent --- inst/tinytest/test_global_rostream.R | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/inst/tinytest/test_global_rostream.R b/inst/tinytest/test_global_rostream.R index 4b44541e0..156be58fb 100644 --- a/inst/tinytest/test_global_rostream.R +++ b/inst/tinytest/test_global_rostream.R @@ -76,17 +76,17 @@ compileAttributes(pkg_path) # tests testRostream <- function() { - captureFun <- function(...) { - err <- capture.output( - out <- capture.output(..., type="output"), type="message") - c(out, err) - } - res <- all(ptrA() == ptrB()) - res <- c(res, all(grepl("^ ", captureFun(something())))) - toLeft() # change alignment globally - res <- c(res, all(grepl("^s", captureFun(something())))) - toRight() # restore - res + captureFun <- function(...) { + err <- capture.output( + out <- capture.output(..., type="output"), type="message") + c(out, err) + } + res <- all(ptrA() == ptrB()) + res <- c(res, all(grepl("^ ", captureFun(something())))) + toLeft() # change alignment globally + res <- c(res, all(grepl("^s", captureFun(something())))) + toRight() # restore + res } # test package