Skip to content

Commit

Permalink
updated browse URL file path
Browse files Browse the repository at this point in the history
hoping tests pass on Windows now
  • Loading branch information
dunkenwg committed Nov 11, 2024
1 parent f2bc123 commit d67d863
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion R/knit.R
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,6 @@ sbr_knit_results <- function(file = "results",
path <- rmarkdown::render(input = input, output_format = "html_document",
quiet = quiet)
if(isTRUE(browse))
utils::browseURL(paste0('file://', path))
utils::browseURL(file.path('file://', path))

Check warning on line 33 in R/knit.R

View check run for this annotation

Codecov / codecov/patch

R/knit.R#L33

Added line #L33 was not covered by tests
invisible(input)
}
4 changes: 2 additions & 2 deletions tests/testthat/results.Rmd
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
---
title: 'testthat'
date: 2024-11-07 08:35:21.397358
date: 2024-11-11 10:30:39.318855
---

```{r, echo = FALSE, warning = FALSE, message = FALSE, include = FALSE, cache = FALSE}
knitr::opts_chunk$set(warning = FALSE, message = FALSE, echo = FALSE, comment = NA, results = 'asis', cache = FALSE)
main <- '/private/var/folders/yg/xzvpt0r53gsgj094f3sxb1n00000gn/T/RtmpT366Ry/filec9329bb3dd2/output'
main <- '/private/var/folders/yg/xzvpt0r53gsgj094f3sxb1n00000gn/T/RtmpyPXz1I/file42354bc7b869/output'
sub <- ''
```

Expand Down

0 comments on commit d67d863

Please sign in to comment.