From timh at insightful.com  Mon Jan  7 20:35:07 2008
From: timh at insightful.com (timh at insightful.com)
Date: Mon,  7 Jan 2008 20:35:07 +0100 (CET)
Subject: [Rd] library(splines) is missing setOldClass(c("bs",
	"basis")) (PR#10554)
Message-ID: <20080107193507.6124C282EFF7@mail.pubhealth.ku.dk>

> library(splines)
> extends("bs", "basis")
[1] FALSE
> setOldClass(c("bs", "basis"))
> extends("bs", "basis")
[1] TRUE

Note that "bs" should inherit from "basis":
> temp <- bs(1:99, df=5)
> oldClass(temp)
[1] "bs"    "basis"

Similarly for "ns"

In contrast, in S+:
> extends("bs", "basis")
[1] T

--please do not edit the information below--

Version:
 platform = i386-pc-mingw32
 arch = i386
 os = mingw32
 system = i386, mingw32
 status = 
 major = 2
 minor = 6.1
 year = 2007
 month = 11
 day = 26
 svn rev = 43537
 language = R
 version.string = R version 2.6.1 (2007-11-26)

Windows XP (build 2600) Service Pack 2.0

Locale:
LC_COLLATE=English_United States.1252;LC_CTYPE=English_United States.1252;LC_MONETARY=English_United States.1252;LC_NUMERIC=C;LC_TIME=English_United States.1252

Search Path:
 .GlobalEnv, package:splines, package:stats, package:graphics, package:grDevices, package:utils, package:datasets, package:methods, Autoloads, package:base



[Rd] library(splines) is missing setOldClass(c("bs", "basis")) (PR#10554)
timh at insightful.com