- using R Under development (unstable) (2018-04-18 r74618)
- using platform: x86_64-pc-linux-gnu (64-bit)
- using session charset: UTF-8
- checking for file ‘bshazard/DESCRIPTION’ ... OK
- checking extension type ... Package
- this is package ‘bshazard’ version ‘1.0’
- 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 serialization versions ... OK
- checking whether package ‘bshazard’ can be installed ... OK
- checking package 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 use of S3 registration ... OK
- checking dependencies in R code ... NOTE
Package in Depends field not imported from: ‘splines’
These packages need to be imported from (in the NAMESPACE file)
for when this namespace is loaded but not attached.
- checking S3 generic/method consistency ... NOTE
Found the following apparent S3 methods exported but not registered:
bshazard.default lines.bshazard plot.bshazard print.bshazard
summary.bshazard
See section ‘Registering S3 methods’ in the ‘Writing R Extensions’
manual.
- checking replacement functions ... OK
- checking foreign function calls ... OK
- checking R code for possible problems ... [8s/13s] NOTE
bs.design: no visible global function definition for ‘spline.des’
bshazard.default: no visible global function definition for
‘model.frame’
bshazard.default: no visible global function definition for
‘model.matrix’
bshazard.default: no visible global function definition for
‘model.response’
bshazard_fit: no visible global function definition for ‘aggregate’
bspois: no visible global function definition for ‘dpois’
bspois: no visible global function definition for ‘var’
bspois: no visible global function definition for ‘qnorm’
lines.bshazard: no visible global function definition for ‘lines’
plot.bshazard: no visible global function definition for ‘plot’
plot.bshazard: no visible global function definition for ‘lines’
print.bshazard: no visible global function definition for ‘aggregate’
Undefined global functions or variables:
aggregate dpois lines model.frame model.matrix model.response plot
qnorm spline.des var
Consider adding
importFrom("graphics", "lines", "plot")
importFrom("stats", "aggregate", "dpois", "model.frame",
"model.matrix", "model.response", "qnorm", "var")
to your NAMESPACE file.
- checking Rd files ... OK
- checking Rd metadata ... OK
- checking Rd line widths ... 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 examples ... ERROR
Running examples in ‘bshazard-Ex.R’ failed
The error most likely occurred in:
> base::assign(".ptime", proc.time(), pos = "CheckExEnv")
> ### Name: bshazard
> ### Title: Nonparametric Smoothing of the Hazard Function
> ### Aliases: bshazard bshazard.default
> ### Keywords: hazard rate
>
> ### ** Examples
>
> data(lung,package="survival")
> fit<-bshazard(Surv(time, status==2) ~ 1,data=lung)
Error in UseMethod("bshazard") :
no applicable method for 'bshazard' applied to an object of class "formula"
Calls: bshazard
Execution halted
- checking PDF version of manual ... OK
- DONE
Status: 1 ERROR, 3 NOTEs