[R] Using require() vs. library()

Ista Zahn izahn at psych.rochester.edu
Wed Aug 17 19:11:53 CEST 2011


Hi Dan,
Is there something you would like to know that is not covered by help(library) ?

Best,
Ista

On Wed, Aug 17, 2011 at 12:40 PM, Nordlund, Dan (DSHS/RDA)
<NordlDJ at dshs.wa.gov> wrote:
> A recent post prompts me to ask this question.  Is there any reason to prefer using library() over require()?  I tend to use require() instead of library() to load packages, but I wonder if there are situations where it would be better to use library().
>
> Enquiring minds would like to know,
>
> Dan
>
> Daniel J. Nordlund
> Washington State Department of Social and Health Services
> Planning, Performance, and Accountability
> Research and Data Analysis Division
> Olympia, WA 98504-5204
>
> ______________________________________________
> R-help at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.
>



-- 
Ista Zahn
Graduate student
University of Rochester
Department of Clinical and Social Psychology
http://yourpsyche.org



More information about the R-help mailing list