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

Michael Friendly friendly at yorku.ca
Tue Mar 8 14:34:22 CET 2011


On 3/7/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. For example:
>
> install.packages("Hmisc")
> update.packages("Hmisc")
> library("Hmisc")
> citation("Hmisc")
> search()  # displays package names in quotes
> detach("packages:Hmisc")  # just as search displayed it
>

FWIW, the style for JSS now enforces (via Achimitization) the use of 
quotes as you show above.

-Michael


-- 
Michael Friendly     Email: friendly AT yorku DOT ca
Professor, Psychology Dept.
York University      Voice: 416 736-5115 x66249 Fax: 416 736-5814
4700 Keele Street    Web:   http://www.datavis.ca
Toronto, ONT  M3J 1P3 CANADA



More information about the R-help mailing list