Skip to content

Commit

Permalink
Allow interactive printing of md and Rmd files
Browse files Browse the repository at this point in the history
  • Loading branch information
thebioengineer committed Oct 19, 2021
1 parent 8ff6d60 commit 6f468c5
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
1 change: 1 addition & 0 deletions R/vt_file.R
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,7 @@ file_parse.md.interactive <- function(text, ..., envir = parent.frame()){
...,
quiet = TRUE
)))
cat("\n")
})
}

Expand Down
4 changes: 4 additions & 0 deletions tests/testthat/test-latex_dynamic_referencing.R
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
test_that("latex Number Referencing across rmarkdown chunks", {

skip_if_not_installed("valtools")
skip_if_not(rmarkdown::pandoc_version() == numeric_version("2.7.3"))

withr::with_tempdir({

## Create test files
Expand Down Expand Up @@ -91,6 +93,8 @@ test_that("latex Number Referencing across rmarkdown chunks", {
## this test demonstrates how to use native latex + bookdown::render_book for dynamic labeling
## does not depend on valtools dynamic labeling
skip_if_not_installed("valtools")
skip_if_not(rmarkdown::pandoc_version() == numeric_version("2.7.3"))

withr::with_tempdir({

## Create test files
Expand Down
2 changes: 0 additions & 2 deletions tests/testthat/test-vt_file.R
Original file line number Diff line number Diff line change
Expand Up @@ -146,8 +146,6 @@ test_that("evaluating Rmarkdown files works", {
envir = curr_env)
})

browser()

expect_equal(
sample_output,
c("","","",
Expand Down

0 comments on commit 6f468c5

Please sign in to comment.