[Rd] rm() deletes 'c' if c('a','b') is the argument (PR#9399)

From: <hanl2_at_wyeth.com>
Date: Wed 29 Nov 2006 - 18:35:37 GMT


Full_Name: Lixin Han
Version: 2.4.0
OS: Windows 2000
Submission from: (NULL) (155.94.110.222)

A character vector c('a','b') is supplied to rm(). As a result, 'c' is deleted unintentionally.

> a <- 1:5
> b <- 'abc'
> c <- letters
> ls()


[1] "a" "b" "c"
> rm(c('a','b'))
> ls()

character(0)
>



R-devel@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel Received on Thu Nov 30 05:39:54 2006

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.1.8, at Thu 30 Nov 2006 - 03:30:56 GMT.

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