• using R version 4.0.0 alpha (2020-04-01 r78130)
  • using platform: x86_64-apple-darwin17.0 (64-bit)
  • using session charset: UTF-8
  • checking for file ‘survsup/DESCRIPTION’ ... OK
  • this is package ‘survsup’ version ‘0.0.2’
  • package encoding: UTF-8
  • checking package namespace information ... OK
  • checking package dependencies ... OK
  • checking if this is a source package ... OK
  • checking if there is a namespace ... OK
  • checking for executable files ... OK
  • checking for hidden files and directories ... OK
  • checking for portable file names ... OK
  • checking for sufficient/correct file permissions ... OK
  • checking whether package ‘survsup’ can be installed ... [4s/5s] OK
  • checking installed package size ... OK
  • checking package directory ... OK
  • checking ‘build’ directory ... OK
  • checking DESCRIPTION meta-information ... OK
  • checking top-level files ... OK
  • checking for left-over files ... OK
  • checking index information ... OK
  • checking package subdirectories ... OK
  • checking R files for non-ASCII characters ... OK
  • checking R files for syntax errors ... OK
  • checking whether the package can be loaded ... OK
  • checking whether the package can be loaded with stated dependencies ... OK
  • checking whether the package can be unloaded cleanly ... OK
  • checking whether the namespace can be loaded with stated dependencies ... OK
  • checking whether the namespace can be unloaded cleanly ... OK
  • checking loading without being on the library search path ... OK
  • checking dependencies in R code ... NOTE
    Namespaces in Imports field not imported from:
      ‘gridExtra’ ‘stats’ ‘survival’ ‘utils’
      All declared Imports should be used.
  • checking S3 generic/method consistency ... OK
  • checking replacement functions ... OK
  • checking foreign function calls ... OK
  • checking R code for possible problems ... [3s/5s] OK
  • checking Rd files ... OK
  • checking Rd metadata ... OK
  • checking Rd cross-references ... OK
  • checking for missing documentation entries ... OK
  • checking for code/documentation mismatches ... OK
  • checking Rd \usage sections ... OK
  • checking Rd contents ... OK
  • checking for unstated dependencies in examples ... OK
  • checking installed files from ‘inst/doc’ ... OK
  • checking files in ‘vignettes’ ... OK
  • checking examples ... ERROR
    Running examples in ‘survsup-Ex.R’ failed
    The error most likely occurred in:

    > ### Name: nar
    > ### Title: Add a numbers at risk table to a Kaplan-Meier plot
    > ### Aliases: nar
    >
    > ### ** Examples
    >
    > library(survsup); library(ggplot2); library(dplyr); library(survival)

    Attaching package: ‘dplyr’

    The following objects are masked from ‘package:stats’:

        filter, lag

    The following objects are masked from ‘package:base’:

        intersect, setdiff, setequal, union

    >
    > retinopathy %>%
    + survfit(Surv(futime, status) ~ trt, data = .) %>%
    + plot_survfit() %>%
    + nar()
    Error in `$<-.data.frame`(`*tmp*`, "y", value = NA_real_) :
      replacement has 1 row, data has 0
    Calls: %>% ... withVisible -> <Anonymous> -> nar -> $<- -> $<-.data.frame
    Execution halted
  • checking for unstated dependencies in vignettes ... OK
  • checking package vignettes in ‘inst/doc’ ... OK
  • checking running R code from vignettes ... [0s/1s] NONE
      ‘survsup_intro.Rmd’ using ‘UTF-8’... [0s/1s] OK
  • checking re-building of vignette outputs ... [5s/12s] WARNING
    Error(s) in re-building vignettes:
      ...
    --- re-building ‘survsup_intro.Rmd’ using rmarkdown
    Quitting from lines 92-96 (survsup_intro.Rmd)
    Error: processing vignette 'survsup_intro.Rmd' failed with diagnostics:
    replacement has 1 row, data has 0
    --- failed re-building ‘survsup_intro.Rmd’

    SUMMARY: processing the following file failed:
      ‘survsup_intro.Rmd’

    Error: Vignette re-building failed.
    Execution halted
  • checking PDF version of manual ... OK
  • DONE
    Status: 1 ERROR, 1 WARNING, 1 NOTE