@@ -463,7 +463,8 @@ testthat::test_that("comments fall into proper calls", {
463463 q <- qenv() | > eval_code(code )
464464 testthat :: expect_identical(
465465 get_code(q ),
466- c(" # initial comment\n a <- 1" ,
466+ c(
467+ " # initial comment\n a <- 1" ,
467468 " b <- 2 # inline comment" ,
468469 " c <- 3\n # inbetween comment" ,
469470 " d <- 4\n # finishing comment"
@@ -488,7 +489,8 @@ testthat::test_that("comments get pasted when they fall into calls", {
488489 q <- qenv() | > eval_code(code )
489490 testthat :: expect_identical(
490491 get_code(q ),
491- c(" # initial comment\n a <- 1 # A comment" ,
492+ c(
493+ " # initial comment\n a <- 1 # A comment" ,
492494 " b <- 2 # inline comment" ,
493495 " c <- 3 # C comment\n # inbetween comment" ,
494496 " d <- 4\n # finishing comment"
@@ -634,8 +636,10 @@ testthat::test_that("detects occurrence of a function definition with a @linksto
634636 q <- eval_code(qenv(), code )
635637 testthat :: expect_identical(
636638 get_code(q , names = " x" ),
637- c(" foo <- function() {\n env <- parent.frame()\n env$x <- 0\n }" ,
638- " foo() # @linksto x" )
639+ c(
640+ " foo <- function() {\n env <- parent.frame()\n env$x <- 0\n }" ,
641+ " foo() # @linksto x"
642+ )
639643 )
640644})
641645# $ ---------------------------------------------------------------------------------------------------------------
0 commit comments