Skip to content

Commit

Permalink
cairo_pdf conditional; bump 14.0.2
Browse files Browse the repository at this point in the history
  • Loading branch information
KZARCA committed Jan 22, 2021
1 parent 7ecb448 commit ca14dd5
Show file tree
Hide file tree
Showing 6 changed files with 22 additions and 14 deletions.
2 changes: 0 additions & 2 deletions CRAN-RELEASE

This file was deleted.

2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Package: heemod
Title: Markov Models for Health Economic Evaluations
Version: 0.14.1
Version: 0.14.2
Authors@R: c(
person("Kevin", "Zarca", email = "[email protected]", role = c("aut", "cre")),
person("Antoine", "Filipovic-Pierucci", role = "aut"),
Expand Down
2 changes: 1 addition & 1 deletion NEWS.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
## heemod 0.14.1
## heemod 0.14.2
* checks cairo_pdf availability

## heemod 0.14.0
Expand Down
12 changes: 5 additions & 7 deletions R/tabular_input.R
Original file line number Diff line number Diff line change
Expand Up @@ -1231,15 +1231,13 @@ save_graph <- function(plot, path, file_name) {
grDevices::png(filename = paste(full_file, "png", sep = "."))
print(plot)
grDevices::dev.off()
pdf <- if(capabilities("cairo")){
grDevices::cairo_pdf
filename <- paste(full_file, "pdf", sep = ".")
if(capabilities("cairo")){
grDevices::cairo_pdf(filename = filename)
} else {
grDevices::pdf
grDevices::pdf(file = filename)
}
pdf(
filename = paste(full_file, "pdf", sep = ".")
)
# print(plot)
print(plot)
grDevices::dev.off()
}

Expand Down
16 changes: 14 additions & 2 deletions cran-comments.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,20 @@
## Test environments
* local ubuntu 20.04 install, R 4.0.3
* local ubuntu 20.10 install, R 4.0.3
* win-builder (devel, release and old-release)
* r-hub (windows-server, Fedora Linux R-devel, clang, gfortran)

## R CMD check results

There were no NOTEs, ERRORs or WARNINGs.
There were no ERRORs or WARNINGs. 1 NOTE: Possibly mis-spelled words in DESCRIPTION:
Siebert (17:5)
al (15:62, 17:20)
et (15:59, 17:17)

CRAN repository db overrides:
X-CRAN-Comment: Archived on 2021-01-21 as check problems were not corrected in time.

Dear Uwe, the m1MAC issue resolved; I'm trying to make the vignettes as least computing-intensive as possible
to reduce the overall check time, but I think that I need to learn C.



2 changes: 1 addition & 1 deletion vignettes/g_heterogeneity.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,7 @@ plot(res_h, type = "counts")

Weights can be used in the analysis by including an optional column `.weights` in the new data to specify the respective weights of each strata in the target population.

```{r}
```{r, eval=FALSE}
tab_indiv_w
res_w <- update(res_mod, newdata = tab_indiv_w)
res_w
Expand Down

0 comments on commit ca14dd5

Please sign in to comment.