Re: [R] Teaching R: To quote, or not to quote?

From: S Ellison <S.Ellison_at_lgc.co.uk>
Date: Mon, 07 Mar 2011 21:13:18 +0000


>>> Duncan Murdoch <murdoch.duncan_at_gmail.com> 03/07/11 3:17 PM >>>
>On 07/03/2011 9:52 AM, Muenchen, Robert A (Bob) wrote:
>> Hi All,
>>
>> When I teach an intro workshop on R, I've been minimizing
>>"quote confusion" by always using quotes around package names
>> in function calls.
>> ... I'm wondering if there's a downside to this.
>
>The only reasons I can think to avoid that recommendation is that
>people might find typing unnecessary quotes to be irritating and
>they might be confused when they see unquoted usage
>elsewhere. Those aren't particularly strong reasons...

Agreed, especially for library and the like where . But from a user perspective most of the advantage of ?mean and ??mean over help("mean") is the reduction in typing - especially the utility of things like only typing the ? in
?rnorm(q=23)
after "Error in rnorm(q = 23) : unused argument(s) (q = 23)". That is so useful that I'd say it's worth reinforcing by using ? without quotes where possible.



This email and any attachments are confidential. Any use...{{dropped:8}}

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. Received on Mon 07 Mar 2011 - 21:18:36 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Mon 07 Mar 2011 - 21:40:19 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.

list of date sections of archive