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 Predictive Analysis in R?

1 Answers  


R programming language has several packages for data science which are meant to solve a specific problem, how do you decide which one to use?

1 Answers  


Name some packages in r, which can be used for data imputation?

1 Answers  


Explain the concept of principal component analysis?

1 Answers  


What is s4?

1 Answers  


What is the regular expression in R string manipulation?

1 Answers  


Compare r and python?

1 Answers  


What is tcp/ip variable smc-r storage allocations?

1 Answers  


What do you understand by scientific data visualization in R?

1 Answers  


Write the r programming code for an array of words so that the output is displayed in decreasing frequency order?

1 Answers  


What is Visualization in R?

1 Answers  


Write the syntax to set the path for current working directory in r environment?

1 Answers  


Categories