Skip to content

Commit 75bbd27

Browse files
authored
Merge pull request #179 from Merck/options-and-path
Options and write path
2 parents 72b0f34 + 5a4f1b3 commit 75bbd27

File tree

5 files changed

+13
-5
lines changed

5 files changed

+13
-5
lines changed

DESCRIPTION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
Package: simtrial
22
Type: Package
33
Title: Clinical Trial Simulation
4-
Version: 0.3.1
4+
Version: 0.3.2
55
Authors@R: c(
66
person("Keaven", "Anderson", email = "[email protected]", role = c("aut")),
77
person("Yilong", "Zhang", email = "[email protected]", role = c("aut")),

NEWS.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,13 @@
1+
# simtrial 0.3.2
2+
3+
This release makes minor improvements on auxiliary code with side-effects.
4+
5+
## Improvements
6+
7+
- Remove the code that sets `options()` within `vignette("modest-wlrt")`.
8+
- Updated the code used for generating image assets. These scripts now write to
9+
`tempdir()` instead of the package directory.
10+
111
# simtrial 0.3.1
212

313
This release introduces significant changes to the API, improves simulation

inst/logo/logo-main.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ dots <- ggplot() +
5151
)
5252

5353
ggsave(
54-
"inst/logo/logo-main.png",
54+
file.path(tempdir(), "logo-main.png"),
5555
device = ragg::agg_png,
5656
scale = 4, width = 256 * 2, height = 256 * 2,
5757
units = "px", dpi = 300

vignettes/modest-wlrt.Rmd

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,6 @@ knitr::opts_chunk$set(
1212
collapse = TRUE,
1313
comment = "#>"
1414
)
15-
16-
options(width = 58)
1715
```
1816

1917
## Introduction

vignettes/workflow.Rmd

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,5 +105,5 @@ digraph boxes_and_diamonds {
105105
}
106106
")
107107
108-
rsvg::rsvg_png(charToRaw(DiagrammeRsvg::export_svg(g)), file = "vignettes/workflow.png")
108+
rsvg::rsvg_png(charToRaw(DiagrammeRsvg::export_svg(g)), file = file.path(tempdir(), "workflow.png"))
109109
```

0 commit comments

Comments
 (0)