Answer Posted / 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 View All Answers