Differentiate between Library() and Require().

devquora
devquora

Posted On: Feb 22, 2018

 

Library()- If the desired package cannot be loaded, this function will display an error message. It loads the package whether it is already loaded or not.

Require()- When a particular package is not found, it gives warning messages. Require() is used inside a function. It checks whether it is loaded or not and loads if it is not loaded.

    Related Questions

    Please Login or Register to leave a response.

    Related Questions

    R Programming Interview Questions

    What is R Programming?

    R is a programming language and a software environment meant for statistical analysis and creating graphs. It is used b..

    R Programming Interview Questions

    Enlist some of the functions that R provides?

    The functions that R provides areMean- it is calculated by taking the sum of the values and dividing it by a number o..

    R Programming Interview Questions

    What are the different data structures in R?

    Data structure is a form of organizing and storing data. It is imperative to have a strong understanding of various dat..