search for: internalobj

Displaying 7 results from an estimated 7 matches for "internalobj".

Did you mean: internal_obj
2008 Sep 09
1
building a package that contains S4 classes and methods
...keleton( name="TDC" ) within a R session and I get Creating directories ... Creating DESCRIPTION ... Creating Read-and-delete-me ... Saving functions and data ... Making help files ... Done. Further steps are described in './TDC/Read-and-delete-me'. Warning messages: 1: In dump(internalObjs, file = file.path(code_dir, sprintf("%s-internal.R", : deparse of an S4 object will not be source()able 2: In dump(internalObjs, file = file.path(code_dir, sprintf("%s-internal.R", : deparse of an S4 object will not be source()able 3: In dump(internalObjs, file = file.pat...
2009 May 29
1
Problem making a package using S4 objects.
..., I do and get: > package.skeleton(name='remora') Creating directories ... Creating DESCRIPTION ... Creating Read-and-delete-me ... Saving functions and data ... Making help files ... Done. Further steps are described in './remora/Read-and-delete-me'. Warning messages: 1: In dump(internalObjs, file = file.path(code_dir, sprintf("%s-internal.R", : deparse of an S4 object will not be source()able 2: In dump(internalObjs, file = file.path(code_dir, sprintf("%s-internal.R", : deparse of an S4 object will not be source()able 3: In dump(internalObjs, file = file.pat...
2009 Mar 01
0
R package.skeleton
...e following error > package.skeleton("ohri") Creating directories ... Creating DESCRIPTION ... Creating Read-and-delete-me ... Saving functions and data ... Making help files ... Done. Further steps are described in './ohri/Read-and-delete-me'. Warning messages: 1: In dump(internalObjs, file = file.path(code_dir, sprintf("%s-internal.R", : deparse may be incomplete 2: In dump(internalObjs, file = file.path(code_dir, sprintf("%s-internal.R", : deparse may be incomplete 3: In dump(internalObjs, file = file.path(code_dir, sprintf("%s-internal.R",...
2008 Mar 30
1
package.skeleton.S4
...uot;DESCRIPTION"), "a+b") cat("\nDepends: methods\nLazyLoad: yes\nCollate: gives the order in which file shall be sourced\n",append=TRUE,file = description,sep = "") close(description) ### Remove elements starting with "." from the list internalObjInds <- grep("^\\.", list) internalObjs <- list[internalObjInds] if (any(internalObjInds)){list <- list[-internalObjInds]}else{} ### Remplace strange char by "_" and check the name validity (but only if code_file is user define) if (!use_code_files){...
2011 Mar 06
1
Seeking guidance in package creation when it contains s4 class
...+ } > #fn1(1,2,3) > package.skeleton("trial11") Creating directories ... Creating DESCRIPTION ... Creating Read-and-delete-me ... Saving functions and data ... Making help files ... Done. Further steps are described in './trial11/Read-and-delete-me'. Warning message: In dump(internalObjs, file = file.path(code_dir, sprintf("%s-internal.R", : deparse of an S4 object will not be source()able While running package.skeleton, I got this warning message, then when I run R CMD INSTALL trial11, I got an error saying: ERROR: unable to collate files for package 'trial11...
2013 Jun 04
0
bug in package.skeleton(), and doc typo.
...kage skeleton. >Otherwise list defaults to the non-hidden files in environment (those whose name does not start with .), but can be supplied to select a subset of the objects in that environment. I believe to have found the problem: in package.skeleton() body, the two calls to dump(): > dump(internalObjs, file = file.path(code_dir, sprintf("%s-internal.R", name))) > dump(item, file = file.path(code_dir, sprintf("%s.R", list0[item]))) should use the extra argument: envir=environment There's also a typo in the doc: The sentence: > Otherwise list defaults to the non-hid...
2011 Feb 22
1
S3 classes and building a package
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) + } >