Skip to content
Prev 293978 / 398506 Next

Unexpected input while building package in R

You did not specify any object in the function. Thus R is building the 
package "test" with all the objects present in your session when you are 
calling the package.skeleton function. I suppose that one of these 
objects is causing problem. I suggest you list all the 
variables/function necessary for your package in the function.

Something like that :
a <- 1
b <- function(x) {x+x}
package.skeleton(name = "test", list=c("a","b"))

Eloi
On 12-05-08 10:00 AM, abhisarihan wrote: