Re: [R-pkg-devel] Initialize Method

2017-01-08 Thread Georgi Boshnakov
constructor. Note that in any case it is a good idea to take care that your method for initialize() does not invalidate calls to new() without further arguments, e.g. new("TestClass"). Cheers, Georgi -Original Message- From: R-package-devel [mailto:r-package-devel-boun...@

[R-pkg-devel] Initialize Method

2017-01-08 Thread Glenn Schultz
All, My package is S4 an I would like to strongly type the input to the constructor function.  I understand from reading help etc that the call to new should be in a function and the method initialize is only used when one would like to customize the call to new or when the inputs are differen