Skip to content

Commit

Permalink
Slå på silent på rmarkdown::render (#194)
Browse files Browse the repository at this point in the history
Ble veldig mye støy under testing, blant annet
  • Loading branch information
arnfinn authored Dec 16, 2024
1 parent 6786abb commit e16dae1
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
3 changes: 2 additions & 1 deletion R/renderRmd.R
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,8 @@ renderRmd <- function(sourceFile, outputType = "html", logoFile = NULL,
output_file = tempfile(pattern = ""),
clean = TRUE,
params = params,
envir = new.env()
envir = new.env(),
quiet = TRUE
)

if (outputType == "html_fragment") {
Expand Down
6 changes: 3 additions & 3 deletions tests/testthat/test-miscellaneous-functions.R
Original file line number Diff line number Diff line change
Expand Up @@ -32,14 +32,14 @@ file.copy(

# produce a pop-up text...
test_that("an html doc regarding 'how we deal with...' can be provided", {
expect_output(howWeDealWithPersonalData(session = list()), "")
expect_silent(howWeDealWithPersonalData(session = list()))
})

test_that("pop-up html can add an installed pacakge to info", {
expect_output(howWeDealWithPersonalData(
expect_silent(howWeDealWithPersonalData(
session = list(),
callerPkg = "base"
), "")
))
})

test_that("pop-up html provide a warning for a non-existing pacakge", {
Expand Down

0 comments on commit e16dae1

Please sign in to comment.