I have seen instances of each of these in various packages.
1)
foo <- setClass('foo',[slots defined])
bar <- foo([data ])
or
2)
setClass('foo',[slots defined])
bar <- new('foo',[data])
Is there any difference in performance, or in the material which would be required in a NAMESPACE
file?