Skip to content

Commit 504b9c0

Browse files
committed
don't build vignettes on windows
git-svn-id: svn://svn.r-forge.r-project.org/svnroot/ctm@2556 edb9625f-4e0d-4859-8d74-9fd3b1da38cb
1 parent e3aaf04 commit 504b9c0

4 files changed

Lines changed: 18 additions & 2016 deletions

File tree

doc/mtram.R

Lines changed: 16 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ set.seed(290875)
33

44
pkgs <- c("colorspace", "survival", "lme4", "tram", "gridExtra",
55
"lattice", "latticeExtra", "mvtnorm", "ordinalCont", "tramME")
6-
pkgs <- pkgs %in% installed.packages()
6+
pkgs <- sapply(pkgs, require, character.only = TRUE)
77

88

99
## ----mtram-citation, echo = FALSE---------------------------------------------
@@ -19,12 +19,14 @@ if (any(!pkgs))
1919
"\\end{document}\n"))
2020
knitr::knit_exit()
2121
}
22+
if (!interactive() && .Platform$OS.type != "unix")
23+
{
24+
cat("Vignette only compiled under Unix alikes.")
25+
knitr::knit_exit()
26+
}
2227

2328

2429
## ----mtram-setup, echo = FALSE, results = "hide", message = FALSE, warning = FALSE----
25-
library("lattice")
26-
library("latticeExtra")
27-
library("gridExtra")
2830
trellis.par.set(list(plot.symbol = list(col=1,pch=20, cex=0.7),
2931
box.rectangle = list(col=1),
3032
box.umbrella = list(lty=1, col=1),
@@ -84,13 +86,12 @@ mypanel <- function (x, y, f.value = NULL, type = "s", groups = NULL, qtype = 7,
8486
}
8587
}
8688
}
87-
library("colorspace")
8889
col <- diverge_hcl(2, h = c(246, 40), c = 120, l = c(65, 90), alpha = .75)
8990

9091

9192
## ----mtram-vignette, eval = FALSE---------------------------------------------
92-
## install.packages("tram")
93-
## demo("mtram", package = "tram")
93+
# install.packages("tram")
94+
# demo("mtram", package = "tram")
9495

9596

9697
## ----mtram-sleep-plot, echo = FALSE-------------------------------------------
@@ -888,20 +889,20 @@ exp(confint(CAO_Cox_2_tramME, parm = "randarm5-FU + Oxaliplatin",
888889

889890

890891
## ----echo=FALSE, eval=FALSE---------------------------------------------------
891-
## sqrt(VarCorr(CAO_Cox_2_tramME)$Block$var)
892-
## coef(CAO_Cox_2_mtram)["gamma1"]
892+
# sqrt(VarCorr(CAO_Cox_2_tramME)$Block$var)
893+
# coef(CAO_Cox_2_mtram)["gamma1"]
893894

894895

895896
## ----mtram-CAO-coxme, echo = FALSE, eval = FALSE------------------------------
896-
## library("coxme")
897-
## m <- coxme(DFS ~ randarm + (1 | Block), data = CAOsurv)
898-
## summary(m)
899-
## sd <- sqrt(diag(vcov(m)))
900-
## exp(coef(m) + c(-1, 0, 1) * qnorm(.975) * sd)
897+
# library("coxme")
898+
# m <- coxme(DFS ~ randarm + (1 | Block), data = CAOsurv)
899+
# summary(m)
900+
# sd <- sqrt(diag(vcov(m)))
901+
# exp(coef(m) + c(-1, 0, 1) * qnorm(.975) * sd)
901902

902903

903904
## ----sim, eval = FALSE--------------------------------------------------------
904-
## source(system.file("simulations", "mtram_sim.R", package = "tram"), echo = TRUE)
905+
# source(system.file("simulations", "mtram_sim.R", package = "tram"), echo = TRUE)
905906

906907

907908
## ----mtram-sessionInfo, echo = FALSE, results = "hide"------------------------

0 commit comments

Comments
 (0)