Last updated on 2025-12-07 07:50:33 CET.
| Package | ERROR | OK |
|---|---|---|
| pubh | 2 | 11 |
Current CRAN status: ERROR: 2, OK: 11
Version: 3.0.0
Check: package dependencies
Result: ERROR
Package required but not available: ‘gtsummary’
Package suggested but not available for checking: ‘knitr’
VignetteBuilder package required for checking but not installed: ‘knitr’
See section ‘The DESCRIPTION file’ in the ‘Writing R Extensions’
manual.
Flavor: r-devel-linux-x86_64-debian-gcc
Version: 2.0.0
Check: examples
Result: ERROR
Running examples in 'pubh-Ex.R' failed
The error most likely occurred in:
> ### Name: axis_labs
> ### Title: Apply labels from variables to axis-labels in plots.
> ### Aliases: axis_labs
>
> ### ** Examples
>
> data(kfm, package = "ISwR")
> require(sjlabelled, quietly = TRUE)
Attaching package: 'sjlabelled'
The following object is masked from 'package:ggplot2':
as_label
> kfm <- kfm |>
+ var_labels(
+ dl.milk = "Breast-milk intake (dl/day)",
+ sex = "Sex",
+ weight = "Child weight (kg)",
+ ml.suppl = "Milk substitute (ml/day)",
+ mat.weight = "Maternal weight (kg)",
+ mat.height = "Maternal height (cm)"
+ )
>
> kfm |>
+ gf_point(weight ~ dl.milk) |>
+ gf_lm(col = 2, interval = "confidence", col = 2) |>
+ axis_labs()
Warning in rep(yes, length.out = len) :
'x' is NULL so the result will be NULL
Error in ans[ypos] <- rep(yes, length.out = len)[ypos] :
replacement has length zero
Calls: axis_labs -> ifelse
Execution halted
Flavor: r-oldrel-windows-x86_64