1.

________ function is usually used inside another function and throws a warning whenever a particular package is not found.(a) Dplyr(b) Require(c) Coin(d) SampleI had been asked this question in an internship interview.Question is from Functions topic in portion Control Structures, Functions, Scoping Rules, Loop Functions and Debugging of R Programming

Answer»

Correct option is (b) Require

Easiest explanation: Require () function is USUALLY used inside the other function and GIVES a warning WHENEVER a particular PACKAGE is not found. Library () function will give an ERROR message if the desired package is not loaded.



Discussion

No Comment Found

Related InterviewSolutions