Skip to content

Commit

Permalink
run pdf convert on github action
Browse files Browse the repository at this point in the history
  • Loading branch information
elong0527 committed Dec 3, 2023
1 parent 593c612 commit e24b33b
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions vignettes/metalite-table1.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ knitr::opts_chunk$set(
collapse = TRUE,
comment = "#>"
)
run_github_action <- Sys.getenv("GITHUB_ACTIONS") == ""
```

```{r, include = FALSE}
Expand Down Expand Up @@ -208,11 +209,11 @@ metalite_table1(
metalite_table1_to_rtf("tmp1.rtf")
```

```{r, include=TRUE}
```{r, include=FALSE, eval = ! run_github_action}
rtf2pdf("tmp1.rtf")
```

```{r, out.width = "100%", out.height = if (knitr::is_html_output()) "400px", echo = FALSE, fig.align = "center"}
```{r, out.width = "100%", out.height = if (knitr::is_html_output()) "400px", echo = FALSE, fig.align = "center", eval = ! run_github_action}
knitr::include_graphics("tlf/tmp1.pdf")
```

0 comments on commit e24b33b

Please sign in to comment.