Hi List!
Suppose I have the following, please:
> setClass("buzz",representation(x="numeric"),S3methods=TRUE)
[1] "buzz"
> x <- rnorm(10)
> class(x) <- "buzz"
> plot.buzz <- function(x,y,...) {
+ plot.default(x,type="l",col="blue")
+ }
> f <- function(x) {
+ return(x^2)
+ }
> package.skeleton(list=c("buzz","plot.buzz","f"),name="test1")
Creating directories ...
Creating DESCRIPTION ...
Creating Read-and-delete-me ...
Saving functions and data ...
Making help files ...
Done.
Further steps are described in './test1/Read-and-delete-me'.
Warning message:
In package.skeleton(list = c("buzz", "plot.buzz", "f"), name = "test1") :
object ''buzz'' not found
>
How can I bring the class "buzz" into the new package, please?
Thank you!
Laura
[[alternative HTML version deleted]]
______________________________________________
[email protected] mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.