Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


Differentiate between library() and require()?



Differentiate between library() and require()?..

Answer / Ravi Sahu

In R programming, both library() and require() are used for loading packages. However, they behave differently:n1. library(): Loads a package if it's not already loaded and adds it to the search path (.libPaths()). If the package is already loaded, it doesn't show any message.n2. require(): Also loads a package but throws an error if the package is not found in the search path. If the package is already loaded, it doesn't show any message.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More R Programming Interview Questions

What is the difference between a bar-chart and a histogram?

1 Answers  


What is readline() in r?

1 Answers  


How many ways are there to read and write files?

1 Answers  


Explain the concept of principal component analysis?

1 Answers  


How to remove all the objects?

1 Answers  


What is an Atomic vector and how many types of atomic vectors are present in R?

1 Answers  


What is oop in r?

1 Answers  


What are problems with R clustering?

1 Answers  


How many data structures does r language have?

1 Answers  


How many methods are there to save graphs?

1 Answers  


What is R studio and how to use it?

1 Answers  


What is the use of apply() in R?

1 Answers  


Categories