- Home
- Interview Questions
- R Programming
The warnings function shows the previous warnings.
Upon failure, try returns an object of class try-error.
The testthat equivalent of checkException is expect_exception. Say that 10 times fast.
quote turns a string into a call, then eval evaluates it.
Overload functions using the S3 system. A function print.foo will be called for objects of class foo.
DESCRIPTION and NAMESPACE are compulsory.
man and R are compulsory in all packages. src is required if you include C, C++, or Fortran code.
CITATION files let you explain who made and maintains the package, if that information is too long and complicated to go in the DESCRIPTION file.
roxygenise or roxygenize
First warn the user that it is deprecated by adding a call to .Deprecated. Later, replace the body completely with a call to .Defunct.