https://github.com/cran/Hmisc
Tip revision: 584ff571fcf522af5799418a1747c2017b43fef0 authored by Charles Dupont on 26 April 2010, 00:00:00 UTC
version 3.9-0
version 3.9-0
Tip revision: 584ff57
comment.s
if(!.R.) {
"comment<-" <- function(x, value)
{
if (inherits(value,"file"))
attr(value,'class') <- c("comment.file", attr(value, 'class'))
attr(x, "comment") <- value
x
}
comment <- function(x)
{
lab <- attr(x, "comment")
if (inherits(lab,"comment.file"))
attr(lab,'class') <- attr(lab,'class')[attr(lab,'class') !=
"comment.file"]
lab
}
print.comment.file <- function(x, ...)
{
invisible(print(oldUnclass(x)))
}
}