Skip to content

Commit 475ec87

Browse files
Fix CRAN CMD NOTE in vigenttes
1 parent 8cfb7f8 commit 475ec87

File tree

5 files changed

+13
-16
lines changed

5 files changed

+13
-16
lines changed

CRAN-SUBMISSION

Lines changed: 0 additions & 3 deletions
This file was deleted.

NEWS.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,6 @@
2424

2525
- Add R-hub workflow to enable checks for platforms not covered already.
2626

27-
- Vignettes now force `Sys.setenv("OMP_THREAD_LIMIT" = 1)` and `options(Ncpus = 1)` in a bid to get around CRAN CMD changes.
28-
2927
# joineRML 0.4.6
3028

3129
## Housekeeping

cran-comments.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313

1414
## R CMD check results
1515

16-
0 errors | 0 warnings | 2 notes
16+
0 errors | 0 warnings | 1 notes
1717

1818
Win-Builder NOTE: "checking CRAN incoming feasibility ... NOTE"
1919

vignettes/joineRML-tidy.Rmd

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ library(knitr)
1717
Sys.setenv("OMP_THREAD_LIMIT" = 1)
1818
Sys.setenv("OMP_NUM_THREADS" = 1)
1919
options(Ncpus = 1)
20+
options(cores = 2)
2021
```
2122

2223
# Introduction
@@ -41,7 +42,7 @@ These methods are specifically useful when plotting results of a joint model or
4142

4243
We use the sample example from the introductory vignette to `joineRML` using the heart valve data.
4344

44-
```{r vignette, eval=FALSE}
45+
```{r vignette, eval=FALSE, purl=FALSE}
4546
vignette("joineRML", package = "joineRML")
4647
help("heart.valve", package = "joineRML")
4748
```
@@ -99,7 +100,7 @@ tidy(fit, ci = TRUE, conf.level = 0.99)
99100

100101
The standard errors reported by default are based on the empirical information matrix, as in `mjoint`. It is of course possible to use bootstrapped standard errors as follows:
101102

102-
```{r tidy-boot, eval=FALSE}
103+
```{r tidy-boot, eval=FALSE, purl=FALSE}
103104
bSE <- bootSE(fit, nboot = 100, safe.boot = TRUE, progress = FALSE)
104105
tidy(fit, boot_se = bSE, conf.int = TRUE)
105106
```
@@ -177,6 +178,6 @@ glance(fit2)
177178

178179
Several examples of how to use `broom` including more details are available on its introductory vignette:
179180

180-
```{r vignette-broom, eval = FALSE}
181+
```{r vignette-broom, eval=FALSE, purl=FALSE}
181182
vignette(topic = "broom", package = "broom")
182183
```

vignettes/joineRML.Rmd

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -25,13 +25,14 @@ if (requireNamespace('joineR', quietly = TRUE)) {
2525
Sys.setenv("OMP_THREAD_LIMIT" = 1)
2626
Sys.setenv("OMP_NUM_THREADS" = 1)
2727
options(Ncpus = 1)
28+
options(cores = 2)
2829
```
2930

3031
# Introduction
3132

3233
The `joineRML` package implements methods for analyzing data from *multiple* longitudinal studies in which the responses from each subject consists of time-sequences of repeated measurements and a possibly censored time-to-event outcome. The modelling framework for the repeated measurements is the multivariate linear mixed effects model. The model for the time-to-event outcome is a Cox proportional hazards model with log-Gaussian frailty. Stochastic dependence is captured by allowing the Gaussian random effects of the linear model to be correlated with the frailty term of the Cox proportional hazards model. For full details of the model, please consult the technical vignette by running
3334

34-
```{r vignette, eval=FALSE}
35+
```{r vignette, eval=FALSE, purl=FALSE}
3536
vignette("technical", package = "joineRML")
3637
```
3738

@@ -41,7 +42,7 @@ vignette("technical", package = "joineRML")
4142

4243
The simplest way to explain the concepts of the package is through an example. `joineRML` comes with the data set `heart.valve`. Details of this data can be found in the help file by running the command
4344

44-
```{r heart.valve_help, eval=FALSE}
45+
```{r heart.valve_help, eval=FALSE, purl=FALSE}
4546
help("heart.valve", package = "joineRML")
4647
```
4748

@@ -133,21 +134,21 @@ plot(fit, params = "beta")
133134

134135
Once an `mjoint` model has converged, and assuming the `pfs` argument is `TRUE` (default), then approximated standard errors are calculated based on the empirical information matrix of the profile likelihood at the maximizer. Theoretically, these standard errors will be underestimated (see the technical vignette). In principle, residual Monte Carlo error will oppose this through an increase in uncertainty.
135136

136-
```{r hvd_model_boot, eval=FALSE}
137+
```{r hvd_model_boot, eval=FALSE, purl=FALSE}
137138
fit.se <- bootSE(fit, nboot = 100)
138139
```
139140

140141
Bootstrapping is a computationally intensive method, possibly taking many hours to fit. For this reason, one can relax the control parameter constraints on the optimization algorithm for each bootstrap model; however, this will be at the possible expense of inflated standard errors due to Monte Carlo error.
141142

142143
We can call the `bootSE` object to interrogate it
143144

144-
```{r hvd_model_boot_print, eval=FALSE}
145+
```{r hvd_model_boot_print, eval=FALSE, purl=FALSE}
145146
fit.se
146147
```
147148

148149
or alternatively re-run the `summary` command, passing the additional argument of `bootSE = fit.se`
149150

150-
```{r hvd_model_boot_summary, eval=FALSE}
151+
```{r hvd_model_boot_summary, eval=FALSE, purl=FALSE}
151152
summary(fit, bootSE = fit.se)
152153
```
153154

@@ -171,7 +172,7 @@ To fit a univariate model in `joineR` we run the following code for the `hvd` da
171172
joineR_available <- require(joineR)
172173
```
173174

174-
```{r joineR, cache=TRUE, eval=joineR_available}
175+
```{r joineR, cache=TRUE, eval=joineR_available, purl=joineR_available}
175176
library(joineR, quietly = TRUE)
176177
177178
hvd.surv <- UniqueVariables(hvd, var.col = c("fuyrs", "status"), id.col = "num")
@@ -207,7 +208,7 @@ summary(fit.joinerml)
207208

208209
In addition to just comparing model parameter estimates, we can also extract the predicted (or posterior) random effects from each model and plot them.
209210

210-
```{r re_comp_plot, fig.width=7.25, fig.height=4, eval=joineR_available}
211+
```{r re_comp_plot, fig.width=7.25, fig.height=4, eval=joineR_available, purl=joineR_available}
211212
id <- as.numeric(row.names(fit.joiner$coefficients$random))
212213
id.ord <- order(id) # joineR rearranges patient ordering during EM fit
213214
par(mfrow = c(1, 2))

0 commit comments

Comments
 (0)